Server IP : 66.29.132.124 / Your IP : 3.145.81.47 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?> <div class="container-fluid"> <div class="dashboard-page"> <h4 class="welcome-title text-uppercase"><?php echo e(__('Welcome :name!',['name'=>Auth::user()->nameOrEmail])); ?></h4> </div> <br> <div class="row"> <?php if(!empty($top_cards)): ?> <?php $__currentLoopData = $top_cards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $card): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-sm-<?php echo e($card['size']); ?> col-md-<?php echo e($card['size_md']); ?>"> <div class="dashboard-report-card card <?php echo e($card['class']); ?>"> <div class="card-content"> <span class="card-title"><?php echo e($card['title']); ?></span> <span class="card-amount"><?php echo e($card['amount']); ?></span> <span class="card-desc"><?php echo e($card['desc']); ?></span> </div> <div class="card-media"> <i class="<?php echo e($card['icon']); ?>"></i> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <div class="row"> <div class="col-md-12 col-lg-6 mb-3"> <div class="panel"> <div class="panel-title d-flex justify-content-between align-items-center"> <strong><?php echo e(__('Earning statistics')); ?></strong> <div id="reportrange" style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc;"> <i class="fa fa-calendar"></i> <span></span> <i class="fa fa-caret-down"></i> </div> </div> <div class="panel-body"> <canvas id="earning_chart"></canvas> <script> var earning_chart_data = <?php echo json_encode($earning_chart_data); ?>; </script> </div> </div> </div> <div class="col-md-12 col-lg-6 "> <div class="panel"> <div class="panel-title d-flex justify-content-between"> <strong><?php echo e(__('Recent Bookings')); ?></strong> <a href="<?php echo e(route('report.admin.booking')); ?>" class="btn-link"><?php echo e(__("More")); ?> <i class="icon ion-ios-arrow-forward"></i></a> </div> <div class="panel-body"> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th width="60px">#</th> <th><?php echo e(__('Item')); ?></th> <th width="100px"><?php echo e(__("Total")); ?></th> <th width="100px"><?php echo e(__("Paid")); ?></th> <th width="100px"><?php echo e(__("Status")); ?></th> <th width="100px"><?php echo e(__("Created At")); ?></th> </tr> </thead> <tbody> <?php if(count($recent_bookings) > 0): ?> <?php $__currentLoopData = $recent_bookings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $booking): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td>#<?php echo e($booking->id); ?></td> <td> <?php if(get_bookable_service_by_id($booking->object_model) and $service = $booking->service): ?> <a href="<?php echo e($service->getDetailUrl()); ?>" target="_blank"><?php echo e($service->title); ?></a> <?php else: ?> <?php echo e(__("[Deleted]")); ?> <?php endif; ?> </td> <td><?php echo e(format_money_main($booking->total)); ?></td> <td><?php echo e(format_money_main($booking->paid)); ?></td> <td> <span class="badge badge-<?php echo e($booking->status_class); ?>"><?php echo e($booking->status_name); ?></span> </td> <td><?php echo e(display_datetime($booking->created_at)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr> <td colspan="5"><?php echo e(__("No data")); ?></td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> <br> <div class="row"> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('script.body'); ?> <script src="<?php echo e(url('libs/chart_js/Chart.min.js')); ?>"></script> <script src="<?php echo e(url('libs/daterange/moment.min.js')); ?>"></script> <script src="<?php echo e(url('libs/daterange/daterangepicker.min.js?_ver='.config('app.asset_version'))); ?>"></script> <link rel="stylesheet" href="<?php echo e(url('libs/daterange/daterangepicker.css')); ?>"/> <script> var ctx = document.getElementById('earning_chart').getContext('2d'); window.myMixedChart = new Chart(ctx, { type: 'bar', data: earning_chart_data, options: { responsive: true, tooltips: { mode: 'index', intersect: true }, scales: { xAxes: [{ stacked: true, display: true, scaleLabel: { display: true, labelString: '<?php echo e(__("Timeline")); ?>' } }], yAxes: [{ stacked: true, display: true, scaleLabel: { display: true, labelString: '<?php echo e(__("Currency: :currency_main",['currency_main'=>setting_item('currency_main')])); ?>' }, ticks: { beginAtZero: true, } }] }, tooltips: { callbacks: { label: function (tooltipItem, data) { var label = data.datasets[tooltipItem.datasetIndex].label || ''; if (label) { label += ': '; } label += tooltipItem.yLabel + " (<?php echo e(setting_item('currency_main')); ?>)"; return label; } } } } }); var start = moment().startOf('week'); var end = moment(); function cb(start, end) { $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); } $('#reportrange').daterangepicker({ startDate: start, endDate: end, "alwaysShowCalendars": true, "opens": "left", "showDropdowns": true, ranges: { '<?php echo e(__("Today")); ?>': [moment(), moment()], '<?php echo e(__("Yesterday")); ?>': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], '<?php echo e(__("Last 7 Days")); ?>': [moment().subtract(6, 'days'), moment()], '<?php echo e(__("Last 30 Days")); ?>': [moment().subtract(29, 'days'), moment()], '<?php echo e(__("This Month")); ?>': [moment().startOf('month'), moment().endOf('month')], '<?php echo e(__("Last Month")); ?>': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')], '<?php echo e(__("This Year")); ?>': [moment().startOf('year'), moment().endOf('year')], '<?php echo e(__('This Week')); ?>': [moment().startOf('week'), end] } }, cb).on('apply.daterangepicker', function (ev, picker) { // Reload Earning JS $.ajax({ url: '<?php echo e(route('report.admin.statistic.reloadChart')); ?>', data: { chart: 'earning', from: picker.startDate.format('YYYY-MM-DD'), to: picker.endDate.format('YYYY-MM-DD'), }, dataType: 'json', type: 'post', success: function (res) { if (res.status) { window.myMixedChart.data = res.data; window.myMixedChart.update(); } } }) }); cb(start, end); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/book24/public_html/modules/Dashboard/Views/index.blade.php ENDPATH**/ ?>