Viewing file: 23fea1aa34e6d1d7f614040931d7fd9a6f5938b5.php (17.21 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('page_title', __('Preferences')); ?>
<?php $__env->startSection('css'); ?>
<!-- daterange picker -->
<link rel="stylesheet" href="<?php echo e(asset('public/dist/plugins/bootstrap-daterangepicker/daterangepicker.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('public/datta-able/plugins/bootstrap-tagsinput-latest/css/bootstrap-tagsinput.min.css')); ?>">
<!-- Custom CSS -->
<link rel="stylesheet" href="<?php echo e(asset('public/dist/css/custom.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<!-- Main content -->
<div class="col-sm-12" id="preference-settings-container">
<div class="card">
<div class="card-body row">
<div class="col-lg-3 col-12 z-index-10 <?php echo e(languageDirection() == 'ltr' ? 'ps-md-3 pe-0 ps-0' : 'pe-md-3 ps-0 pe-0'); ?>">
<?php echo $__env->make('admin.layouts.includes.general_settings_menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<div class="col-lg-9 col-12 <?php echo e(languageDirection() == 'ltr' ? 'ps-0' : 'pe-0'); ?>">
<div class="card card-info shadow-none mb-0">
<div class="card-header p-t-20 border-bottom">
<h5><?php echo e(__('Preferences')); ?></h5>
</div>
<div class="card-block table-border-style">
<form action="<?php echo e(route('preferences.index')); ?>" method="post" class="form-horizontal" id="preference_form">
<?php echo csrf_field(); ?>
<div class="card-body p-0">
<div class="form-group row">
<label class="col-sm-3 control-label text-left" for="inputEmail3"><?php echo e(__('Rows per page')); ?></label>
<div class="col-sm-6">
<select name="row_per_page" class="form-control select2-hide-search" >
<option value="10" <?php echo e(preference('row_per_page') == 10 ? 'selected' : ""); ?>>10</option>
<option value="25" <?php echo e(preference('row_per_page') == 25 ? 'selected' : ""); ?>>25</option>
<option value="50" <?php echo e(preference('row_per_page') == 50 ? 'selected' : ""); ?>>50</option>
<option value="100"<?php echo e(preference('row_per_page') == 100 ? 'selected' : ""); ?>>100</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label text-left"
for="inputEmail3"><?php echo e(__('Date format')); ?></label>
<div class="col-sm-6">
<select name="date_format" class="form-control select2-hide-search">
<option value="0"
<?php echo e(preference('date_format') == 0 ? 'selected' : ''); ?>>yyyymmdd {2020 12
31}</option>
<option value="1"
<?php echo e(preference('date_format') == 1 ? 'selected' : ''); ?>>ddmmyyyy {31 12
2020}</option>
<option value="2"
<?php echo e(preference('date_format') == 2 ? 'selected' : ''); ?>>mmddyyyy {12 31
2020}</option>
<option value="3"
<?php echo e(preference('date_format') == 3 ? 'selected' : ''); ?>>ddMyyyy {31 Dec
2020}</option>
<option value="4"
<?php echo e(preference('date_format') == 4 ? 'selected' : ''); ?>>yyyyMdd {2020 Dec
31}</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label text-left"
for="inputEmail3"><?php echo e(__('Date Separator')); ?></label>
<div class="col-sm-6">
<select name="date_sepa" class="form-control select2-hide-search">
<option value="-"
<?php echo e(preference('date_sepa') == '-' ? 'selected' : ''); ?>>-</option>
<option value="/"
<?php echo e(preference('date_sepa') == '/' ? 'selected' : ''); ?>>/</option>
<option value="."
<?php echo e(preference('date_sepa') == '.' ? 'selected' : ''); ?>>.</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label text-left"
for="decimal_digits"><?php echo e(__('Decimal Format')); ?>(.)</label>
<div class="col-sm-6">
<select name="decimal_digits" class="form-control select2-hide-search">
<option value="0"
<?php echo e(preference('dicimal_digits') == 0 ? 'selected' : ''); ?>>
<?php echo e(__('No Decimal')); ?></option>
<?php for($i = 1; $i <= 8; $i++): ?>
<option value=<?php echo e($i); ?>
<?php echo e(preference('decimal_digits') == $i ? 'selected' : ''); ?>>
<?php echo e($i); ?></option>
<?php endfor; ?>
</select>
</div>
</div>
<div class="form-group row">
<label for="hide_decimal"
class="col-sm-3 control-label"><?php echo e(__('Omit Zeros')); ?></label>
<div class="col-9 d-flex">
<div class="mr-3">
<div class="switch switch-bg d-inline m-r-10">
<input type="checkbox" name="hide_decimal" class="checkActivity"
id="hide_decimal" value="1"
<?php echo e(preference('hide_decimal') == 1 ? 'checked' : ''); ?>>
<label for="hide_decimal" class="cr"></label>
</div>
</div>
<div class="mt-12">
<span><?php echo e(__('If decimal value is zero.')); ?> Ex: 10.000 => 10</span>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label text-left"
for="thousand_separator"><?php echo e(__('Thousand Separator')); ?></label>
<div class="col-sm-6">
<select name="thousand_separator" class="form-control select2-hide-search">
<option value=","
<?php echo e(preference('thousand_separator') == ',' ? 'selected' : ''); ?>> ,
</option>
<option value="."
<?php echo e(preference('thousand_separator') == '.' ? 'selected' : ''); ?>> .
</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label text-left"
for="symbol_position"><?php echo e(__('Currency Symbol Position')); ?></label>
<div class="col-sm-6">
<select name="symbol_position" class="form-control select2-hide-search">
<option value="before"
<?php echo e(preference('symbol_position') == 'before' ? 'selected' : ''); ?>>
<?php echo e(__('Before')); ?></option>
<option value="after"
<?php echo e(preference('symbol_position') == 'after' ? 'selected' : ''); ?>>
<?php echo e(__('After')); ?></option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label text-left require"
for="file_size"><?php echo e(__('Max FileSize')); ?></label>
<div class="col-sm-6 flex-wrap">
<div class="input-group">
<div class="input-group-prepend">
<span
class="input-group-text rounded-0 <?php echo e(languageDirection() == 'ltr' ? 'rounded-start' : 'rounded-end'); ?>"><?php echo e(__('MB')); ?></span>
</div>
<input class="form-control" type="number" name="file_size" id="file_size"
min="0" max="20"
value="<?php echo e(isset($prefData['preference']['file_size']) ? $prefData['preference']['file_size'] : ''); ?>"
required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')"
data-min="<?php echo e(__('The value must be :x than or equal to :y', ['x' => __('greater'), 'y' => 0])); ?>"
data-max="<?php echo e(__('The value must be :x than or equal to :y', ['x' => __('less'), 'y' => 20])); ?>">
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label text-left"
for="inputEmail3"><?php echo e(__('Timezone')); ?></label>
<?php
$timezones = timeZoneList();
?>
<div class="col-sm-6">
<select class="form-control select" name="default_timezone">
<?php $__currentLoopData = $timezones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $timezone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($timezone['zone']); ?>"
<?php echo e(preference('default_timezone') == $timezone['zone'] ? 'selected' : ''); ?>>
<?php echo e($timezone['diff_from_GMT'] . ' - ' . $timezone['zone']); ?>
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<br>
<br>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label text-left" for="inputEmail3"><?php echo e(__('Allowed File Extensions')); ?></label>
<div class="col-sm-6">
<div id="extension_notification">
</div>
<div class="col" id="extension_loading">
<div class="placeholder wave h-18p">
<input type="text" value="" data-role="tagsinput" class="square">
</div>
</div>
<div class="tagsinput">
<input type="text" name="file_ext" value="" data-role="tagsinput" id="tags-input">
<div id="extension_action_div">
<div class="py-1" id="note_txt_1">
<div class="d-flex mt-1 mb-3">
<span class="badge badge-danger h-100 mt-1"><?php echo e(__('Note')); ?>!</span>
<ul class="list-unstyled ml-3">
<li><?php echo e(__('Please avoid :x on the extension name.', ['x' => 'dot(.)'])); ?> </li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer p-0">
<div class="form-group row">
<label for="btn_save" class="col-sm-3 control-label"></label>
<div class="col-sm-12">
<button type="submit" class="btn form-submit custom-btn-submit <?php echo e(languageDirection() == 'ltr' ? 'float-right' : 'float-left'); ?>" id="footer-btn">
<?php echo e(__('Save')); ?>
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script src="<?php echo e(asset('public/dist/js/custom/preference.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/dist/js/custom/validation.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/datta-able/plugins/bootstrap-tagsinput-latest/js/bootstrap-tagsinput.min.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/ecom1.picotech.app/public_html/resources/views/admin/preference/index.blade.php ENDPATH**/ ?>
|