|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /home/elvh3918/public_html/pmm/storage/framework/views/ |
<?php $__env->startSection('title', $breadcrumbs[count($breadcrumbs) - 1]['name']); ?>
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('components/breadcrumb', ['breadcrumbs' => $breadcrumbs], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('content/guest/partials/scan-barcode', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('components/qrcode-scan', ['width' => '0'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('components/modal-qrcode-scan', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('content/guest/partials/card', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('content/guest/partials/graph', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('content/guest/partials/donut', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<?php echo $__env->yieldContent('content-scan-barcode'); ?>
<?php echo $__env->yieldContent('content-guest-card'); ?>
<div class="row">
<div class="col-lg-6">
<?php echo $__env->yieldContent('content-guest-graph'); ?>
</div>
<div class="col-lg-6">
<?php echo $__env->yieldContent('content-guest-donut'); ?>
</div>
</div>
</div><!--/. container-fluid -->
</section>
<!-- /.content -->
<?php echo $__env->yieldContent('modal-qrcode'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-style'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-script'); ?>
<script src="<?php echo e(asset('assets/plugins/chart.js/Chart.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/external/format-number.js')); ?>"></script>
<script src="<?php echo e(asset('assets/external/format-decimal.js')); ?>"></script>
<?php echo $__env->yieldContent('page-script-qrcode'); ?>
<?php echo $__env->yieldContent('page-script-modal-qrcode'); ?>
<?php echo $__env->yieldContent('page-script-scan-barcode'); ?>
<?php echo $__env->yieldContent('page-script-guest-card'); ?>
<?php echo $__env->yieldContent('page-script-guest-graph'); ?>
<?php echo $__env->yieldContent('page-script-guest-donut'); ?>
<script>
showCard(<?php echo json_encode($query_customer->id); ?>);
showGraph(<?php echo json_encode($query_customer->id); ?>);
showDonut(<?php echo json_encode($query_customer->id); ?>);
function catch_result(decodedText = null, decodedResult = null) {
document.getElementById("code").value = decodedText;
closeModalQRCode();
searchBarcode();
}
function pressEnter(e) {
if (e.keyCode === 13) { // where 13 is the enter button
e.preventDefault(); //ignore submit
searchBarcode();
}
}
function searchBarcode() {
var code = document.getElementById("code").value;
if (code == "") {
alert("Please scan or enter the barcode/QRCode first.");
return;
}
var customer_id = <?php echo json_encode($query_customer->id); ?>;
$.ajax({
dataType: 'json',
type: "GET",
url: '<?php echo e(env('APP_URL')); ?>' + "/api/dashboard/scan-barcode/" + code + "/0/" + customer_id,
success: function(res) {
if (res.data == null) {
alert('data not found');
return;
}
var date_from = moment(new Date(res.min_date_trans)).format('YYYY-MM-DD');
var date_to = moment(new Date(res.max_date_trans)).format('YYYY-MM-DD');
var url = "<?php echo e(route('guest.report', [':customer_id', 0, ':date_from', ':date_to', ':item_code'])); ?>";
url = url.replace(':customer_id', customer_id);
url = url.replace(':date_from', date_from);
url = url.replace(':date_to', date_to);
url = url.replace(':item_code', res.item_code);
location.href = url;
},
error: function(xhr, status, error) {
alert(error);
return;
}
});
}
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts/guest', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/elvh3918/public_html/pmm/resources/views/content/guest/dashboard.blade.php ENDPATH**/ ?>