|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/account.appointkrypt.com/storage/framework/views/ |
Upload File : |
<!--Brand Settings-->
<div id="site-settings" class="">
<?php echo e(Form::open(['route' => ['super.admin.settings.save'], 'enctype' => 'multipart/form-data', 'id' => 'setting-form'])); ?>
<?php echo method_field('post'); ?>
<div class="card">
<div class="card-header">
<h5><?php echo e(__('Brand Settings')); ?></h5>
</div>
<div class="card-body pb-0">
<div class="row">
<div class="col-lg-4 col-12 d-flex">
<div class="card w-100">
<div class="card-header">
<h5 class="small-title"><?php echo e(__('Logo Dark')); ?></h5>
</div>
<div class="card-body setting-card setting-logo-box p-3">
<div class="d-flex flex-column justify-content-between align-items-center h-100">
<div class="logo-content img-fluid logo-set-bg text-center py-2">
<?php
$logo_dark = isset($settings['logo_dark']) ? (check_file($settings['logo_dark']) ? $settings['logo_dark'] : 'uploads/logo/logo_dark.png') : 'uploads/logo/logo_dark.png';
?>
<img alt="image" src="<?php echo e(get_file($logo_dark)); ?><?php echo e('?' . time()); ?>"
class="small-logo" id="pre_default_logo">
</div>
<div class="choose-files mt-3">
<label for="logo_dark">
<div class=" bg-primary "> <i
class="ti ti-upload px-1"></i><?php echo e(__('Choose file here')); ?></div>
<input type="file" class="form-control file" name="logo_dark"
id="logo_dark" data-filename="logo_dark"
onchange="document.getElementById('pre_default_logo').src = window.URL.createObjectURL(this.files[0])">
</label>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-12 d-flex">
<div class="card w-100">
<div class="card-header">
<h5 class="small-title"><?php echo e(__('Logo Light')); ?></h5>
</div>
<div class="card-body setting-card setting-logo-box p-3">
<div class="d-flex flex-column justify-content-between align-items-center h-100">
<div class="logo-content img-fluid logo-set-bg text-center py-2">
<?php
$logo_light = isset($settings['logo_light']) ? (check_file($settings['logo_light']) ? $settings['logo_light'] : 'uploads/logo/logo_light.png') : 'uploads/logo/logo_light.png';
?>
<img alt="image" src="<?php echo e(get_file($logo_light)); ?><?php echo e('?' . time()); ?>"
class="img_setting small-logo" id="landing_page_logo">
</div>
<div class="choose-files mt-3">
<label for="logo_light">
<div class=" bg-primary "> <i
class="ti ti-upload px-1"></i><?php echo e(__('Choose file here')); ?></div>
<input type="file" class="form-control file" name="logo_light"
id="logo_light" data-filename="logo_light"
onchange="document.getElementById('landing_page_logo').src = window.URL.createObjectURL(this.files[0])">
</label>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-12 d-flex">
<div class="card w-100">
<div class="card-header">
<h5 class="small-title"><?php echo e(__('Favicon')); ?></h5>
</div>
<div class="card-body setting-card setting-logo-box p-3">
<div class="d-flex flex-column justify-content-between align-items-center h-100">
<div class="logo-content img-fluid logo-set-bg text-center py-2">
<?php
$favicon = isset($settings['favicon']) ? (check_file($settings['favicon']) ? $settings['favicon'] : 'uploads/logo/favicon.png') : 'uploads/logo/favicon.png';
?>
<img src="<?php echo e(get_file($favicon)); ?><?php echo e('?' . time()); ?>" class="setting-img"
width="40px" id="img_favicon" />
</div>
<div class="choose-files mt-3">
<label for="favicon">
<div class=" bg-primary "> <i
class="ti ti-upload px-1"></i><?php echo e(__('Choose file here')); ?></div>
<input type="file" class="form-control file" name="favicon" id="favicon"
data-filename="favicon"
onchange="document.getElementById('img_favicon').src = window.URL.createObjectURL(this.files[0])">
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-12">
<div class="form-group">
<label for="title_text" class="form-label"><?php echo e(__('Title Text')); ?></label>
<?php echo e(Form::text('title_text', !empty($settings['title_text']) ? $settings['title_text'] : null, ['class' => 'form-control', 'placeholder' => __('Enter Title Text')])); ?>
</div>
</div>
<div class="col-sm-6 col-12">
<div class="form-group">
<label for="footer_text" class="form-label"><?php echo e(__('Footer Text')); ?></label>
<?php echo e(Form::text('footer_text', !empty($settings['footer_text']) ? $settings['footer_text'] : null, ['class' => 'form-control', 'placeholder' => __('Enter Footer Text')])); ?>
</div>
</div>
<div class="col-sm-3 col-12 d-none">
<div class="form-check form-switch mt-2">
<input type="checkbox" class="form-check-input" id="landing_page" name="landing_page"
<?php echo e(isset($settings['landing_page']) && $settings['landing_page'] == 'on' ? 'checked' : ''); ?> />
<label class="form-check-label f-w-600 pl-1"
for="landing_page"><?php echo e(__('Enable Landing Page')); ?></label>
</div>
</div>
<div class="col-sm-3 col-12">
<div class="form-check form-switch mt-2">
<input type="checkbox" class="form-check-input" id="signup" name="signup"
<?php echo e(isset($settings['signup']) && $settings['signup'] == 'on' ? 'checked' : ''); ?> />
<label class="form-check-label f-w-600 pl-1" for="signup"><?php echo e(__('Enable Signup')); ?></label>
</div>
</div>
<div class="col-sm-3 col-12 ">
<div class="form-check form-switch mt-2">
<input type="checkbox" class="form-check-input" id="email_verification"
name="email_verification"
<?php echo e(isset($settings['email_verification']) && $settings['email_verification'] == 'on' ? 'checked' : ''); ?> />
<label class="form-check-label f-w-600 pl-1"
for="email_verification"><?php echo e(__('Email Verification')); ?></label>
</div>
</div>
<div class="col-sm-3 col-12">
<div class="form-check form-switch mt-2">
<input type="checkbox" class="form-check-input" id="site_rtl" name="site_rtl"
<?php echo e(isset($settings['site_rtl']) && $settings['site_rtl'] == 'on' ? 'checked' : ''); ?> />
<input type="checkbox" class="form-check-input" id="signup" name="signup"
<?php echo e(isset($settings['signup']) && $settings['signup'] == 'on' ? 'checked' : ''); ?> />
<label class="form-check-label f-w-600 pl-1" for="site_rtl"><?php echo e(__('RTL Layout')); ?></label>
</div>
</div>
<div class="row mt-3">
<h4 class="small-title"><?php echo e(__('Theme Customizer')); ?></h4>
<div class="settings-card p-3">
<div class="row">
<div class="col-lg-4 col-xl-4 col-md-4">
<h6 class="">
<i data-feather="credit-card"
class="me-2"></i><?php echo e(__('Primary color settings')); ?>
</h6>
<hr class="my-2" />
<div class="color-wrp">
<div class="theme-color themes-color">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-1' ? 'active_color' : ''); ?>"
data-value="theme-1" onclick="check_theme('theme-1')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-1' ? 'checked' : ''); ?>
name="color" value="theme-1">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-2' ? 'active_color' : ''); ?> "
data-value="theme-2" onclick="check_theme('theme-2')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-2' ? 'checked' : ''); ?>
name="color" value="theme-2">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-3' ? 'active_color' : ''); ?>"
data-value="theme-3" onclick="check_theme('theme-3')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-3' ? 'checked' : ''); ?>
name="color" value="theme-3">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-4' ? 'active_color' : ''); ?>"
data-value="theme-4" onclick="check_theme('theme-4')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-4' ? 'checked' : ''); ?>
name="color" value="theme-4">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-5' ? 'active_color' : ''); ?>"
data-value="theme-5" onclick="check_theme('theme-5')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-5' ? 'checked' : ''); ?>
name="color" value="theme-5">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-6' ? 'active_color' : ''); ?>"
data-value="theme-6" onclick="check_theme('theme-6')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-6' ? 'checked' : ''); ?>
name="color" value="theme-6">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-7' ? 'active_color' : ''); ?>"
data-value="theme-7" onclick="check_theme('theme-7')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-7' ? 'checked' : ''); ?>
name="color" value="theme-7">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-8' ? 'active_color' : ''); ?>"
data-value="theme-8" onclick="check_theme('theme-8')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-8' ? 'checked' : ''); ?>
name="color" value="theme-8">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-9' ? 'active_color' : ''); ?>"
data-value="theme-9" onclick="check_theme('theme-9')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-9' ? 'checked' : ''); ?>
name="color" value="theme-9">
<a href="#!"
class="themes-color-change<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-10' ? 'active_color' : ''); ?>"
data-value="theme-10" onclick="check_theme('theme-10')"></a>
<input type="radio" class="d-none"
<?php echo e(isset($settings['color']) && $settings['color'] == 'theme-10' ? 'checked' : ''); ?>
name="color" value="theme-10">
</div>
<div class="color-picker-wrp ">
<input type="color"
value="<?php echo e(isset($settings['color']) ? $settings['color'] : ''); ?>"
class="colorPicker <?php echo e(isset($settings['color_flag']) && $settings['color_flag'] == 'true' ? 'active_color' : ''); ?>"
name="custom_color" id="color-picker">
<input type='hidden' name="color_flag"
value=<?php echo e(isset($settings['color_flag']) && $settings['color_flag'] == 'true' ? 'true' : 'false'); ?>>
</div>
</div>
</div>
<div class="col-lg-4 col-xl-4 col-md-4">
<h6>
<i data-feather="layout" class="me-2"></i> <?php echo e(__('Sidebar settings')); ?>
</h6>
<hr class="my-2" />
<div class="form-check form-switch">
<input type="checkbox" class="form-check-input" id="site_transparent"
name="site_transparent"
<?php echo e(isset($settings['site_transparent']) && $settings['site_transparent'] == 'on' ? 'checked' : ''); ?> />
<label class="form-check-label f-w-600 pl-1"
for="site_transparent"><?php echo e(__('Transparent layout')); ?></label>
</div>
</div>
<div class="col-lg-4 col-xl-4 col-md-4">
<h6 class="">
<i data-feather="sun" class=""></i><?php echo e(__('Layout settings')); ?>
</h6>
<hr class=" my-2 " />
<div class="form-check form-switch mt-2" id="style-link"
data-style-dark="<?php echo e(asset('assets/css/style-dark.css')); ?>"
data-style-light="<?php echo e(asset('assets/css/style.css')); ?>">
<input type="checkbox" class="form-check-input" id="cust-darklayout"
name="cust_darklayout"
<?php echo e(isset($settings['cust_darklayout']) && $settings['cust_darklayout'] == 'on' ? 'checked' : ''); ?> />
<label class="form-check-label f-w-600 pl-1"
for="cust-darklayout"><?php echo e(__('Dark Layout')); ?></label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer text-end">
<input class="btn btn-print-invoice btn-primary " type="submit" value="<?php echo e(__('Save Changes')); ?>">
</div>
<?php echo e(Form::close()); ?>
</div>
</div>
<!--system settings-->
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="card" id="system-settings">
<div class="card-header">
<h5 class="small-title"><?php echo e(__('System Settings')); ?></h5>
</div>
<?php echo e(Form::open(['route' => ['super.admin.system.setting.store'], 'id' => 'setting-system-form'])); ?>
<?php echo method_field('post'); ?>
<div class="card-body pb-0">
<div class="row">
<div class="col-2">
<div class="form-group col switch-width">
<?php echo e(Form::label('currency_format', __('Decimal Format'), ['class' => ' col-form-label'])); ?>
<select class="form-control" data-trigger name="currency_format" id="currency_format"
placeholder="This is a search placeholder">
<option value="0"
<?php echo e(isset($settings['currency_format']) && $settings['currency_format'] == '0' ? 'selected' : ''); ?>>
1</option>
<option value="1"
<?php echo e(isset($settings['currency_format']) && $settings['currency_format'] == '1' ? 'selected' : ''); ?>>
1.0</option>
<option value="2"
<?php echo e(isset($settings['currency_format']) && $settings['currency_format'] == '2' ? 'selected' : ''); ?>>
1.00</option>
<option value="3"
<?php echo e(isset($settings['currency_format']) && $settings['currency_format'] == '3' ? 'selected' : ''); ?>>
1.000</option>
<option value="4"
<?php echo e(isset($settings['currency_format']) && $settings['currency_format'] == '4' ? 'selected' : ''); ?>>
1.0000</option>
</select>
</div>
</div>
<div class="col-2">
<div class="form-group col switch-width">
<?php echo e(Form::label('defult_currancy', __('Default Currancy'), ['class' => ' col-form-label'])); ?>
<select class="form-control" data-trigger name="defult_currancy" id="defult_currancy"
placeholder="This is a search placeholder">
<?php $__currentLoopData = currency(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($c->symbol); ?>-<?php echo e($c->code); ?>"
data-symbol="<?php echo e($c->symbol); ?>"
<?php echo e(isset($settings['defult_currancy']) && $settings['defult_currancy'] == $c->code ? 'selected' : ''); ?>>
<?php echo e($c->symbol); ?> - <?php echo e($c->code); ?> </option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
<div class="col-2">
<div class="form-group col switch-width">
<?php echo e(Form::label('defult_language', __('Default Language'), ['class' => ' col-form-label'])); ?>
<select class="form-control" data-trigger name="defult_language" id="defult_language"
placeholder="This is a search placeholder">
<?php $__currentLoopData = languages(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($key); ?>"
<?php echo e(isset($settings['defult_language']) && $settings['defult_language'] == $key ? 'selected' : ''); ?>>
<?php echo e(Str::ucfirst($language)); ?> </option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
<div class="col-sm-6 col-12">
<div class="form-group col switch-width">
<?php echo e(Form::label('defult_timezone', __('Default Timezone'), ['class' => ' col-form-label'])); ?>
<?php echo e(Form::select('defult_timezone', $timezones, isset($settings['defult_timezone']) ? $settings['defult_timezone'] : null, ['id' => 'timezone', 'class' => 'form-control choices', 'searchEnabled' => 'true'])); ?>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label class="form-label"
for="example3cols3Input"><?php echo e(__('Currency Symbol Position')); ?></label>
<div class="row ms-1">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio"
name="site_currency_symbol_position" value="pre"
<?php if(!isset($settings['site_currency_symbol_position']) || $settings['site_currency_symbol_position'] == 'pre'): ?> checked <?php endif; ?> id="flexCheckDefault">
<label class="form-check-label" for="flexCheckDefault">
<?php echo e(__('Pre')); ?>
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio"
name="site_currency_symbol_position" value="post"
<?php if(isset($settings['site_currency_symbol_position']) && $settings['site_currency_symbol_position'] == 'post'): ?> checked <?php endif; ?> id="flexCheckChecked">
<label class="form-check-label" for="flexCheckChecked">
<?php echo e(__('Post')); ?>
</label>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="site_date_format" class="form-label"><?php echo e(__('Date Format')); ?></label>
<select type="text" name="site_date_format" class="form-control selectric"
id="site_date_format">
<option value="d-m-Y" <?php if(isset($settings['site_date_format']) && $settings['site_date_format'] == 'd-m-Y'): ?> selected="selected" <?php endif; ?>>
DD-MM-YYYY</option>
<option value="m-d-Y" <?php if(isset($settings['site_date_format']) && $settings['site_date_format'] == 'm-d-Y'): ?> selected="selected" <?php endif; ?>>
MM-DD-YYYY</option>
<option value="Y-m-d" <?php if(isset($settings['site_date_format']) && $settings['site_date_format'] == 'Y-m-d'): ?> selected="selected" <?php endif; ?>>
YYYY-MM-DD</option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="site_time_format" class="form-label"><?php echo e(__('Time Format')); ?></label>
<select type="text" name="site_time_format" class="form-control selectric"
id="site_time_format">
<option value="g:i A" <?php if(isset($settings['site_time_format']) && $settings['site_time_format'] == 'g:i A'): ?> selected="selected" <?php endif; ?>>
10:30 PM</option>
<option value="H:i" <?php if(isset($settings['site_time_format']) && $settings['site_time_format'] == 'H:i'): ?> selected="selected" <?php endif; ?>>
22:30</option>
</select>
</div>
</div>
</div>
</div>
<div class="card-footer text-end">
<input class="btn btn-print-invoice btn-primary " type="submit"
value="<?php echo e(__('Save Changes')); ?>">
</div>
<?php echo e(Form::close()); ?>
</div>
</div>
</div>
<div class="card" id="cookie-sidenav">
<?php echo e(Form::open(['route' => ['cookie.setting.store'], 'method' => 'post'])); ?>
<div class="card-header">
<div class="row">
<div class="col-lg-10 col-md-10 col-sm-10">
<h5 class=""><?php echo e(__('Cookie Settings')); ?></h5>
</div>
<div class="col-lg-2 col-md-2 col-sm-2 text-end">
<div class="form-check form-switch custom-switch-v1 float-end">
<input type="checkbox" name="enable_cookie" class="form-check-input input-primary"
id="enable_cookie"
<?php echo e((isset($settings['enable_cookie']) ? $settings['enable_cookie'] : 'off') == 'on' ? ' checked ' : ''); ?>>
<label class="form-check-label" for="enable_cookie"></label>
</div>
</div>
</div>
</div>
<div class="card-body">
<div class="row ">
<div class="col-md-6">
<div class="form-check form-switch custom-switch-v1" id="cookie_log">
<input type="checkbox" name="cookie_logging"
class="form-check-input input-primary cookie_setting" id="cookie_logging"
<?php echo e((isset($settings['cookie_logging']) ? $settings['cookie_logging'] : 'off') == 'on' ? ' checked ' : ''); ?>>
<label class="form-check-label" for="cookie_logging"><?php echo e(__('Enable logging')); ?></label>
<small
class="text-danger"><?php echo e(__('After enabling logging, user cookie data will be stored in CSV file.')); ?></small>
</div>
<div class="form-group">
<?php echo e(Form::label('cookie_title', __('Cookie Title'), ['class' => 'col-form-label'])); ?>
<?php echo e(Form::text('cookie_title', !empty($settings['cookie_title']) ? $settings['cookie_title'] : null, ['class' => 'form-control cookie_setting'])); ?>
</div>
<div class="form-group ">
<?php echo e(Form::label('cookie_description', __('Cookie Description'), ['class' => ' form-label'])); ?>
<?php echo Form::textarea(
'cookie_description',
!empty($settings['cookie_description']) ? $settings['cookie_description'] : null,
['class' => 'form-control cookie_setting', 'rows' => '3'],
); ?>
</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 cookie_setting" id="necessary_cookies" checked
onclick="return false">
<label class="form-check-label"
for="necessary_cookies"><?php echo e(__('Strictly necessary cookies')); ?></label>
</div>
<div class="form-group ">
<?php echo e(Form::label('strictly_cookie_title', __(' Strictly Cookie Title'), ['class' => 'col-form-label'])); ?>
<?php echo e(Form::text('strictly_cookie_title', !empty($settings['strictly_cookie_title']) ? $settings['strictly_cookie_title'] : null, ['class' => 'form-control cookie_setting'])); ?>
</div>
<div class="form-group ">
<?php echo e(Form::label('strictly_cookie_description', __('Strictly Cookie Description'), ['class' => ' form-label'])); ?>
<?php echo Form::textarea(
'strictly_cookie_description',
!empty($settings['strictly_cookie_description']) ? $settings['strictly_cookie_description'] : null,
['class' => 'form-control cookie_setting ', 'rows' => '3'],
); ?>
</div>
</div>
<div class="col-12">
<h5><?php echo e(__('More Information')); ?></h5>
</div>
<div class="col-md-6">
<div class="form-group">
<?php echo e(Form::label('more_information_description', __('Contact Us Description'), ['class' => 'col-form-label'])); ?>
<?php echo e(Form::text('more_information_description', !empty($settings['more_information_description']) ? $settings['more_information_description'] : null, ['class' => 'form-control cookie_setting'])); ?>
</div>
</div>
<div class="col-md-6">
<div class="form-group ">
<?php echo e(Form::label('contactus_url', __('Contact Us URL'), ['class' => 'col-form-label'])); ?>
<?php echo e(Form::text('contactus_url', !empty($settings['contactus_url']) ? $settings['contactus_url'] : null, ['class' => 'form-control cookie_setting'])); ?>
</div>
</div>
</div>
</div>
<div class="card-footer">
<div class="row">
<div class="col-6">
<?php if((isset($settings['cookie_logging']) ? $settings['cookie_logging'] : 'off') == 'on'): ?>
<?php if(check_file('uploads/sample/cookie_data.csv')): ?>
<label for="file" class="form-label"><?php echo e(__('Download cookie accepted data')); ?></label>
<a href="<?php echo e(asset('uploads/sample/cookie_data.csv')); ?>" class="btn btn-primary mr-3">
<i class="ti ti-download"></i>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="col-6 text-end ">
<input class="btn btn-print-invoice btn-primary" type="submit" value="<?php echo e(__('Save Changes')); ?>">
</div>
</div>
</div>
<?php echo e(Form::close()); ?>
</div>
<div class="card" id="storage-sidenav">
<?php echo e(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 class=""><?php echo e(__('Storage Settings')); ?></h5>
</div>
</div>
</div>
<div class="card-body">
<div class="d-flex">
<div class="pe-2">
<input type="radio" class="btn-check" name="storage_setting" id="local-outlined"
autocomplete="off"
<?php echo e(isset($settings['storage_setting']) && $settings['storage_setting'] == 'local' ? 'checked' : ''); ?>
value="local">
<label class="btn btn-outline-primary" for="local-outlined"><?php echo e(__('Local')); ?></label>
</div>
<div class="pe-2">
<input type="radio" class="btn-check" name="storage_setting" id="s3-outlined"
autocomplete="off"
<?php echo e(isset($settings['storage_setting']) && $settings['storage_setting'] == 's3' ? 'checked' : ''); ?>
value="s3">
<label class="btn btn-outline-primary" for="s3-outlined"> <?php echo e(__('AWS S3')); ?></label>
</div>
<div class="pe-2">
<input type="radio" class="btn-check" name="storage_setting" id="wasabi-outlined"
autocomplete="off"
<?php echo e(isset($settings['storage_setting']) && $settings['storage_setting'] == 'wasabi' ? 'checked' : ''); ?>
value="wasabi">
<label class="btn btn-outline-primary" for="wasabi-outlined"><?php echo e(__('Wasabi')); ?></label>
</div>
</div>
<hr class="mt-4">
<div
class="local-setting row <?php echo e(isset($settings['storage_setting']) && $settings['storage_setting'] == 'local' ? ' ' : 'd-none'); ?>">
<h4 class="small-title"><?php echo e(__('Local Settings')); ?></h4>
<div class="form-group col-12 switch-width">
<?php echo e(Form::label('local_storage_validation', __('Only Upload Files'), ['class' => ' col-form-label'])); ?>
<?php echo e(Form::select('local_storage_validation[]', array_flip($file_type), isset($settings['local_storage_validation']) ? explode(',', $settings['local_storage_validation']) : null, ['id' => 'local_storage_validation', 'class' => ' choices', 'multiple' => '', 'searchEnabled' => 'true'])); ?>
</div>
<div class="col-lg-4">
<div class="form-group">
<label class="form-label"
for="local_storage_max_upload_size"><?php echo e(__('Max upload size ( In KB)')); ?></label>
<input type="number" name="local_storage_max_upload_size" class="form-control"
value="<?php echo e(isset($settings['local_storage_max_upload_size']) ? $settings['local_storage_max_upload_size'] : 2024); ?>"
placeholder="<?php echo e(__('Max upload size')); ?>">
</div>
</div>
</div>
<div
class="s3-setting row <?php echo e(isset($settings['storage_setting']) && $settings['storage_setting'] == 's3' ? ' ' : 'd-none'); ?>">
<h4 class="small-title mb-3"><?php echo e(__('AWS S3 Settings')); ?></h4>
<div class=" row ">
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_key"><?php echo e(__('S3 Key')); ?></label>
<input type="text" name="s3_key" class="form-control"
value="<?php echo e(isset($settings['s3_key']) ? $settings['s3_key'] : null); ?>"
placeholder="<?php echo e(__('S3 Key')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_secret"><?php echo e(__('S3 Secret')); ?></label>
<input type="text" name="s3_secret" class="form-control"
value="<?php echo e(isset($settings['s3_secret']) ? $settings['s3_secret'] : null); ?>"
placeholder="<?php echo e(__('S3 Secret')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_region"><?php echo e(__('S3 Region')); ?></label>
<input type="text" name="s3_region" class="form-control"
value="<?php echo e(isset($settings['s3_region']) ? $settings['s3_region'] : null); ?>"
placeholder="<?php echo e(__('S3 Region')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_bucket"><?php echo e(__('S3 Bucket')); ?></label>
<input type="text" name="s3_bucket" class="form-control"
value="<?php echo e(isset($settings['s3_bucket']) ? $settings['s3_bucket'] : null); ?>"
placeholder="<?php echo e(__('S3 Bucket')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_url"><?php echo e(__('S3 URL')); ?></label>
<input type="text" name="s3_url" class="form-control"
value="<?php echo e(isset($settings['s3_url']) ? $settings['s3_url'] : null); ?>"
placeholder="<?php echo e(__('S3 URL')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_endpoint"><?php echo e(__('S3 Endpoint')); ?></label>
<input type="text" name="s3_endpoint" class="form-control"
value="<?php echo e(isset($settings['s3_endpoint']) ? $settings['s3_endpoint'] : null); ?>"
placeholder="<?php echo e(__('S3 Bucket')); ?>">
</div>
</div>
<div class="col-lg-4">
<div class="form-group">
<label class="form-label"
for="s3_max_upload_size"><?php echo e(__('Max upload size ( In KB)')); ?></label>
<input type="number" name="s3_max_upload_size" class="form-control"
value="<?php echo e(isset($settings['s3_max_upload_size']) ? $settings['s3_max_upload_size'] : 2024); ?>"
placeholder="<?php echo e(__('Max upload size')); ?>">
</div>
</div>
</div>
<div class="form-group col-12 switch-width">
<?php echo e(Form::label('s3_storage_validation', __('Only Upload Files'), ['class' => ' col-form-label'])); ?>
<?php echo e(Form::select('s3_storage_validation[]', array_flip($file_type), isset($settings['s3_storage_validation']) ? explode(',', $settings['s3_storage_validation']) : null, ['id' => 's3_storage_validation', 'class' => ' choices', 'multiple' => ''])); ?>
</div>
</div>
<div
class="wasabi-setting row <?php echo e(isset($settings['storage_setting']) && $settings['storage_setting'] == 'wasabi' ? ' ' : 'd-none'); ?>">
<h4 class="small-title mb-3"><?php echo e(__('Wasabi Settings')); ?></h4>
<div class=" row ">
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_key"><?php echo e(__('Wasabi Key')); ?></label>
<input type="text" name="wasabi_key" class="form-control"
value="<?php echo e(isset($settings['wasabi_key']) ? $settings['wasabi_key'] : null); ?>"
placeholder="<?php echo e(__('Wasabi Key')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_secret"><?php echo e(__('Wasabi Secret')); ?></label>
<input type="text" name="wasabi_secret" class="form-control"
value="<?php echo e(isset($settings['wasabi_secret']) ? $settings['wasabi_secret'] : null); ?>"
placeholder="<?php echo e(__('Wasabi Secret')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="s3_region"><?php echo e(__('Wasabi Region')); ?></label>
<input type="text" name="wasabi_region" class="form-control"
value="<?php echo e(isset($settings['wasabi_region']) ? $settings['wasabi_region'] : null); ?>"
placeholder="<?php echo e(__('Wasabi Region')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="wasabi_bucket"><?php echo e(__('Wasabi Bucket')); ?></label>
<input type="text" name="wasabi_bucket" class="form-control"
value="<?php echo e(isset($settings['wasabi_bucket']) ? $settings['wasabi_bucket'] : null); ?>"
placeholder="<?php echo e(__('Wasabi Bucket')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="wasabi_url"><?php echo e(__('Wasabi URL')); ?></label>
<input type="text" name="wasabi_url" class="form-control"
value="<?php echo e(isset($settings['wasabi_url']) ? $settings['wasabi_url'] : null); ?>"
placeholder="<?php echo e(__('Wasabi URL')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-label" for="wasabi_root"><?php echo e(__('Wasabi Root')); ?></label>
<input type="text" name="wasabi_root" class="form-control"
value="<?php echo e(isset($settings['wasabi_root']) ? $settings['wasabi_root'] : null); ?>"
placeholder="<?php echo e(__('Wasabi Sub Folder')); ?>">
<small
class="text-danger"><?php echo e(__('If a folder has been created under the bucket then enter the folder name otherwise blank')); ?>
</small>
</div>
</div>
<div class="col-lg-4">
<div class="form-group">
<label class="form-label" for="wasabi_root"><?php echo e(__('Max upload size ( In KB)')); ?></label>
<input type="number" name="wasabi_max_upload_size" class="form-control"
value="<?php echo e(isset($settings['wasabi_max_upload_size']) ? $settings['wasabi_max_upload_size'] : 2024); ?>"
placeholder="<?php echo e(__('Max upload size')); ?>">
</div>
</div>
<div class="form-group col-12 switch-width">
<?php echo e(Form::label('wasabi_storage_validation', __('Only Upload Files'), ['class' => ' col-form-label'])); ?>
<?php echo e(Form::select('wasabi_storage_validation[]', array_flip($file_type), isset($settings['wasabi_storage_validation']) ? explode(',', $settings['wasabi_storage_validation']) : null, ['id' => 'wasabi_storage_validation', 'class' => ' choices', 'multiple' => ''])); ?>
</div>
</div>
</div>
</div>
<div class="card-footer text-end">
<input class="btn btn-print-invoice btn-primary m-r-10" type="submit" value="<?php echo e(__('Save Changes')); ?>">
</div>
<?php echo e(Form::close()); ?>
</div>
<div id="seo-sidenav" class="card">
<div class="card-header">
<div class="row">
<div class="col-lg-10 col-md-10 col-sm-10">
<h5><?php echo e(__('SEO Settings')); ?></h5>
</div>
</div>
</div>
<?php echo e(Form::open(['url' => route('seo.setting.save'), 'method' => 'post', 'enctype' => 'multipart/form-data'])); ?>
<?php echo csrf_field(); ?>
<div class="card-body">
<div class="row">
<div class="col-md-7">
<div class="form-group">
<?php echo e(Form::label('meta_title', __('Meta Title'), ['class' => 'col-form-label'])); ?>
<?php echo e(Form::text('meta_title', !empty($settings['meta_title']) ? $settings['meta_title'] : null, ['class' => 'form-control ', 'required' => 'required', 'placeholder' => 'Meta Title'])); ?>
</div>
<div class="form-group">
<?php echo e(Form::label('meta_keywords', __('Meta Keywords'), ['class' => 'col-form-label'])); ?>
<?php echo e(Form::textarea('meta_keywords', !empty($settings['meta_keywords']) ? $settings['meta_keywords'] : null, ['class' => 'form-control ', 'required' => 'required', 'placeholder' => 'Meta Keywords', 'rows' => 2])); ?>
</div>
<div class="form-group">
<?php echo e(Form::label('meta_description', __('Meta Description'), ['class' => 'col-form-label'])); ?>
<?php echo e(Form::textarea('meta_description', !empty($settings['meta_description']) ? $settings['meta_description'] : null, ['class' => 'form-control ', 'required' => 'required', 'placeholder' => 'Meta Description', 'rows' => 3])); ?>
</div>
</div>
<div class="col-md-5">
<div class="form-group mb-0">
<?php echo e(Form::label('Meta Image', __('Meta Image'), ['class' => 'col-form-label'])); ?>
</div>
<div class="setting-card">
<div class="logo-content">
<img id="image2"
src="<?php echo e(get_file(!empty($settings['meta_image']) ? (check_file($settings['meta_image']) ? $settings['meta_image'] : 'uploads/meta/meta_image.png') : 'uploads/meta/meta_image.png')); ?><?php echo e('?' . time()); ?>"
class="img_setting seo_image">
</div>
<div class="choose-files mt-4">
<label for="meta_image">
<div class="bg-primary company_favicon_update"> <i
class="ti ti-upload px-1"></i><?php echo e(__('Choose file here')); ?>
</div>
<input type="file" class="form-control file"
accept="image/png, image/gif, image/jpeg,image/jpg" id="meta_image"
name="meta_image"
onchange="document.getElementById('image2').src = window.URL.createObjectURL(this.files[0])"
data-filename="meta_image">
</label>
</div>
<?php $__errorArgs = ['meta_image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<div class="row">
<span class="invalid-logo" role="alert">
<strong class="text-danger"><?php echo e($message); ?></strong>
</span>
</div>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
</div>
</div>
<div class="card-footer text-end">
<input class="btn btn-print-invoice btn-primary m-r-10" type="submit" value="<?php echo e(__('Save Changes')); ?>">
</div>
<?php echo e(Form::close()); ?>
</div>
<div class="card" id="cache-sidenav">
<div class="card-header">
<h5><?php echo e('Cache Settings'); ?></h5>
<small class="text-secondary font-weight-bold">
<?php echo e(__("This is a page meant for more advanced users, simply ignore it if you don't understand what cache is.")); ?>
</small>
</div>
<form method="GET" action="<?php echo e(route('config.cache')); ?>" accept-charset="UTF-8">
<div class="card-body">
<div class="row">
<div class="col-12 form-group">
<?php echo e(Form::label('Current cache size', __('Current cache size'), ['class' => 'col-form-label'])); ?>
<div class="input-group">
<input type="text" class="form-control" value="<?php echo e(CacheSize()); ?>" readonly>
<div class="input-group-append">
<span class="input-group-text"><?php echo e(__('MB')); ?></span>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer text-end">
<input class="btn btn-print-invoice btn-primary m-r-10" type="submit"
value="<?php echo e(__('Cache Clear')); ?>">
</div>
<?php echo e(Form::close()); ?>
</div>
<div class="card" id="custom-js-sidenav">
<div class="card-header">
<h5><?php echo e('Custom Js'); ?></h5>
<small class="text-secondary font-weight-bold">
</small>
</div>
<?php echo e(Form::open(['url' => route('super.admin.custom.js.save'), 'method' => 'post', 'enctype' => 'multipart/form-data'])); ?>
<div class="card-body">
<div class="row">
<div class="col-12 form-group">
<div class="input-group">
<?php echo e(Form::textarea('custom_js', !empty($settings['custom_js']) ? $settings['custom_js'] : null, ['class' => 'form-control ', 'required' => 'required', 'placeholder' => '<script>console.log(hello);</script>', 'rows' => 4])); ?>
</div>
</div>
</div>
</div>
<div class="card-footer text-end">
<input class="btn btn-print-invoice btn-primary m-r-10" type="submit" value="<?php echo e(__('Save Changes')); ?>">
</div>
<?php echo e(Form::close()); ?>
</div>
<div class="card" id="custom-css-sidenav">
<div class="card-header">
<h5><?php echo e('Custom CSS'); ?></h5>
<small class="text-secondary font-weight-bold">
</small>
</div>
<?php echo e(Form::open(['url' => route('super.admin.custom.css.save'), 'method' => 'post', 'enctype' => 'multipart/form-data'])); ?>
<div class="card-body">
<div class="row">
<div class="col-12 form-group">
<div class="input-group">
<?php echo e(Form::textarea('custom_css', !empty($settings['custom_css']) ? $settings['custom_css'] : null, ['class' => 'form-control ', 'required' => 'required', 'placeholder' => '<style>.body{color:aliceblue;}</style>', 'rows' => 4])); ?>
</div>
</div>
</div>
</div>
<div class="card-footer text-end">
<input class="btn btn-print-invoice btn-primary m-r-10" type="submit" value="<?php echo e(__('Save Changes')); ?>">
</div>
<?php echo e(Form::close()); ?>
</div>
<?php if(isset($settings['enable_cookie']) && $settings['enable_cookie'] != 'on'): ?>
<script>
$(document).ready(function() {
$('.cookie_setting').attr("disabled", "disabled");
});
</script>
<?php endif; ?>
<script>
$(document).on('click', '#enable_cookie', function() {
if ($('#enable_cookie').prop('checked')) {
$(".cookie_setting").removeAttr("disabled");
} else {
$('.cookie_setting').attr("disabled", "disabled");
}
});
</script>
<script>
$(document).ready(function() {
choices();
});
$(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');
}
});
$('.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>
<?php /**PATH /var/www/account.appointkrypt.com/resources/views/super-admin/settings/index.blade.php ENDPATH**/ ?>