Yohohohohohooho | Sanrei Aya
Sanrei Aya


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/elvh3918/public_html/pmm/storage/framework/views/f7de40b2634d844a4bfccf9908a9aae4.php
<?php $__env->startSection('content-guest-card'); ?>
    <div class="row">
        <div class="col-lg-3 col-6">
            <div class="small-box bg-info">
                <div class="inner">
                    <h3>hallo</h3>
                    <p><?php echo e($query_customer->name); ?></p>
                </div>
                <div class="icon">
                    <i class="fas fa-users"></i>
                </div>
                <a href="javascript:void(0);" class="small-box-footer" onclick='profile(<?php echo e($query_customer->id); ?>)'>More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
        </div>

        <div class="col-lg-3 col-6">
            <div class="small-box bg-success">
                <div class="inner">
                    <h3 id="box-year"><div class="spinner-border"></div></h3>
                    <p>This Year</p>
                </div>
                <div class="icon">
                    <i class="fas fa-calendar"></i>
                </div>
                <a href="javascript:void(0);" class="small-box-footer" onclick='report_maintenance(<?php echo e($query_customer->id); ?>, "year")'>More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
        </div>

        <div class="col-lg-3 col-6">
            <div class="small-box bg-warning">
                <div class="inner">
                    <h3 id="box-month"><div class="spinner-border"></div></h3>
                    <p>This Month</p>
                </div>
                <div class="icon">
                    <i class="fas fa-calendar-check"></i>
                </div>
                <a href="javascript:void(0);" class="small-box-footer" onclick='report_maintenance(<?php echo e($query_customer->id); ?>, "month")'>More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
        </div>

        <div class="col-lg-3 col-6">
            <div class="small-box bg-danger">
                <div class="inner">
                    <h3 id="box-today"><div class="spinner-border"></div></h3>
                    <p>Today</p>
                </div>
                <div class="icon">
                    <i class="fas fa-calendar-day"></i>
                </div>
                <a href="javascript:void(0);" class="small-box-footer" onclick='report_maintenance(<?php echo e($query_customer->id); ?>, "now")'>More info <i class="fas fa-arrow-circle-right"></i></a>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-script-guest-card'); ?>
    <script src="<?php echo e(asset('assets/plugins/moment/moment.min.js')); ?>"></script>

    <script>
        function showCard(customer_id) {
            $.ajax({
                dataType: 'json',
                type: "GET",
                url: '<?php echo e(env('APP_URL')); ?>' + "/api/dashboard/card-by-customer/" + customer_id,

                beforeSend: function() {
                    document.getElementById('box-year').innerHTML = '<div class="spinner-border"></div>';
                    document.getElementById('box-month').innerHTML = '<div class="spinner-border"></div>';
                    document.getElementById('box-today').innerHTML = '<div class="spinner-border"></div>';
                },
                complete: function() {

                },
                success: function(res) {
                    document.getElementById('box-year').innerHTML = res.year;
                    document.getElementById('box-month').innerHTML = res.month;
                    document.getElementById('box-today').innerHTML = res.today;
                },
                error: function(xhr, status, error) {
                    document.getElementById('box-year').innerHTML = error;
                    document.getElementById('box-month').innerHTML = error;
                    document.getElementById('box-today').innerHTML = error;

                    return;
                }
            });
        }

        function profile(customer_id) {
            window.location.href = '<?php echo e(env('APP_URL')); ?>' + "/guest/profile/" + customer_id;
        }

        function report_maintenance(customer_id, type) {
            var date_now = new Date(<?php echo json_encode(\Carbon\Carbon::now()); ?>);
            var date_to = moment(date_now).format('YYYY-MM-DD');

            if (type == "year") {
                var date_from = moment(new Date(date_now.getFullYear(), 0, 1)).format('YYYY-MM-DD');
            } else if (type == "month") {
                var date_from = moment(new Date(date_now.getFullYear(), date_now.getMonth(), 1)).format('YYYY-MM-DD');
            } else if (type == "now") {
                var date_from = moment(date_now).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', null);
            location.href = url;
        }
    </script>
<?php $__env->stopSection(); ?>
<?php /**PATH /home/elvh3918/public_html/pmm/resources/views/content/guest/partials/card.blade.php ENDPATH**/ ?>

Yohohohohohooho | Sanrei Aya