@extends('layouts.admin') @section('page-title') {{ __('Settings ') }} @endsection @section('breadcrumb') @endsection @php $logos = \App\Models\Utility::get_file('uploads/logo/'); $getSetting = \App\Models\Utility::getSeoSetting(); $SITE_RTL = Utility::getSettingValByName('SITE_RTL'); if ($SITE_RTL == '') { $SITE_RTL == 'off'; } $color = 'theme-3'; if (!empty($setting['color'])) { $color = $setting['color']; } $cust_theme_bg = 'on'; if (!empty($setting['cust_theme_bg'])) { $cust_theme_bg = $setting['cust_theme_bg']; } $cust_darklayout = 'off'; if (!empty($layout_setting['cust_darklayout'])) { $cust_darklayout = $layout_setting['cust_darklayout']; $company_logo = $layout_setting['company_logo']; } $EmailTemplates = App\Models\EmailTemplate::all(); $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); $lang = "en"; if(!empty(\App\Models\Utility::getSettingValByName('DEFAULT_LANG'))){ $lang = \App\Models\Utility::getSettingValByName('DEFAULT_LANG'); } @endphp @if ($color == 'theme-1') @endif @if ($color == 'theme-2') @endif @if ($color == 'theme-4') @endif @if ($color == 'theme-3') @endif @section('content')
{{ __('Brand settings') }}
{{ Form::open(['route' => 'admin.settings.store', 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('Dark Logo') }}
{{-- --}}
{{ __('Light Logo') }}
{{ __('Favicon') }}

{{--
--}}
{{ Form::label('APP_NAME', __('App Name'), ['class' => 'form-label']) }} {{ Form::text('APP_NAME', env('APP_NAME'), ['class' => 'form-control', 'placeholder' => __('App Name')]) }}
{{ 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')]) }}
{{ Form::label('default_language', __('Default Language'), ['class' => 'form-label']) }}
{{--
--}}
{{-- {{ !empty(env('FAQ')) && env('FAQ') == 'on' ? 'checked="checked"' : '' }}> --}}
{{-- {{ !empty(env('Knowlwdge_Base')) && env('Knowlwdge_Base') == 'on' ? 'checked="checked"' : '' }}> --}}

{{ __('Theme Customizer') }}

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


{{ __('Sidebar settings') }}

{{ __('Layout settings') }}

{{--
--}}
{{ Form::close() }}
{{ __('Email Settings') }}
{{ Form::open(['route' => 'admin.email.settings.store', 'method' => 'post']) }} @csrf
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'form-label']) }} {{ Form::text('mail_driver', env('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', env('MAIL_HOST') , ['class' => 'form-control ', 'placeholder' => __('Enter Mail Driver')]) }} @error('mail_host') {{ $message }} @enderror
{{ Form::label('mail_port', __('Mail Port'), ['class' => 'form-label']) }} {{ Form::text('mail_port', env('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', env('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',env('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', env('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', env('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', env('MAIL_FROM_NAME'), ['class' => 'form-control', 'placeholder' => __('Enter Mail From Name')]) }} @error('mail_from_name') {{ $message }} @enderror
{{ Form::close() }}
{{ Form::model($setting, ['route' => ['status.email.language'], 'method' => 'post']) }} @csrf
{{ __('Email Notification Settings') }}
@foreach ($EmailTemplates as $EmailTemplate)
template->is_active == 1) checked="checked" @endif type="checkbox" value="1" data-url="{{ route('status.email.language', [$EmailTemplate->template->id]) }}" />
@endforeach
{{ Form::close() }}
@csrf
{{ __('Pusher Settings') }}
@csrf
{{ __('Ticket Fields Settings') }}
@csrf
{{ __('Labels') }} {{ __('Placeholder') }} {{ __('Type') }} {{ __('Require') }} {{ __('Width') }} {{ __('Action') }}
{{ __('Company Settings') }}
{{ Form::model($setting, ['route' => 'company.settings', 'method' => 'post']) }}
{{ Form::label('company_name *', __('Company Name *'), ['class' => 'col-form-label']) }} {{ Form::text('company_name', null, ['class' => 'form-control ']) }} @error('company_name') {{ $message }} @enderror
{{ Form::label('company_address', __('Address'), ['class' => 'col-form-label']) }} {{ Form::text('company_address', null, ['class' => 'form-control ']) }} @error('company_address') {{ $message }} @enderror
{{ Form::label('company_city', __('City'), ['class' => 'col-form-label']) }} {{ Form::text('company_city', null, ['class' => 'form-control ']) }} @error('company_city') {{ $message }} @enderror
{{ Form::label('company_state', __('State'), ['class' => 'col-form-label']) }} {{ Form::text('company_state', null, ['class' => 'form-control ']) }} @error('company_state') {{ $message }} @enderror
{{ Form::label('company_zipcode', __('Zip/Post Code'), ['class' => 'col-form-label']) }} {{ Form::text('company_zipcode', null, ['class' => 'form-control']) }} @error('company_zipcode') {{ $message }} @enderror
{{ Form::label('company_country', __('Country'), ['class' => 'col-form-label']) }} {{ Form::text('company_country', null, ['class' => 'form-control ']) }} @error('company_country') {{ $message }} @enderror
{{ Form::label('company_telephone', __('Telephone'), ['class' => 'col-form-label']) }} {{ Form::text('company_telephone', null, ['class' => 'form-control']) }} @error('company_telephone') {{ $message }} @enderror
{{ Form::label('company_email', __('System Email *'), ['class' => 'col-form-label']) }} {{ Form::text('company_email', null, ['class' => 'form-control']) }} @error('company_email') {{ $message }} @enderror
{{ Form::label('company_email_from_name', __('Email (From Name) *'), ['class' => 'col-form-label']) }} {{ Form::text('company_email_from_name', null, ['class' => 'form-control ']) }} @error('company_email_from_name') {{ $message }} @enderror
{{ Form::label('timezone', __('Timezone'), ['class' => 'form-label']) }}
{{ Form::label('app_url', __('Application URL'), ['class' => 'form-label']) }} {{ Form::text('app_url', env('APP_URL'), ['class' => 'form-control', 'placeholder' => __('App Name')]) }}
{{ Form::close() }}
{{ __('Slack Settings') }}
{{-- Edit your company details --}}
{{ Form::model($setting, ['route' => 'slack.setting', 'id' => 'setting-form', 'method' => 'post']) }}

{{ __('Slack Webhook URL') }}

{{ Form::text('slack_webhook', isset($setting['slack_webhook']) ? $setting['slack_webhook'] : '', ['class' => 'form-control w-100', 'placeholder' => __('Enter Slack Webhook URL'), 'required' => 'required']) }}

{{ __('Module Setting') }}

  • {{ __('New User') }}
    {{ Form::checkbox('user_notification', '1', isset($setting['user_notification']) && $setting['user_notification'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'user_notification']) }}
  • {{ __('New Ticket') }}
    {{ Form::checkbox('ticket_notification', '1', isset($setting['ticket_notification']) && $setting['ticket_notification'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'ticket_notification']) }}
  • {{ __('New Ticket Reply') }}
    {{ Form::checkbox('reply_notification', '1', isset($setting['reply_notification']) && $setting['reply_notification'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'reply_notification']) }}
{{ Form::close() }}
{{ __('Telegram Settings') }}
{{ Form::model($setting, ['route' => 'telegram.setting', 'id' => 'setting-form', 'method' => 'post']) }}

{{ Form::text('telegram_accestoken', isset($setting['telegram_accestoken']) ? $setting['telegram_accestoken'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Telegram AccessToken')]) }}

{{ Form::text('telegram_chatid', isset($setting['telegram_chatid']) ? $setting['telegram_chatid'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Telegram ChatID')]) }}

{{ __('Module Setting') }}

  • {{ __('New User') }}
    {{ Form::checkbox('telegram_user_notification', '1', isset($setting['telegram_user_notification']) && $setting['telegram_user_notification'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_user_notification']) }}
  • {{ __('New Ticket') }}
    {{ Form::checkbox('telegram_ticket_notification', '1', isset($setting['telegram_ticket_notification']) && $setting['telegram_ticket_notification'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_ticket_notification']) }}
  • {{ __('New Ticket Reply') }}
    {{ Form::checkbox('telegram_reply_notification', '1', isset($setting['telegram_reply_notification']) && $setting['telegram_reply_notification'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_reply_notification']) }}
{{ 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('wasabi_storage_validation', __('Only Upload Files'), ['class' => 'form-label']) }}
{{ Form::close() }}
{{ Form::open(['url' => route('seo.settings'), 'enctype' => 'multipart/form-data']) }}
{{ __('SEO Settings') }}
@if (isset($setting['is_enabled']) && $setting['is_enabled'] == 'on') {{ __('Generate with AI') }} @endif
{{ Form::label('meta_keywords', __('Meta Keywords'), ['class' => 'col-form-label']) }} {{ Form::text('meta_keywords', !empty($getSetting['meta_keywords']) ? $getSetting['meta_keywords'] : '', ['class' => 'form-control ', 'placeholder' => 'Meta Keywords']) }}
{{ Form::label('meta_description', __('Meta Description'), ['class' => 'form-label']) }} {{ Form::textarea('meta_description', !empty($getSetting['meta_description']) ? $getSetting['meta_description'] : '', ['class' => 'form-control ', 'rows' => '5', 'placeholder' => 'Enter Meta Description']) }}
{{ Form::label('Meta Image', __('Meta Image'), ['class' => 'col-form-label']) }}
@php $src = isset($getSetting['meta_image']) && !empty($getSetting['meta_image']) ? asset(Storage::url('uploads/metaevent/' . $getSetting['meta_image'])) : ''; @endphp
{{ Form::close() }}
{{ __('Cache Setting') }}

This is a page meant for more advanced users, simply ignore it if you don't understand what cache is.

{{-- @dd(Utility::GetCacheSize()); --}}
MB
{{ Form::close() }}
{{ Form::model($setting, ['route' => 'settings.chatgptkey', 'method' => 'post']) }}
{{ __('Chat GPT Key Settings') }}
{{ Form::text('chatgpt_key', isset($setting['chatgpt_key']) ? $setting['chatgpt_key'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Chatgpt Key Here')]) }}
{{ Form::close() }}
{{ __('Webhook Settings') }}
@foreach ($webhooks as $webhook) {{-- dd($webhook) --}} {{-- --}} @endforeach
{{ __('Module') }} {{ __('URL') }} {{ __('Method') }} {{ __('Action') }}
{!! Form::open(['method' => 'DELETE', 'route' => ['admin.webhook.destroy', $webhook->id]]) !!} {!! Form::close() !!}
{!! Form::open(['method' => 'DELETE', 'route' => ['admin.webhook.destroy', $webhook->id]]) !!} {!! Form::close() !!}
@endsection @push('scripts') @endpush