dbfdg @extends('layouts.admin') @section('page-title') {{ __('Settings') }} @endsection @section('breadcrumb') @endsection @php $lang = \App\Models\Utility::getValByName('default_language'); // $logo=asset(Storage::url('uploads/logo/')); $logo = \App\Models\Utility::get_file('uploads/logo'); $logo_light = \App\Models\Utility::getValByName('logo_light'); $logo_dark = \App\Models\Utility::getValByName('logo_dark'); $company_favicon = \App\Models\Utility::getValByName('company_favicon'); $setting = \App\Models\Utility::colorset(); $color = !empty($setting['color']) ? $setting['color'] : 'theme-3'; $flag = !empty($setting['color_flag']) ? $setting['color_flag'] : ''; $SITE_RTL = isset($setting['SITE_RTL']) ? $setting['SITE_RTL'] : 'off'; $meta_image = \App\Models\Utility::get_file('uploads/meta/'); $google_recaptcha_version = ['v2-checkbox' => __('v2'), 'v3' => __('v3')]; @endphp {{-- Storage setting --}} @php $file_type = config('files_types'); $setting = App\Models\Utility::settings(); $local_storage_validation = $setting['local_storage_validation']; $local_storage_validations = explode(',', $local_storage_validation); $s3_storage_validation = $setting['s3_storage_validation']; $s3_storage_validations = explode(',', $s3_storage_validation); $wasabi_storage_validation = $setting['wasabi_storage_validation']; $wasabi_storage_validations = explode(',', $wasabi_storage_validation); @endphp {{-- end Storage setting --}} @push('css-page') @if ($color == 'theme-3') @endif @if ($color == 'theme-2') @endif @if ($color == 'theme-4') @endif @if ($color == 'theme-1') @endif @endpush @push('script-page') {{-- for cookie setting --}} @endpush @section('breadcrumb') @endsection @section('content')
{{-- Start for all settings tab --}}
{{ __('Brand Settings') }}
{{ Form::model($settings, ['url' => 'systems', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{ __('Logo dark') }}
@error('logo_dark')
@enderror
{{ __('Logo Light') }}
@error('logo_light')
@enderror
{{ __('Favicon') }}
@error('favicon')
@enderror
{{ Form::label('title_text', __('Title Text'), ['class' => 'form-label']) }} {{ Form::text('title_text', null, ['class' => 'form-control', 'placeholder' => __('Title Text')]) }} @error('title_text') {{ $message }} @enderror
{{ Form::label('footer_text', __('Footer Text'), ['class' => 'form-label']) }} {{ Form::text('footer_text', Utility::getValByName('footer_text'), ['class' => 'form-control', 'placeholder' => __('Enter Footer Text')]) }} @error('footer_text') {{ $message }} @enderror
{{ Form::label('default_language', __('Default Language'), ['class' => 'form-label']) }}
@error('default_language') {{ $message }} @enderror

{{ __('Theme Customizer') }}

{{ __('Primary color settings') }}


{{ __('Sidebar settings') }}

{{ __('Layout settings') }}

{{ Form::close() }}
{{ __('Email Settings') }}
{{ __('This SMTP will be used for system-level email sending. Additionally, if a company user does not set their SMTP, then this SMTP will be used for sending emails.') }}
{{ Form::open(['route' => 'email.settings', 'method' => 'post']) }} @csrf
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'form-label']) }} {{ Form::text('mail_driver', isset($settings['mail_driver']) ? $settings['mail_driver'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Driver')]) }} @error('mail_driver') {{ $message }} @enderror
{{ Form::label('mail_host', __('Mail Host'), ['class' => 'form-label']) }} {{ Form::text('mail_host', isset($settings['mail_host']) ? $settings['mail_host'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Mail Host')]) }} @error('mail_host') {{ $message }} @enderror
{{ Form::label('mail_port', __('Mail Port'), ['class' => 'form-label']) }} {{ Form::text('mail_port', isset($settings['mail_port']) ? $settings['mail_port'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Port')]) }} @error('mail_port') {{ $message }} @enderror
{{ Form::label('mail_username', __('Mail Username'), ['class' => 'form-label']) }} {{ Form::text('mail_username', isset($settings['mail_username']) ? $settings['mail_username'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Username')]) }} @error('mail_username') {{ $message }} @enderror
{{ Form::label('mail_password', __('Mail Password'), ['class' => 'form-label']) }} {{ Form::text('mail_password', isset($settings['mail_password']) ? $settings['mail_password'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Password')]) }} @error('mail_password') {{ $message }} @enderror
{{ Form::label('mail_encryption', __('Mail Encryption'), ['class' => 'form-label']) }} {{ Form::text('mail_encryption', isset($settings['mail_encryption']) ? $settings['mail_encryption'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail Encryption')]) }} @error('mail_encryption') {{ $message }} @enderror
{{ Form::label('mail_from_address', __('Mail From Address'), ['class' => 'form-label']) }} {{ Form::text('mail_from_address', isset($settings['mail_from_address']) ? $settings['mail_from_address'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail From Address')]) }} @error('mail_from_address') {{ $message }} @enderror
{{ Form::label('mail_from_name', __('Mail From Name'), ['class' => 'form-label']) }} {{ Form::text('mail_from_name', isset($settings['mail_from_name']) ? $settings['mail_from_name'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail From Name')]) }} @error('mail_from_name') {{ $message }} @enderror
{{ Form::close() }}
{{ 'Payment Settings' }}
{{ __('These details will be used to collect subscription plan payments.Each subscription plan will have a payment button based on the below configuration.') }}
{{ Form::open(['route' => 'payment.settings', 'method' => 'post']) }} @csrf
{{ Form::text('currency', isset($admin_payment_setting['currency']) ? $admin_payment_setting['currency'] : '', ['class' => 'form-control font-style', 'required', 'placeholder' => __('Enter Currency')]) }} {{ __('Note: Add currency code as per three-letter ISO code') }}. {{ __('You can find out how to do that here.') }}
{{ Form::text('currency_symbol', isset($admin_payment_setting['currency_symbol']) ? $admin_payment_setting['currency_symbol'] : '', ['class' => 'form-control', 'required', 'placeholder' => __('Enter Currency Symbol')]) }}

{{ __('Requesting manual payment for the planned amount for the subscriptions plan.') }}

{{ Form::label('bank_details', __('Bank Details'), ['class' => 'col-form-label']) }} {{ Form::textarea('bank_details', isset($admin_payment_setting['bank_details']) ? $admin_payment_setting['bank_details'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Your Bank Details'), 'rows' => 4]) }} {{ __('Example : Bank : bank name
Account Number : 0000 0000
') }}
@if ($errors->has('bank_details')) {{ $errors->first('bank_details') }} @endif

{{ Form::label('stripe_key', __('Stripe Key'), ['class' => 'col-form-label']) }} {{ Form::text('stripe_key', isset($admin_payment_setting['stripe_key']) ? $admin_payment_setting['stripe_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Stripe Key')]) }} @if ($errors->has('stripe_key')) {{ $errors->first('stripe_key') }} @endif
{{ Form::label('stripe_secret', __('Stripe Secret'), ['class' => 'col-form-label']) }} {{ Form::text('stripe_secret', isset($admin_payment_setting['stripe_secret']) ? $admin_payment_setting['stripe_secret'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Stripe Secret')]) }} @if ($errors->has('stripe_secret')) {{ $errors->first('stripe_secret') }} @endif


@if ($errors->has('paytm_merchant_id')) {{ $errors->first('paytm_merchant_id') }} @endif
@if ($errors->has('paytm_merchant_key')) {{ $errors->first('paytm_merchant_key') }} @endif
@if ($errors->has('paytm_industry_type')) {{ $errors->first('paytm_industry_type') }} @endif


@if ($errors->has('mercado_secret_key')) {{ $errors->first('mercado_access_token') }} @endif

@if ($errors->has('skrill_email')) {{ $errors->first('skrill_email') }} @endif


@if ($errors->has('paytab_profile_id')) {{ $errors->first('paytab_profile_id') }} @endif
@if ($errors->has('paytab_server_key')) {{ $errors->first('paytab_server_key') }} @endif

@if ($errors->has('paytab_region')) {{ $errors->first('paytab_region') }} @endif

{{ Form::label('benefit_api_key', __('Benefit Key'), ['class' => 'col-form-label']) }} {{ Form::text('benefit_api_key', isset($admin_payment_setting['benefit_api_key']) ? $admin_payment_setting['benefit_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Benefit Key')]) }} @error('benefit_api_key') {{ $message }} @enderror
{{ Form::label('benefit_secret_key', __('Benefit Secret Key'), ['class' => 'col-form-label']) }} {{ Form::text('benefit_secret_key', isset($admin_payment_setting['benefit_secret_key']) ? $admin_payment_setting['benefit_secret_key'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Benefit Secret key')]) }} @error('benefit_secret_key') {{ $message }} @enderror

{{ Form::label('cashfree_api_key', __('Cashfree Key'), ['class' => 'col-form-label']) }} {{ Form::text('cashfree_api_key', isset($admin_payment_setting['cashfree_api_key']) ? $admin_payment_setting['cashfree_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Cashfree Key')]) }} @error('cashfree_api_key') {{ $message }} @enderror
{{ Form::label('cashfree_secret_key', __('Cashfree Secret Key'), ['class' => 'col-form-label']) }} {{ Form::text('cashfree_secret_key', isset($admin_payment_setting['cashfree_secret_key']) ? $admin_payment_setting['cashfree_secret_key'] : '', ['class' => 'form-control ', 'placeholder' => __('Enter Cashfree Secret key')]) }} @error('cashfree_secret_key') {{ $message }} @enderror

{{ Form::label('aamarpay_store_id', __('Store Id'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_store_id', isset($admin_payment_setting['aamarpay_store_id']) ? $admin_payment_setting['aamarpay_store_id'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Store Id')]) }}
@if ($errors->has('aamarpay_store_id')) {{ $errors->first('aamarpay_store_id') }} @endif
{{ Form::label('aamarpay_signature_key', __('Signature Key'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_signature_key', isset($admin_payment_setting['aamarpay_signature_key']) ? $admin_payment_setting['aamarpay_signature_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Signature Key')]) }}
@if ($errors->has('aamarpay_signature_key')) {{ $errors->first('aamarpay_signature_key') }} @endif
{{ Form::label('aamarpay_description', __('Description'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_description', isset($admin_payment_setting['aamarpay_description']) ? $admin_payment_setting['aamarpay_description'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Description')]) }}
@if ($errors->has('aamarpay_description')) {{ $errors->first('aamarpay_description') }} @endif

{{ Form::label('paytr_merchant_id', __('Merchant Id'), ['class' => 'form-label']) }} {{ Form::text('paytr_merchant_id', isset($admin_payment_setting['paytr_merchant_id']) ? $admin_payment_setting['paytr_merchant_id'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Id')]) }}
@if ($errors->has('paytr_merchant_id')) {{ $errors->first('paytr_merchant_id') }} @endif
{{ Form::label('paytr_merchant_key', __('Merchant Key'), ['class' => 'form-label']) }} {{ Form::text('paytr_merchant_key', isset($admin_payment_setting['paytr_merchant_key']) ? $admin_payment_setting['paytr_merchant_key'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Key')]) }}
@if ($errors->has('paytr_merchant_key')) {{ $errors->first('paytr_merchant_key') }} @endif
{{ Form::label('paytr_merchant_salt', __('Merchant Salt'), ['class' => 'form-label']) }} {{ Form::text('paytr_merchant_salt', isset($admin_payment_setting['paytr_merchant_salt']) ? $admin_payment_setting['paytr_merchant_salt'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Salt')]) }}
@if ($errors->has('paytr_merchant_salt')) {{ $errors->first('paytr_merchant_salt') }} @endif

{{ Form::label('yookassa_shop_id', __('Shop ID Key'), ['class' => 'form-label']) }} {{ Form::text('yookassa_shop_id', isset($admin_payment_setting['yookassa_shop_id']) ? $admin_payment_setting['yookassa_shop_id'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Id')]) }}
@if ($errors->has('yookassa_shop_id')) {{ $errors->first('yookassa_shop_id') }} @endif
{{ Form::label('yookassa_secret', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('yookassa_secret', isset($admin_payment_setting['yookassa_secret']) ? $admin_payment_setting['yookassa_secret'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Key')]) }}
@if ($errors->has('yookassa_secret')) {{ $errors->first('yookassa_secret') }} @endif


{{ Form::label('midtrans_secret', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('midtrans_secret', isset($admin_payment_setting['midtrans_secret']) ? $admin_payment_setting['midtrans_secret'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Id')]) }}
@if ($errors->has('midtrans_secret')) {{ $errors->first('midtrans_secret') }} @endif

{{ Form::label('xendit_api', __('API Key'), ['class' => 'form-label']) }} {{ Form::text('xendit_api', isset($admin_payment_setting['xendit_api']) ? $admin_payment_setting['xendit_api'] : '', ['class' => 'form-control', 'placeholder' => __('API Key')]) }}
@if ($errors->has('xendit_api')) {{ $errors->first('xendit_api') }} @endif
{{ Form::label('xendit_token', __('Token'), ['class' => 'form-label']) }} {{ Form::text('xendit_token', isset($admin_payment_setting['xendit_token']) ? $admin_payment_setting['xendit_token'] : '', ['class' => 'form-control', 'placeholder' => __('Token')]) }}
@if ($errors->has('xendit_token')) {{ $errors->first('xendit_token') }} @endif
{{-- Nepalste --}}

{{ Form::label('nepalste_public_key', __('Public Key'), ['class' => 'form-label']) }} {{ Form::text('nepalste_public_key', isset($admin_payment_setting['nepalste_public_key']) ? $admin_payment_setting['nepalste_public_key'] : '', ['class' => 'form-control', 'placeholder' => __('API Key')]) }}
@if ($errors->has('nepalste_public_key')) {{ $errors->first('nepalste_public_key') }} @endif
{{ Form::label('nepalste_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('nepalste_secret_key', isset($admin_payment_setting['nepalste_secret_key']) ? $admin_payment_setting['nepalste_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Token')]) }}
@if ($errors->has('nepalste_secret_key')) {{ $errors->first('nepalste_secret_key') }} @endif
{{-- Paiement Pro --}}

{{ Form::label('paiementpro_merchant_id', __('Merchant Id'), ['class' => 'form-label']) }} {{ Form::text('paiementpro_merchant_id', isset($admin_payment_setting['paiementpro_merchant_id']) ? $admin_payment_setting['paiementpro_merchant_id'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Id')]) }}
@if ($errors->has('paiementpro_merchant_id')) {{ $errors->first('paiementpro_merchant_id') }} @endif
{{-- Cinetpay --}}

{{ Form::label('cinetpay_api_key', __('CinetPay API Key'), ['class' => 'form-label']) }} {{ Form::text('cinetpay_api_key', isset($admin_payment_setting['cinetpay_api_key']) ? $admin_payment_setting['cinetpay_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('CinetPay API Key')]) }}
@if ($errors->has('cinetpay_api_key')) {{ $errors->first('cinetpay_api_key') }} @endif
{{ Form::label('cinetpay_site_id', __('CinetPay Site ID'), ['class' => 'form-label']) }} {{ Form::text('cinetpay_site_id', isset($admin_payment_setting['cinetpay_site_id']) ? $admin_payment_setting['cinetpay_site_id'] : '', ['class' => 'form-control', 'placeholder' => __('CinetPay Site ID')]) }}
@if ($errors->has('cinetpay_site_id')) {{ $errors->first('cinetpay_site_id') }} @endif
{{-- Fedapay --}}

{{ Form::label('fedapay_public', __('Public Key'), ['class' => 'form-label']) }} {{ Form::text('fedapay_public', isset($admin_payment_setting['fedapay_public']) ? $admin_payment_setting['fedapay_public'] : '', ['class' => 'form-control', 'placeholder' => __('Public Key')]) }}
@if ($errors->has('fedapay_public')) {{ $errors->first('fedapay_public') }} @endif
{{ Form::label('fedapay_secret', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('fedapay_secret', isset($admin_payment_setting['fedapay_secret']) ? $admin_payment_setting['fedapay_secret'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}
@if ($errors->has('fedapay_secret')) {{ $errors->first('fedapay_secret') }} @endif
{{-- PayHere --}}


{{ Form::label('payhere_merchant_id', __('Merchant ID'), ['class' => 'form-label']) }} {{ Form::text('payhere_merchant_id', isset($admin_payment_setting['payhere_merchant_id']) ? $admin_payment_setting['payhere_merchant_id'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant ID')]) }}
@if ($errors->has('payhere_merchant_id')) {{ $errors->first('payhere_merchant_id') }} @endif
{{ Form::label('payhere_merchant_secret', __('Merchant Secret'), ['class' => 'form-label']) }} {{ Form::text('payhere_merchant_secret', isset($admin_payment_setting['payhere_merchant_secret']) ? $admin_payment_setting['payhere_merchant_secret'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Secret')]) }}
@if ($errors->has('payhere_merchant_secret')) {{ $errors->first('payhere_merchant_secret') }} @endif
{{ Form::label('payhere_app_id', __('App ID'), ['class' => 'form-label']) }} {{ Form::text('payhere_app_id', isset($admin_payment_setting['payhere_app_id']) ? $admin_payment_setting['payhere_app_id'] : '', ['class' => 'form-control', 'placeholder' => __('App ID')]) }}
@if ($errors->has('payhere_app_id')) {{ $errors->first('payhere_app_id') }} @endif
{{ Form::label('payhere_app_secret', __('App Secret'), ['class' => 'form-label']) }} {{ Form::text('payhere_app_secret', isset($admin_payment_setting['payhere_app_secret']) ? $admin_payment_setting['payhere_app_secret'] : '', ['class' => 'form-control', 'placeholder' => __('App Secret')]) }}
@if ($errors->has('payhere_app_secret')) {{ $errors->first('payhere_app_secret') }} @endif
{{-- Tap --}}

{{ Form::label('company_tap_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('company_tap_secret_key', isset($admin_payment_setting['company_tap_secret_key']) ? $admin_payment_setting['company_tap_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}
@if ($errors->has('company_tap_secret_key')) {{ $errors->first('company_tap_secret_key') }} @endif
{{-- AuthorizeNet --}}


{{ Form::label('company_authorizenet_client_id', __('Merchant Login Id'), ['class' => 'form-label']) }} {{ Form::text('company_authorizenet_client_id', isset($admin_payment_setting['company_authorizenet_client_id']) ? $admin_payment_setting['company_authorizenet_client_id'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Login Id')]) }}
@if ($errors->has('company_authorizenet_client_id')) {{ $errors->first('company_authorizenet_client_id') }} @endif
{{ Form::label('company_authorizenet_secret_key', __('Merchant Transaction Key'), ['class' => 'form-label']) }} {{ Form::text('company_authorizenet_secret_key', isset($admin_payment_setting['company_authorizenet_secret_key']) ? $admin_payment_setting['company_authorizenet_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Merchant Transaction Key')]) }}
@if ($errors->has('company_authorizenet_secret_key')) {{ $errors->first('company_authorizenet_secret_key') }} @endif
{{-- Khalti --}}

{{ Form::label('khalti_public_key', __('Public Key'), ['class' => 'form-label']) }} {{ Form::text('khalti_public_key', isset($admin_payment_setting['khalti_public_key']) ? $admin_payment_setting['khalti_public_key'] : '', ['class' => 'form-control', 'placeholder' => __('Public Key')]) }}
@if ($errors->has('khalti_public_key')) {{ $errors->first('khalti_public_key') }} @endif
{{ Form::label('khalti_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('khalti_secret_key', isset($admin_payment_setting['khalti_secret_key']) ? $admin_payment_setting['khalti_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}
@if ($errors->has('khalti_secret_key')) {{ $errors->first('khalti_secret_key') }} @endif
{{ __('Pusher Settings') }}
{{ Form::model($settings, ['route' => 'pusher.setting', 'method' => 'post']) }} @csrf
{{ Form::label('pusher_app_id', __('Pusher App Id'), ['class' => 'form-label']) }} {{ Form::text('pusher_app_id', null, ['class' => 'form-control font-style']) }} @error('pusher_app_id') {{ $message }} @enderror
{{ Form::label('pusher_app_key', __('Pusher App Key'), ['class' => 'form-label']) }} {{ Form::text('pusher_app_key', null, ['class' => 'form-control font-style']) }} @error('pusher_app_key') {{ $message }} @enderror
{{ Form::label('pusher_app_secret', __('Pusher App Secret'), ['class' => 'form-label']) }} {{ Form::text('pusher_app_secret', null, ['class' => 'form-control font-style']) }} @error('pusher_app_secret') {{ $message }} @enderror
{{ Form::label('pusher_app_cluster', __('Pusher App Cluster'), ['class' => 'form-label']) }} {{ Form::text('pusher_app_cluster', null, ['class' => 'form-control font-style']) }} @error('pusher_app_cluster') {{ $message }} @enderror
{{ Form::close() }}
@csrf
{{ Form::label('google_recaptcha_version', __('Google Recaptcha Version'), ['class' => ' col-form-label']) }} {{ Form::select('google_recaptcha_version', $google_recaptcha_version, isset($setting['google_recaptcha_version']) ? $setting['google_recaptcha_version'] : 'v2-checkbox', ['id' => 'google_recaptcha_version', 'class' => 'form-control choices', 'searchEnabled' => 'true']) }}
{{ Form::close() }}
{{ Form::open(['route' => 'storage.setting.store', 'enctype' => 'multipart/form-data']) }}
{{ __('Storage Settings') }}
{{ Form::label('local_storage_validation', __('Only Upload Files'), ['class' => ' form-label']) }}
{{ Form::label('s3_storage_validation', __('Only Upload Files'), ['class' => ' form-label']) }}
{{ Form::label('wasabi_storage_validation', __('Only Upload Files'), ['class' => 'form-label']) }}
{{ Form::close() }}
{{-- SEO settings --}}
{{ __('SEO Settings') }}
@php $settings = \App\Models\Utility::settings(); @endphp @if (!empty($settings['chat_gpt_key'])) @endif
{{ Form::open(['url' => route('seo.settings.store'), 'method' => 'post', 'enctype' => 'multipart/form-data']) }} @csrf
{{ Form::label('Meta Keywords', __('Meta Keywords'), ['class' => 'col-form-label']) }} {{ Form::text('meta_title', !empty($setting['meta_title']) ? $setting['meta_title'] : '', ['class' => 'form-control ', 'placeholder' => 'Meta Keywords']) }}
{{ Form::label('Meta Description', __('Meta Description'), ['class' => 'col-form-label']) }} {{ Form::textarea('meta_desc', !empty($setting['meta_desc']) ? $setting['meta_desc'] : '', ['class' => 'form-control ', 'placeholder' => 'Meta Description', 'rows' => 7]) }}
{{ Form::label('Meta Image', __('Meta Image'), ['class' => 'col-form-label']) }}
@error('meta_image')
@enderror
{{ Form::close() }}
{{-- Cookie settings --}} {{-- Cache settings --}}
{{ 'Cache Settings' }}
{{ __("This is a page meant for more advanced users, simply ignore it if you don't understand what cache is.") }}
@csrf
{{ Form::label('Current cache size', __('Current cache size'), ['class' => 'col-form-label']) }}
{{ __('MB') }}
{{ Form::close() }}
{{-- chat gpt settings --}}
{{ __('Chat GPT Settings') }}
{{ Form::model($settings, ['route' => 'chatgpt.settings', 'method' => 'post']) }}
{{ Form::label('chat_gpt_key', __('Chat GPT key'), ['class' => 'col-form-label']) }} {{ Form::text('chat_gpt_key', isset($settings['chat_gpt_key']) ? $settings['chat_gpt_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chat GPT API Key'), 'required' => 'required']) }}
{{ Form::label('chat_gpt_model', __('Chat GPT Model Name'), ['class' => 'col-form-label']) }} {{ Form::text('chat_gpt_model', isset($settings['chat_gpt_model']) ? $settings['chat_gpt_model'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chat GPT Modal Name'), 'required' => 'required']) }}
{{ Form::close() }}
{{-- End for all settings tab --}}
@endsection