Viewing file: 8f40882eca29cc315e0f186b85dec8570790809f.php (19.02 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE html> <?php $siteDirection=get_settings('local_setting') && json_decode(get_settings('local_setting')) && isset(json_decode(get_settings('local_setting'))->direction)?json_decode(get_settings('local_setting'))->direction:'ltr'; ?> <?php $themeData=get_settings('theme_customize')?json_decode(get_settings('theme_customize')):''; ?> <html lang="en" dir="<?php echo e($siteDirection); ?>"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title><?php echo $__env->yieldContent('title'); ?></title>
<!-- Font Awesome Icons --> <link rel="stylesheet" href="<?php echo e(asset('plugins/fontawesome-free/css/all.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/toastr/toastr.min.css')); ?>"> <!-- Theme style --> <link rel="stylesheet" href="<?php echo e(asset('css/adminlte.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('css/custom.css')); ?>"> <link rel="shortcut icon" href="<?php echo e(asset('uploads/'.get_settings('app_favicon'))); ?>" type="image/x-icon">
<!-- Google Font: Source Sans Pro --> <link href="<?php echo e(asset('css/google.font.css')); ?>" rel="stylesheet"> <link href="<?php echo e(asset('plugins/select2/css/select2.min.css')); ?>" rel="stylesheet" /> <style> .select2-container .select2-selection--single{ height: 37px !important; } .balance-text{ font-size: 1rem; color: black; } .balance-text span{ color: black; font-weight: 800; } .balance-div{ display: flex; margin-right: 30px; border: grey solid 1px; padding: 10px 10px 0 10px; border-radius: 5px; } .select2-container--default{ width: 100% !important; } .dark-mode { background-color: #454d55 !important; color: #fff; } html[theme='dark-mode'] { filter: invert(1) hue-rotate(180deg); }
<?php if(isset($themeData->navbar_color)): ?> .main-header { background: <?php echo e($themeData->navbar_color); ?>; } <?php endif; ?> <?php if(isset($themeData->left_sidebar)): ?> .main-sidebar { background: <?php echo e($themeData->left_sidebar); ?>; }
<?php endif; ?> <?php if(isset($themeData->active_sidebar)): ?> .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active, .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active { background-color: <?php echo e($themeData->active_sidebar); ?>; } <?php endif; ?> </style> <?php if(Module::has('PaymentGateway')): ?> <link rel="stylesheet" href="<?php echo e(Module::asset('paymentgateway:css/paymentgateway.css')); ?>"> <?php endif; ?> <?php echo $__env->yieldContent('extra-css'); ?> </head> <body class="hold-transition sidebar-mini"> <div class="wrapper">
<!-- Navbar --> <nav class="main-header navbar navbar-expand navbar-white navbar-light"> <!-- Left navbar links --> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a> </li> </ul>
<!-- Right navbar links --> <ul class="navbar-nav ml-auto"> <div class="balance-div"> <li class="nav-item"> <div class="balance-text"> Available Balance : <span><?php echo e(formatNumberWithCurrSymbol(topUpAmount())); ?></span> </div> </li> <?php if(Module::has('PaymentGateway') && Module::find('PaymentGateway')->isEnabled()): ?> <li class="nav-item ml-3"> <button id="topUp" type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#topUpModal"> Top Up </button> </li> <?php endif; ?> </div> <li class="nav-item dropdown user-menu"> <a href="<?php echo e(route('customer.settings.index')); ?>" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-expanded="true"> <img src="<?php echo e(asset('uploads/'.auth('customer')->user()->profile_picture)); ?>" class="user-image img-circle elevation-2" alt="img"> </a> <ul class="dropdown-menu dropdown-menu-lg dropdown-menu-right dropdown-profile"> <!-- User image --> <li class="user-header bg-primary"> <img src="<?php echo e(asset('uploads/'.auth('customer')->user()->profile_picture)); ?>" class="img-circle elevation-2" alt="<?php echo e(auth('customer')->user()->full_name); ?>">
<p> <?php echo e(auth('customer')->user()->full_name); ?>
<small>Member since <?php echo e(date('M. Y')); ?></small> </p> </li> <!-- Menu Footer--> <li class="user-footer"> <a href="<?php echo e(route('customer.settings.index')); ?>" class="btn btn-default btn-flat"><?php echo e(trans('customer.profile')); ?></a>
<a href="<?php echo e(route('customer.logout')); ?>" class="btn btn-default btn-flat float-right" ><?php echo e(trans('customer.sign_out')); ?></a> </li> </ul> </li> </ul> </nav> <!-- /.navbar -->
<!-- Main Sidebar Container --> <aside class="main-sidebar sidebar-dark-primary elevation-4"> <!-- Brand Logo --> <a href="<?php echo e(route('customer.dashboard')); ?>" class="brand-link"> <?php if(get_settings('app_logo')): ?> <img class="layout-logo" src="<?php echo e(asset('uploads/'.get_settings('app_logo'))); ?>" alt=""> <?php endif; ?> <span class="brand-text font-weight-light"><?php echo e(get_settings('app_name')); ?></span> </a>
<!-- Sidebar --> <div class="sidebar"> <!-- Sidebar user panel (optional) --> <div class="user-panel mt-3 pb-3 mb-3 d-flex"> <div class="image"> <img src="<?php echo e(asset('uploads/'.auth('customer')->user()->profile_picture)); ?>" class="customer-profile img-circle elevation-2" alt="User Image"> </div> <div class="info"> <a href="<?php echo e(route('customer.settings.index')); ?>" class="d-block"><?php echo e(auth('customer')->user()->full_name); ?></a> </div> </div>
<!-- Sidebar Menu --> <nav class="mt-2"> <?php echo $__env->make('layouts.includes.customer_sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </nav> <!-- /.sidebar-menu --> </div> <!-- /.sidebar --> </aside>
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <?php echo $__env->yieldContent('content'); ?> </div> <!-- /.content-wrapper -->
<!-- /.control-sidebar -->
<!-- Main Footer --> <footer class="main-footer"> <!-- To the right --> <div class="float-right"> <strong><?php echo e(trans('customer.copyright')); ?> © <?php echo e(date('Y')); ?> <a target="_blank" href="#"><?php echo e(get_settings('app_name')); ?></a>.</strong> <?php echo e(trans('customer.all_rights_reserved')); ?>
. </div>
</footer> </div> <!-- ./wrapper -->
<!-- Confirmation modal --> <div class="modal fade" id="modal-confirm"> <div class="modal-dialog"> <form id="modal-form"> <?php echo csrf_field(); ?> <div id="customInput"></div> <div class="modal-content"> <div class="modal-header p-2"> <h4 class="modal-title"><?php echo e(trans('customer.confirmation')); ?></h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body">
</div> <div class="modal-footer p-2"> <button id="modal-confirm-btn" type="submit" class="btn btn-primary btn-sm"><?php echo e(trans('customer.confirm')); ?></button> <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal"><?php echo e(trans('customer.cancel')); ?></button> </div> </div> <!-- /.modal-content --> </form> </div> <!-- /.modal-dialog --> </div> <!-- /.modal --> <?php if(Module::has('PaymentGateway') && Module::find('PaymentGateway')->isEnabled()): ?> <div class="modal fade" id="topUpModal" tabindex="-1" role="dialog" aria-labelledby="topUpModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="categoryModalLongTitle"><?php echo app('translator')->get('customer.deposit_amount'); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form method="post" role="form" action="<?php echo e(route('paymentgateway::process')); ?>"> <?php echo csrf_field(); ?> <div class="card-body"> <div class="form-group"> <label for="amount-home"><?php echo app('translator')->get('admin.amount'); ?></label> <input value="" type="number" name="amount" class="form-control" id="amount-home" placeholder="<?php echo app('translator')->get('admin.enter_amount'); ?>"> <small class="text-danger d-none" id="minimal_payment-home"><?php echo app('translator')->get('customer.minimal_payment'); ?></small> <small class="text-danger d-none" id="maximal_payment-home"><?php echo app('translator')->get('customer.maximal_payment'); ?></small> </div> <div class="form-group"> <p><?php echo app('translator')->get('customer.note'); ?></p> <ul> <li><?php echo app('translator')->get('customer.minimal_payment'); ?><?php echo e(formatNumberWithCurrSymbol(10)); ?></li> <li><?php echo app('translator')->get('customer.maximal_payment'); ?><?php echo e(formatNumberWithCurrSymbol(100000000)); ?></li> <li><?php echo app('translator')->get('customer.clicking'); ?> <span class="text-danger"><?php echo app('translator')->get('customer.return_to_shop'); ?></span> <?php echo app('translator')->get('customer.after_payment_successfully_completed'); ?></li> </ul> <div class="form-check"> <input class="form-check-input" type="checkbox" value="yes" name="confirm" id="depositsCheck-home"> <label class="form-check-label" for="depositsCheck-home"> <?php echo app('translator')->get('customer.fund_confirmation'); ?> </label> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo app('translator')->get('admin.form.button.close'); ?></button> <button type="submit" class="btn btn-primary" id="checkout-home"><?php echo app('translator')->get('customer.checkout'); ?></button> </div> </form> </div> </div> </div> </div> <?php endif; ?> <!-- REQUIRED SCRIPTS --> <script> "use strict"; </script> <!-- jQuery --> <script src="<?php echo e(asset('plugins/jquery/jquery.min.js')); ?>"></script> <!-- Bootstrap 4 --> <script src="<?php echo e(asset('plugins/bootstrap/js/bootstrap.bundle.min.js')); ?>"></script> <!-- AdminLTE App --> <script src="<?php echo e(asset('js/adminlte.min.js')); ?>"></script> <script src="<?php echo e(asset('js/readmore.min.js')); ?>"></script> <script src="<?php echo e(asset('js/custom.js')); ?>"></script> <script src="<?php echo e(asset('plugins/select2/js/select2.full.js')); ?>"></script> <script> jQuery('button[type="submit"]').on('click', function (e) { var form = $(this).parents('form:first'); if (form) { $(this).attr('disabled', 'disabled').addClass('disabled') $(this).html(' <i class="fa fa-spinner fa-spin"></i> Loading'); form.submit(); } }); jQuery('#modal-confirm-btn').on('click', function (e) { var form = $(this).parents('form:first'); if (form.valid()) { $(this).attr('disabled', 'disabled').addClass('disabled') $(this).html(' <i class="fa fa-spinner fa-spin"></i> Loading'); form.submit(); } });
$('#depositsCheck-home').click(function(){ const amount = $('#amount-home').val(); if ($("#depositsCheck-home").is(":checked") && amount <= 100000000 && 10 <= amount) { $("#checkout-home").attr("disabled", false); }else { $("#checkout-home").attr("disabled", true); } }); $('#checkout-home').attr("disabled", true); $("#amount-home").on("keyup change", function(e) { const amount = $('#amount-home').val(); if( 10 > amount){ $('#minimal_payment-home').removeClass('d-none'); $('#maximal_payment-home').addClass('d-none'); }else if (amount > 100000000){ $('#maximal_payment-home').removeClass('d-none'); $('#minimal_payment-home').addClass('d-none'); }else { $('#maximal_payment-home').addClass('d-none'); $('#minimal_payment-home').addClass('d-none'); } }); </script> <?php if(session()->has('success') || session()->has('fail') || count($errors)>0): ?> <?php if (isset($component)) { $__componentOriginald4c8f106e1e33ab85c5d037c2504e2574c1b0975 = $component; } ?> <?php $component = $__env->getContainer()->make(App\View\Components\Alert::class, ['type' => session()->get('success')?'success':'danger','isErrors' => $errors,'message' => session()->get('success')??session()->get('fail')]); ?> <?php $component->withName('alert'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginald4c8f106e1e33ab85c5d037c2504e2574c1b0975)): ?> <?php $component = $__componentOriginald4c8f106e1e33ab85c5d037c2504e2574c1b0975; ?> <?php unset($__componentOriginald4c8f106e1e33ab85c5d037c2504e2574c1b0975); ?> <?php endif; ?> <?php endif; ?> <?php if(isset($themeData->type)): ?> <script> const type ='<?php echo e($themeData->type); ?>'; if(type=='dark'){ $('html').attr('theme', 'dark-mode') }else{ $('html').attr('theme', 'light-mode') } </script> <?php endif; ?> <?php if(isset($themeData->collapse_sidebar) && $themeData->collapse_sidebar=='true'): ?> <script> $('.fa-bars').trigger('click'); </script> <?php endif; ?> <script> const currencySymbol = '<?php echo e((isset(json_decode(get_settings('local_setting'))->currency_symbol)?json_decode(get_settings('local_setting'))->currency_symbol:'$')); ?>'; Number.prototype.number_format = function (decimals, dec_point, thousands_sep) { let number = this.valueOf(); // Strip all characters but numerical ones. number = (number + '').replace(/[^0-9+\-Ee.]/g, ''); var n = !isFinite(+number) ? 0 : +number, prec = !isFinite(+decimals) ? 0 : Math.abs(decimals), sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep, dec = (typeof dec_point === 'undefined') ? '.' : dec_point, s = '', toFixedFix = function (n, prec) { var k = Math.pow(10, prec); return '' + Math.round(n * k) / k; }; // Fix for IE parseFloat(0.55).toFixed(0) = 0; s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.'); if (s[0].length > 3) { s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep); } if ((s[1] || '').length < prec) { s[1] = s[1] || ''; s[1] += new Array(prec - s[1].length + 1).join('0'); } return s.join(dec); }; Number.prototype.formatNumber = function () { const decimal_format = '<?php echo e(isset(json_decode(get_settings('local_setting'))->decimal_format)?json_decode(get_settings('local_setting'))->decimal_format:'.'); ?>'; const decimals = '<?php echo e(isset(json_decode(get_settings('local_setting'))->decimals)?json_decode(get_settings('local_setting'))->decimals:'2'); ?>'; const thousand_separator = '<?php echo e(isset(json_decode(get_settings('local_setting'))->thousand_separator)?json_decode(get_settings('local_setting'))->thousand_separator:','); ?>'; return this.valueOf().number_format(decimals, decimal_format, thousand_separator); }; Number.prototype.formatNumberWithCurrSymbol = function () { const symbol_position = '<?php echo e(isset(json_decode(get_settings('local_setting'))->currency_symbol_position)?json_decode(get_settings('local_setting'))->currency_symbol_position:'after'); ?>';
if (symbol_position == 'after') { return this.valueOf().formatNumber() + currencySymbol; } else if (symbol_position == 'before') { return currencySymbol + this.valueOf().formatNumber(); }
}; </script> <?php echo $__env->yieldContent('extra-scripts'); ?> </body> </html> <?php /**PATH /home/picotech/domains/smm.picotech.app/public_html/resources/views/layouts/customer.blade.php ENDPATH**/ ?>
|