Viewing file: a15f60af488ed3a2e6b89e6ae30d3df0dab197a1.php (21.56 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('page_title', __('Company Settings')); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('Modules/MediaManager/Resources/assets/css/media-manager.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('public/dist/css/product.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Main content -->
<div class="col-sm-12" id="company-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(__('System Setup')); ?></h5>
<div class="card-header-right">
</div>
</div>
<form action="<?php echo e(route('companyDetails.setting')); ?>" method="post" id="settingForm"
class="form-horizontal" enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<div class="card-body">
<div class="form-group row p-t-10">
<label class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('Name')); ?>
</label>
<div class="col-sm-7">
<input type="text" class="form-control form-height" name="company_name"
id="company_name"
value="<?php echo e(isset($companyData['company']['company_name']) ? $companyData['company']['company_name'] : ''); ?>"
required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
</div>
</div>
<div class="form-group row">
<label id='siteshortlabel' class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('Site Short Name')); ?>
</label>
<div class="col-sm-7">
<input type="text" name="site_short_name" readonly="readyonly"
value="<?php echo e(isset($companyData['company']['site_short_name']) ? $companyData['company']['site_short_name'] : ''); ?>"
id="site_short_name" class="form-control form-height" required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
</div>
</div>
<div class="form-group row marginTop">
<label class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('Email')); ?>
</label>
<div class="col-sm-7">
<input type="email" class="form-control form-height" name="company_email"
id="company_email"
value="<?php echo e(isset($companyData['company']['company_email']) ? $companyData['company']['company_email'] : ''); ?>"
required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')"
data-type-mismatch="<?php echo e(__('Enter a valid :x.', ['x' => strtolower(__('Email'))])); ?>">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('Phone')); ?>
</label>
<div class="col-sm-7">
<input type="text" class="form-control phone-number form-height"
name="company_phone" id="company_phone"
value="<?php echo e(isset($companyData['company']['company_phone']) ? $companyData['company']['company_phone'] : ''); ?>"
required minlength="8"
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')"
data-min-length="<?php echo e(__(':x should contain at least :y digits.', ['x' => __('Phone Number'), 'y' => 8])); ?>">
</div>
</div>
<div class="form-group row">
<div class="col-sm-3">
<label class="d-inline control-label require" for="inputEmail3">
<?php echo e(__('Tax Id')); ?>
</label>
</div>
<div class="col-sm-7">
<input type="text"
value="<?php echo e(isset($companyData['company']['company_gstin']) ? $companyData['company']['company_gstin'] : ''); ?>"
class="form-control form-height" name="company_tax_id" required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('Street')); ?>
</label>
<div class="col-sm-7">
<input type="text" class="form-control form-height" name="company_street"
id="company_street"
value="<?php echo e(isset($companyData['company']['company_street']) ? $companyData['company']['company_street'] : ''); ?>"
required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('Country')); ?>
</label>
<div class="col-sm-7">
<select
class="form-control js-example-basic-single form-height addressSelect sl_common_bx"
name="company_country" id="company_country" required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
<option value=""><?php echo e(__('Select Country')); ?></option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('State')); ?>
</label>
<div class="col-sm-7">
<select
class="form-control js-example-basic-single form-height addressSelect sl_common_bx"
name="company_state" id="company_state" required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
<option value=""><?php echo e(__('Select State')); ?></option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('City')); ?>
</label>
<div class="col-sm-7">
<select
class="form-control js-example-basic-single form-height addressSelect sl_common_bx"
name="company_city" id="company_city" required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
<option value=""><?php echo e(__('Select City')); ?></option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label require" for="inputEmail3">
<?php echo e(__('Zip code')); ?>
</label>
<div class="col-sm-7">
<input type="text" class="form-control form-height" name="company_zip_code"
id="company_zip_code"
value="<?php echo e(isset($companyData['company']['company_zip_code']) ? $companyData['company']['company_zip_code'] : ''); ?>"
required
oninvalid="this.setCustomValidity('<?php echo e(__('This field is required.')); ?>')">
</div>
</div>
<div class="form-group row">
<label id="default-language" class="col-sm-3 control-label "
for="inputEmail3"><?php echo e(__('Default language')); ?></label>
<div class="col-sm-7">
<select name="dflt_lang" id="dflt_lang"
class="form-control js-example-basic-single form-height">
<?php $__currentLoopData = $languageData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option data-rel="<?php echo e($language->id); ?>"
value="<?php echo e($language->short_name); ?>"
<?php echo e($companyData['company']['dflt_lang'] == $language->short_name ? 'selected' : ''); ?>>
<?php echo e($language->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
<div class="form-group row">
<label id="default-currency" class="col-sm-3 control-label require"
for="inputEmail3"><?php echo e(__('Default currency')); ?></label>
<div class="col-sm-7">
<select class="form-control select-currency select2 sl_common_bx form-height"
id="dflt_currency_id" name="dflt_currency_id">
</select>
</div>
</div>
<div class="form-group row preview-parent" id="logo">
<label class="col-sm-3 control-label " for="inputEmail3"><?php echo e(__('Logo')); ?></label>
<div class="col-sm-7">
<div class="custom-file media-manager-img" data-val="single"
data-returntype="ids" id="image-status"
data-type="<?php echo e(implode(',', getFileExtensions(3))); ?>">
<input type="hidden"
class="custom-file-input is-image form-control form-height"
name="company_logo_id">
<label
class="custom-file-label overflow_hidden position-relative d-flex align-items-center"
for="validatedCustomFile"><?php echo e(__('Upload image')); ?></label>
</div>
<div class="preview-image">
<!-- img will be shown here -->
<div class="d-flex flex-wrap mt-2">
<div class="position-relative border boder-1 p-1 mr-2 rounded mt-2">
<img width="80" class="p-1 neg-transition-scale" src="<?php echo e($companyData['logo']); ?>">
</div>
</div>
</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 <?php echo e(languageDirection() == 'ltr' ? 'ms-3' : 'me-3'); ?>">
<li><?php echo e(__('Allowed File Extensions: :y and Maximum File Size :x', ['x' => preference('file_size') . 'MB.', 'y' => implode(',', getFileExtensions(3))])); ?>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="form-group row preview-parent" id="iconTop">
<label class="col-sm-3 control-label " for="inputEmail3"><?php echo e(__('Favicon')); ?></label>
<div class="col-sm-7">
<div class="custom-file media-manager-img" data-val="single"
data-returntype="ids" id="image-status"
data-type="<?php echo e(implode(',', getFileExtensions(4))); ?>">
<input type="hidden"
class="custom-file-input is-image form-control form-height">
<label
class="custom-file-label overflow_hidden position-relative d-flex align-items-center"
for="validatedCustomFile"><?php echo e(__('Upload image')); ?></label>
</div>
<div class="preview-image" id="company_favicon">
<!-- img will be shown here -->
<div class="d-flex flex-wrap mt-2">
<div class="position-relative border boder-1 p-1 mr-2 rounded mt-2">
<img width="80" class="old-img neg-transition-scale" class="p-1"
src="<?php echo e($companyData['icon']); ?>" alt="<?php echo e(__('Image')); ?>">
</div>
</div>
</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 <?php echo e(languageDirection() == 'ltr' ? 'ms-3' : 'me-3'); ?>">
<li><?php echo e(__('Allowed File Extensions: :y and Maximum File Size :x', ['x' => preference('file_size') . 'MB.', 'y' => implode(',', getFileExtensions(4))])); ?>
</li>
</ul>
</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>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php echo $__env->make('mediamanager::image.modal_image', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script>
'use strict';
let imageSize = '<?php echo e(preference('file_size')); ?>';
let currencyId = '<?php echo e(preference('dflt_currency_id')); ?>';
let currencyName = '<?php echo e(currency()->name); ?>';
let oldCountry = "<?php echo isset($companyData['company']['company_country']) ? $companyData['company']['company_country'] : 'null'; ?>";
let oldState = "<?php echo isset($companyData['company']['company_state']) ? $companyData['company']['company_state'] : 'null'; ?>";
let oldCity = "<?php echo isset($companyData['company']['company_city']) ? $companyData['company']['company_city'] : 'null'; ?>";
let url = "<?php echo e(URL::to('/')); ?>";
</script>
<script src="<?php echo e(asset('public/dist/js/custom/validation.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/dist/js/custom/settings.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/company_settings/index.blade.php ENDPATH**/ ?>
|