%PDF- %PDF-
Direktori : /home/silvzytp/dsr_code/storage/framework/views/ |
Current File : /home/silvzytp/dsr_code/storage/framework/views/e6edd6f74bd4fbb9a52efbf66dffd038b8ff9c25.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startPush('styles'); ?> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" /> <style> @media only screen and (max-width: 768px){ tr.row-column td{ width: 50% !important; margin-right: 0 !important; } } @media only screen and (max-width: 768px){ tr.row-column td{ width: 100% !important; margin-right: 0 !important; } } tr.row-column td{ width: 32%; margin-right: 2%; display: inline-block } tr.row-column td:nth-child(3), tr.row-column td:nth-child(6), tr.row-column td:nth-child(9){ margin-right: 0; } table td:first-child { padding-left: 0; } table td:last-child { padding-right: 0; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="ibox"> <div class="ibox-body"> <form action="<?php echo e(route('super.dashboard.filter')); ?>" method="GET"> <div class="row align-items-center"> <div class="col-md-8"> <div class="row align-items-center"> <div class="col-6"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['divClass' => 'mb-0','name' => 'manager','error' => 'manager','labelName' => 'Manager']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.selectbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['divClass' => 'mb-0','name' => 'manager','error' => 'manager','labelName' => 'Manager']); ?> <option value="">-- Select Manager --</option> <?php $__empty_1 = true; $__currentLoopData = $managers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $manager): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($manager->id); ?>"><?php echo e($manager->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <div class="col-6"> <div class="form-group mb-0"> <label for="">Date</label> <input type="text" class="form-control" required id="date_range" placeholder="MM/DD/YY" autocomplete="off" autofocus> <input type="hidden" name="start_date"> <input type="hidden" name="end_date"> </div> </div> </div> </div> <div class="col-md-4"> <div class="text-right"> <button class="btn btn-primary rounded-0 ml-2" type="submit">Apply</button> <button class="btn btn-success rounded-0 ml-2 printarea" type="button"><i class="fa fa-print"></i> Print</button> </div> </div> </div> </form> </div> </div> <div class="print-area-content"> <style> @media screen { .no_screen {display: none;} .no_print {display: block;} thead {display: table-header-group;} tfoot {display: table-footer-group;} button {display: none;} body {margin: 0;} } @media print { body, html { -webkit-print-color-adjust: exact !important; font-family: sans-serif; margin-bottom: 100px !important; } table{ width: 100%; } tr.row-column td{ width: 32%; margin-right: 2% !important; display: inline-block } tr.row-column td:nth-child(3), tr.row-column td:nth-child(6), tr.row-column td:nth-child(9){ margin-right: 0 !important; } table td:first-child { padding-left: 0 !important; } table td:last-child { padding-right: 0 !important; } } @page { /* size: auto; */ margin: 5mm 5mm; } </style> <table class="w-100"> <tr class="row-column"> <td> <div class="print-column"> <div class="ibox bg-success color-white widget-stat"> <div class="ibox-body"> <h2 class="m-b-5 font-strong"><?php echo e($target ?? 0); ?></h2> <div class="m-b-5">TOTAL REVENUE TARGETS</div> <i class="fa fa-bar-chart widget-stat-icon"></i> </div> </div> </div> </td> <td> <div class="print-column"> <div class="ibox bg-primary color-white widget-stat"> <div class="ibox-body"> <h2 class="m-b-5 font-strong"><?php echo e($revenueAchievment ?? 0); ?></h2> <div class="m-b-5">REVENUE ACHIEVED</div> <i class="fa fa-bar-chart widget-stat-icon"></i> </div> </div> </div> </td> <td> <div class="print-column"> <div class="ibox bg-info color-white widget-stat"> <div class="ibox-body"> <h2 class="m-b-5 font-strong"><?php echo e($revenueDeficit ?? 0); ?></h2> <div class="m-b-5">REVENUE DEFICIT</div> <i class="fa fa-bar-chart widget-stat-icon"></i> </div> </div> </div> </td> <td> <div class="print-column"> <div class="ibox bg-warning color-white widget-stat"> <div class="ibox-body"> <h2 class="m-b-5 font-strong"><?php echo e($sale_target ?? 0); ?></h2> <div class="m-b-5">SALES TARGET</div> <i class="fa fa-bar-chart widget-stat-icon"></i> </div> </div> </div> </td> <td> <div class="print-column"> <div class="ibox bg-danger color-white widget-stat"> <div class="ibox-body"> <h2 class="m-b-5 font-strong"><?php echo e($saleAchieved ?? 0); ?></h2> <div class="m-b-5">SALES ACHIEVED</div> <i class="fa fa-bar-chart widget-stat-icon"></i> </div> </div> </div> </td> <td> <div class="print-column"> <div class="ibox bg-success color-white widget-stat"> <div class="ibox-body"> <h2 class="m-b-5 font-strong"><?php echo e($saleDeficit ?? 0); ?></h2> <div class="m-b-5">SALES DEFICIT</div> <i class="fa fa-bar-chart widget-stat-icon"></i> </div> </div> </div> </td> <td> <div class="print-column"> <div class="ibox bg-dark color-white widget-stat"> <div class="ibox-body"> <h2 class="m-b-5 font-strong"><?php echo e($agents ?? 0); ?></h2> <div class="m-b-5">TOTAL AGENTS</div> <i class="fa fa-users widget-stat-icon"></i> </div> </div> </div> </td> </tr> </table> </div> <div class="row"> <div class="col-md-12"> <div class="ibox"> <div class="ibox-head"> <h4 class="ibox-title mb-0"><?php echo e(date('F Y')); ?> - Monthly Report</h4> </div> <div class="ibox-body"> <div id="bar"></div> </div> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="ibox"> <div class="ibox-head"> <div class="ibox-title"><i class="fa fa-history" aria-hidden="true"></i> Login Activities</div> <div class="ibox-tools"> <a class="btn-link text-primary" href="<?php echo e(route('super.activities.index')); ?>" <?php echo tooltip('Activity Logs'); ?>>See More <i class="fa fa-info-circle" aria-hidden="true"></i></a> </div> </div> <div class="ibox-body"> <ul class="item-list padding mb-0 pl-0 list-unstyled"> <?php $__currentLoopData = $activityLogin; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="<?php echo e($loop->last ? '' : 'mb-2'); ?>"> <i class="fa fa-square text-info" aria-hidden="true"></i> <span> <a href="#" class="d-inline-block"><?php echo e($log->user->name); ?></a> <span class="d-inline-block"> logged in </span> <span class="d-inline-block"> to the system </span> . </span> <span class="small italic d-inline-block"><?php echo e(Carbon\Carbon::parse($log->date_time)->diffForHumans()); ?> </span> <span class="d-inline-block">(<a href="https://whatismyipaddress.com/ip/<?php echo e($log->ip_address); ?>" target="_blank" rel="nofollow"><?php echo e($log->ip_address); ?></a>)</span> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> </div> </div> <div class="col-lg-6"> <div class="ibox"> <div class="ibox-head"> <div class="ibox-title"><i class="fa fa-history" aria-hidden="true"></i> Logout Activities</div> <div class="ibox-tools"> <a class="btn-link text-primary" href="<?php echo e(route('super.activities.index')); ?>" <?php echo tooltip('Activity Logs'); ?>>See More <i class="fa fa-info-circle" aria-hidden="true"></i></a> </div> </div> <div class="ibox-body"> <ul class="item-list padding mb-0 pl-0 list-unstyled"> <?php $__currentLoopData = $activityLogout; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="<?php echo e($loop->last ? '' : 'mb-2'); ?>"> <i class="fa fa-square text-info" aria-hidden="true"></i> <span> <a href="#" class="d-inline-block"><?php echo e($log->user->name); ?></a> <span class="d-inline-block"> logout in </span> <span class="d-inline-block"> to the system </span> . </span> <span class="small italic d-inline-block"><?php echo e(Carbon\Carbon::parse($log->date_time)->diffForHumans()); ?> </span> <span class="d-inline-block">(<a href="https://whatismyipaddress.com/ip/<?php echo e($log->ip_address); ?>" target="_blank" rel="nofollow"><?php echo e($log->ip_address); ?></a>)</span> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script> <script src="<?php echo e(asset('assets/js/jquery.printarea.js')); ?>"></script> <script> /* user chart */ var optionsBar = { chart: { height: 310, type: 'bar', toolbar: { show: false, }, fontFamily: 'Nunito, sans-serif', }, colors: ["#036fe7", '#f7a556'], plotOptions: { bar: { dataLabels: { enabled: false }, columnWidth: '40%', endingShape: 'rounded', } }, dataLabels: { enabled: false }, stroke: { show: true, width: 2, endingShape: 'rounded', colors: ['transparent'], }, responsive: [{ breakpoint: 576, options: { stroke: { show: true, width: 1, endingShape: 'rounded', colors: ['transparent'], }, }, }], series: [{name: 'Net Profit'}], noData: { text: '<img src="<?php echo e(asset("uploads/images/table-loading.svg")); ?>" />' }, xaxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov','Dec'], }, fill: { opacity: 1 }, legend: { show: false, floating: true, position: 'top', horizontalAlign: 'left', }, tooltip: { y: { formatter: function (val) { return val } } } } var userChartBar = new ApexCharts( document.querySelector('#bar'), optionsBar ); userChartBar.render(); // user chart bar request $.ajax({ url: "<?php echo e(route('super.dashboard.chart-bar')); ?>", type: 'POST', data: {_token:_token}, dataType: 'json', async: true, cache: false, success: function (data) { userChartBar.updateSeries([{ name: 'Monthly Data', data: data.monthly_data }, { name: 'Monthly Commitment', data: data.monthly_commit }]); } }); // date range init $('input#date_range').daterangepicker({ opens: 'right', autoUpdateInput: false, locale: { cancelLabel: 'Clear' }, ranges: { 'Today' : [moment(), moment()], 'Last 7 Days' : [moment().subtract(6, 'days'), moment()], 'Last 30 Days': [moment().subtract(29, 'days'), moment()], 'This Month' : [moment().startOf('month'), moment().endOf('month')], 'Last Month' : [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')], } }, function(start, end, label) { $('input[name="start_date"]').val(start.format('YYYY-MM-DD')); $('input[name="end_date"]').val(end.format('YYYY-MM-DD')); }); $('input#date_range').on('apply.daterangepicker', function(ev, picker) { $(this).val(picker.startDate.format('YYYY-MM-DD') + ' - ' + picker.endDate.format('YYYY-MM-DD')); }); $('input#date_range').on('cancel.daterangepicker', function(ev, picker) { $(this).val(''); }); // print area $(document).on('click','button.printarea',function(){ var mode = 'iframe'; //popup var close = mode = 'popup'; var options = { mode : mode, popClose: close } $('.print-area-content').printArea(options); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/dsr_code/resources/views/backend/super-admin/dashboard/dashboard.blade.php ENDPATH**/ ?>