@php /** * Refactored General Settings Blade template * - Improved layout and accessibility * - Replaced raw PHP tags with Blade syntax * - Added CSRF tokens to forms * - Added Zero-decimal currency UI (was referenced by JS but missing) * - Defensive JS initialisation (checks for jQuery, lodash, selectize) * - Encapsulated scripts inside DOMContentLoaded */ $appDefaultStyles = config('__settings.items.application_styles_and_colors'); $darkThemeAppColorStyles = config('__settings.items.application_dark_theme_styles_and_colors'); $skipItems = ['disable_bg_image', 'allow_to_change_theme']; @endphp
{{ __tr('Clear Optimizations') }}
@csrf
{{ __tr('Theme & Branding') }}
{{ __tr('File uploads will be processed automatically upon valid selection.') }}
{{ __tr('Light Theme') }}
{{ __tr('Dark Theme') }}
{{ __tr('Website Details') }}
{{ __tr('Contact Settings') }}
{{ __tr('This email will be used to receive messages from the contact form.') }}
{{ __tr('Details entered here will be displayed on the contact page.') }}
{{ __tr('Localization') }}
{{ __tr('Currency') }}
@csrf
{{ $configurationData['currency_symbol'] ?? '' }}
{{ __tr('Disposable Email Usages') }}
{{ __tr('Note:') }} {{ __tr('It will disallow users from using disposable emails like Mailinator, Guerillamail, etc., for user registration, contact forms, and more.') }}
@csrf
{{ __tr('Google Login') }}
{{ __tr('Configure OAuth keys') }}
@csrf
{{ __tr('Facebook Login') }}
{{ __tr('Configure OAuth keys') }}

{{ __tr('Home Page Settings') }}

@csrf
@foreach ([ 'outer-home' => __tr('Home Page 1'), 'outer-home-2' => __tr('Home Page 2'), 'outer-home-3' => __tr('Home Page 3'), ] as $key => $label) @endforeach
{{ __tr('------- OR -------') }}

{{ __tr('Excel Contacts Import Limit') }}

@csrf

{{ __tr('Background setup') }}

@csrf

{{ __tr('Choose your colors') }}

{{ __tr('Light Theme Colors') }}

@foreach ($appDefaultStyles as $styleItem) @if (in_array($styleItem['key'], $skipItems)) @continue @endif @endforeach

{{ __tr('Dark Theme Colors') }}

@foreach ($darkThemeAppColorStyles as $styleItem) @if (in_array($styleItem['key'], $skipItems)) @continue @endif @endforeach

{{ __tr('Head Code') }}

{{ __tr('You can place any script, css, styles etc. to the head tag here.') }}

{{ __tr('Email') }}

@if (swaksharyipadtalni())
{{ __tr('If you changed anything here or in .env file consider Clearing Optimization from Misc Settings.') }}
@endif
{{ __tr('SMTP Settings') }}
{{ __tr('Sparkpost Settings') }}
{{ __tr('Mailgun Settings') }}
@push('appScripts') @endpush