⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
storage
/
framework
/
views
/
View File Name :
6313f29b697e18dd18efb203208fcda8.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Settings')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('breadcrumb'); ?> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?></a></li> <li class="breadcrumb-item"><?php echo e(__('Print-Settings')); ?></li> <?php $__env->stopSection(); ?> <?php $logo = \App\Models\Utility::get_file('uploads/logo'); $company_logo = Utility::getValByName('company_logo'); $company_favicon = Utility::getValByName('company_favicon'); $lang = Utility::getValByName('default_language'); ?> <?php $__env->startPush('script-page'); ?> <script> var scrollSpy = new bootstrap.ScrollSpy(document.body, { target: '#useradd-sidenav', offset: 300 }) </script> <script> <!--Purchase Setting --> $(document).on("change", "select[name='purchase_template'], input[name = 'purchase_color'] ", function () { var template = $("select[name='purchase_template']").val(); var color = $("input[name='purchase_color']:checked").val(); $('#purchase_frame').attr('src', '<?php echo e(url('/purchase/preview')); ?>/' + template + '/' + color); }); document.getElementById('purchase_logo').onchange = function () { var src = URL.createObjectURL(this.files[0]) document.getElementById('purchase_image').src = src } <!--POS Setting--> $(document).on("change", "select[name='pos_template'], input[name='pos_color']", function () { var template = $("select[name='pos_template']").val(); var color = $("input[name='pos_color']:checked").val(); $('#pos_frame').attr('src', '<?php echo e(url('/pos/preview')); ?>/' + template + '/' + color); }); document.getElementById('pos_logo').onchange = function () { var src = URL.createObjectURL(this.files[0]) document.getElementById('pos_image').src = src } </script> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="col-sm-12 mt-4"> <div class="card"> <div class="card-body"> <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="pills-purchase-tab" data-bs-toggle="pill" href="#pills-purchase" role="tab" aria-controls="pills-purchase" aria-selected="false"><?php echo e(__('Purchase Print Setting')); ?></a> </li> <li class="nav-item"> <a class="nav-link" id="pills-quotation-tab" data-bs-toggle="pill" href="#pills-quotation" role="tab" aria-controls="pills-pos" aria-selected="false"><?php echo e(__('Quotation Print Setting')); ?></a> </li> <li class="nav-item"> <a class="nav-link" id="pills-pos-tab" data-bs-toggle="pill" href="#pills-pos" role="tab" aria-controls="pills-pos" aria-selected="false"><?php echo e(__('POS Print Setting')); ?></a> </li> </ul> <div class="tab-content" id="pills-tabContent"> <!--Purchase Setting--> <div class="tab-pane fade show active" id="pills-purchase" role="tabpanel" aria-labelledby="pills-purchase-tab"> <div class="bg-none"> <div class="row company-setting"> <div class="col-md-3"> <div class="card-body"> <h5></h5> <form id="setting-form" method="post" action="<?php echo e(route('purchase.template.setting')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="address" class="form-label"><?php echo e(__('Purchase Template')); ?></label> <select class="form-control" name="purchase_template"> <?php $__currentLoopData = App\Models\Utility::templateData()['templates']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $template): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>" <?php echo e(isset($settings['purchase_template']) && $settings['purchase_template'] == $key ? 'selected' : ''); ?>> <?php echo e($template); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label class="col-form-label"><?php echo e(__('Color Input')); ?></label> <div class="row gutters-xs"> <?php $__currentLoopData = Utility::templateData()['colors']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-auto"> <label class="colorinput"> <input name="purchase_color" type="radio" value="<?php echo e($color); ?>" class="colorinput-input" <?php echo e(isset($settings['purchase_color']) && $settings['purchase_color'] == $color ? 'checked' : ''); ?>> <span class="colorinput-color" style="background: #<?php echo e($color); ?>"></span> </label> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div class="form-group"> <label class="col-form-label"><?php echo e(__('Purchase Logo')); ?></label> <div class="choose-files mt-2 "> <label for="purchase_logo"> <div class=" bg-primary purchase_logo_update"> <i class="ti ti-upload px-1"></i><?php echo e(__('Choose file here')); ?> </div> <input type="file" class="form-control file" name="purchase_logo" id="purchase_logo" data-filename="purchase_logo_update"> <img id="purchase_image" class="mt-2" style="width:25%;" /> </label> </div> </div> <div class="form-group mt-2 text-end"> <input type="submit" value="<?php echo e(__('Save')); ?>" class="btn btn-print-invoice btn-primary m-r-10"> </div> </form> </div> </div> <div class="col-md-9"> <?php if(isset($settings['purchase_template']) && isset($settings['purchase_color'])): ?> <iframe id="purchase_frame" class="w-100 h-100" frameborder="0" src="<?php echo e(route('purchase.preview', [$settings['purchase_template'], $settings['purchase_color']])); ?>"></iframe> <?php else: ?> <iframe id="purchase_frame" class="w-100 h-100" frameborder="0" src="<?php echo e(route('purchase.preview', ['template1', 'fffff'])); ?>"></iframe> <?php endif; ?> </div> </div> </div> </div> <!--Quotation Setting--> <div class="tab-pane fade" id="pills-quotation" role="tabpanel" aria-labelledby="pills-quotation-tab"> <div class="bg-none"> <div class="row company-setting"> <div class="col-md-3"> <div class="card-body"> <h5></h5> <form id="setting-form" method="post" action="<?php echo e(route('quotation.template.setting')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="address" class="form-label"><?php echo e(__('Quotation Template')); ?></label> <select class="form-control" name="quotation_template"> <?php $__currentLoopData = App\Models\Utility::templateData()['templates']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $template): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>" <?php echo e(isset($settings['quotation_template']) && $settings['quotation_template'] == $key ? 'selected' : ''); ?>> <?php echo e($template); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label class="col-form-label"><?php echo e(__('Color Input')); ?></label> <div class="row gutters-xs"> <?php $__currentLoopData = Utility::templateData()['colors']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-auto"> <label class="colorinput"> <input name="quotation_color" type="radio" value="<?php echo e($color); ?>" class="colorinput-input" <?php echo e(isset($settings['quotation_color']) && $settings['quotation_color'] == $color ? 'checked' : ''); ?>> <span class="colorinput-color" style="background: #<?php echo e($color); ?>"></span> </label> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div class="form-group"> <label class="col-form-label"><?php echo e(__('Quotation Logo')); ?></label> <div class="choose-files mt-2 "> <label for="quotation_logo"> <div class=" bg-primary quotation_logo_update"> <i class="ti ti-upload px-1"></i><?php echo e(__('Choose file here')); ?> </div> <input type="file" class="form-control file" name="quotation_logo" id="quotation_logo" data-filename="quotation_logo_update"> <img id="pos_image" class="mt-2" style="width:25%;" /> </label> </div> </div> <div class="form-group mt-2 text-end"> <input type="submit" value="<?php echo e(__('Save')); ?>" class="btn btn-print-invoice btn-primary m-r-10"> </div> </form> </div> </div> <div class="col-md-9"> <?php if(isset($settings['quotation_template']) && isset($settings['quotation_color'])): ?> <iframe id="quotation_frame" class="w-100 h-100" frameborder="0" src="<?php echo e(route('quotation.preview', [$settings['quotation_template'], $settings['quotation_color']])); ?>"></iframe> <?php else: ?> <iframe id="quotation_frame" class="w-100 h-100" frameborder="0" src="<?php echo e(route('quotation.preview', ['template1', 'fffff'])); ?>"></iframe> <?php endif; ?> </div> </div> </div> </div> <!--POS Setting--> <div class="tab-pane fade" id="pills-pos" role="tabpanel" aria-labelledby="pills-pos-tab"> <div class="bg-none"> <div class="row company-setting"> <div class="col-md-3"> <div class="card-body"> <h5></h5> <form id="setting-form" method="post" action="<?php echo e(route('pos.template.setting')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="address" class="form-label"><?php echo e(__('POS Template')); ?></label> <select class="form-control" name="pos_template"> <?php $__currentLoopData = App\Models\Utility::templateData()['templates']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $template): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>" <?php echo e(isset($settings['pos_template']) && $settings['pos_template'] == $key ? 'selected' : ''); ?>> <?php echo e($template); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label class="col-form-label"><?php echo e(__('Color Input')); ?></label> <div class="row gutters-xs"> <?php $__currentLoopData = Utility::templateData()['colors']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-auto"> <label class="colorinput"> <input name="pos_color" type="radio" value="<?php echo e($color); ?>" class="colorinput-input" <?php echo e(isset($settings['pos_color']) && $settings['pos_color'] == $color ? 'checked' : ''); ?>> <span class="colorinput-color" style="background: #<?php echo e($color); ?>"></span> </label> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div class="form-group"> <label class="col-form-label"><?php echo e(__('POS Logo')); ?></label> <div class="choose-files mt-2 "> <label for="pos_logo"> <div class=" bg-primary pos_logo_update"> <i class="ti ti-upload px-1"></i><?php echo e(__('Choose file here')); ?> </div> <input type="file" class="form-control file" name="pos_logo" id="pos_logo" data-filename="pos_logo_update"> <img id="pos_image" class="mt-2" style="width:25%;" /> </label> </div> </div> <div class="form-group mt-2 text-end"> <input type="submit" value="<?php echo e(__('Save')); ?>" class="btn btn-print-invoice btn-primary m-r-10"> </div> </form> </div> </div> <div class="col-md-9"> <?php if(isset($settings['pos_template']) && isset($settings['pos_color'])): ?> <iframe id="pos_frame" class="w-100 h-100" frameborder="0" src="<?php echo e(route('pos.preview', [$settings['pos_template'], $settings['pos_color']])); ?>"></iframe> <?php else: ?> <iframe id="pos_frame" class="w-100 h-100" frameborder="0" src="<?php echo e(route('pos.preview', ['template1', 'fffff'])); ?>"></iframe> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/resources/views/settings/pos.blade.php ENDPATH**/ ?>