@extends('layouts.admin') @section('page-title') {{ __('Settings') }} @endsection @php $setting = App\Models\Utility::getAdminPaymentSettings(); $flag = $setting['color_flag']; $languages = \App\Models\Utility::languages(); $color = isset($settings['theme_color']) ? $settings['theme_color'] : 'theme-4'; $is_sidebar_transperent = isset($settings['is_sidebar_transperent']) ? $settings['is_sidebar_transperent'] : ''; $dark_mode = isset($settings['dark_mode']) ? $settings['dark_mode'] : ''; if ($setting['color']) { $color = $setting['color']; } else { $color = 'theme-4'; } @endphp @php $logo = \App\Models\Utility::get_file('logo/'); $meta_images = \App\Models\Utility::get_file('uploads/logo/'); $file_type = config('files_types'); $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); $google_recaptcha_version = ['v2-checkbox' => __('v2'), 'v3' => __('v3')]; @endphp @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @section('content')
{{ Form::open(['route' => 'settings.store', 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('Brand Settings') }}
{{ __('Dark Logo') }}

{{ __('Light Logo') }}

{{ __('Favicon') }}

{{ Form::label('app_name', __('App Name'), ['class' => 'form-label']) }} {{ Form::text('app_name', !empty($setting['app_name']) ? $setting['app_name'] : '', ['class' => 'form-control', 'placeholder' => __('App Name')]) }} @error('app_name') {{ $message }} @enderror
{{ Form::label('footer_text', __('Footer Text'), ['class' => 'form-label']) }} {{ Form::text('footer_text', !empty($setting['footer_text']) ? $setting['footer_text'] : '', ['class' => 'form-control', 'placeholder' => __('Footer Text')]) }} @error('footer_text') {{ $message }} @enderror
@php $DEFAULT_LANG = $setting['default_lang'] ? $setting['default_lang'] : 'en'; @endphp
{{ Form::label('default_language', __('Default Language'), ['class' => 'form-label']) }}
{{--
@if (env('gdpr_cookie') == 'on') {{ Form::label('cookie_text', __('GDPR Cookie Text'), ['class' => 'fulltime form-label ']) }} {!! Form::textarea('cookie_text', env('cookie_text'), [ 'class' => 'form-control fulltime', 'rows' => '2', 'style' => 'display: hidden;height: auto !important;resize:none;', ]) !!} @endif
--}}

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.store', 'method' => 'post']) }}
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'form-label']) }} {{ Form::text('mail_driver', !empty($setting['mail_driver']) ? $setting['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', !empty($setting['mail_host']) ? $setting['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', !empty($setting['mail_port']) ? $setting['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', !empty($setting['mail_username']) ? $setting['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', !empty($setting['mail_password']) ? $setting['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', !empty($setting['mail_encryption']) ? $setting['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', !empty($setting['mail_from_address']) ? $setting['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', !empty($setting['mail_from_name']) ? $setting['mail_from_name'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Mail From Name')]) }} @error('mail_from_name') {{ $message }} @enderror
{{ Form::close() }}
@csrf
{{ __('Pusher Settings') }}
@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'] == 'v3' ? 'v3' : 'v2-checkbox', ['id' => 'google_recaptcha_version', 'class' => 'form-control multi-select', 'searchEnabled' => 'true'], ) }}
{{ 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() }}
{{ Form::open(['route' => ['settings.seo.store'], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('SEO Settings') }}
{{ Form::label('Telegram Access Token', __('Meta Keywords'), ['class' => 'form-label']) }} {{ Form::text('meta_keywords', isset($setting['meta_keywords']) ? $setting['meta_keywords'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Meta Keywords'), 'required' => 'required']) }}
{{ Form::label('Telegram ChatID', __('Meta Description'), ['class' => 'form-label']) }} {{ Form::textarea('meta_description', isset($setting['meta_description']) ? $setting['meta_description'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Meta Description'), 'required' => 'required']) }}
{{--
--}} {{--
--}}
{{ __('Meta Image') }}
{{--
--}} {{--
--}}

{{--
--}} {{--
--}}
{{ Form::close() }}
{{ __('Cache Settings') }}
{{ __('This is a page meant for more advanced users, simply ignore it if you dont understand what cache is.') }}
{{ Form::label('cache', __('Current cache size'), ['class' => 'col-form-label']) }}
{{ __('MB') }}
{{ Form::model($setting, ['route' => 'settings.chatgptkey', 'method' => 'post']) }}
{{ __('Chat GPT Key Settings') }}
{{ __('Edit your key details') }}
{{ Form::label('chatgpt_key', __('ChatGPT key'), ['class' => 'col-form-label']) }} {{ Form::text('chatgpt_key', isset($setting['chatgpt_key']) ? $setting['chatgpt_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chatgpt Key Here')]) }}
{{ Form::label('chatgpt_model', __('ChatGPT Model'), ['class' => 'col-form-label']) }} {{ Form::text('chatgpt_model', isset($setting['chatgpt_model']) ? $setting['chatgpt_model'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chatgpt Model Here')]) }}
{{ Form::close() }}
@endsection @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('scripts') @if ($setting['enable_cookie'] != 'on') @endif {{-- color picker script --}} @endpush