@extends('admin.layouts.app') @push('libraries_top') @endpush @php $values = !empty($setting) ? $setting->value : null; if (!empty($values)) { $values = json_decode($values, true); } @endphp @section('content') {{ trans('update.settings') }} {{trans('admin/main.dashboard')}} {{ trans('update.settings') }} {{ csrf_field() }} @php $switches = ['status', 'active_for_admin_panel', 'active_for_organization_panel', 'active_for_instructor_panel'] @endphp @foreach($switches as $switch) {{ ($switch == 'status') ? trans('admin/main.active') : trans("update.{$switch}") }} {{ trans("update.ai_content_setting_{$switch}_hint") }} @endforeach {{ trans('update.secret_key') }} {{ trans('update.activate_text_service_type') }} {!! trans('update.text_service_type') !!} {{ trans('update.select_text_service_type') }} @foreach(\App\Enums\AiTextServices::types as $typ) {{ trans("update.{$typ}") }} @endforeach {!! trans('update.number_of_text_generated_per_request') !!} @foreach([1,2,3,4,5,6,7,8,9,10] as $num) {{ $num }} @endforeach {{ trans('update.max_tokens') }} {{ trans('update.activate_image_service_type') }} {!! trans('update.number_of_images_generated_per_request') !!} @foreach([1,2,3,4,5,6,7,8,9,10] as $num) {{ $num }} @endforeach {{ trans('admin/main.submit') }} @endsection @push('scripts_bottom') @endpush