Viewing file: 48c391e4027ba1a9b5240fd976595658f0bac8f0.php (14.01 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Dashboard <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Content Header (Page header) --> <div class="content-header">
</div> <!-- /.content-header --> <!-- Main content --> <div class="content"> <div class="container-fluid"> <?php if(count($available_setting)>0): ?> <div class="row"> <div class="col-sm-12 "> <div id="settingsCard" class="d-flex flex-column order-manage p-3 align-items-center mb-4 card"> <div class="d-flex w-100"> <a id="showSettingList" href="javascript:void(0);" class="btn fs-22 py-1 btn-danger px-4 mr-3"><?php echo e(count($available_setting)); ?></a> <h4 class="mb-0 text-primary"><?php echo e(trans('Pending Configuration')); ?><i class="fa fa-circle text-danger ml-1 fs-13"></i></h4> <i class="ti-angle-right ml-1"></i></a> </div> <div class="w-100 p-4" id="setting_list"> <ul> <?php $__currentLoopData = $available_setting; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $st): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="incomplete-setting-list"> <a href="<?php echo e($st['url']); ?>" class="text-primary"><?php echo e($st['title']); ?></a> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul> </div> </div>
</div> </div> <?php endif; ?>
<div class="row"> <!-- ./col --> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-white"> <div class="inner"> <h4><?php echo e($sentCount); ?></h4>
<h6><?php echo e(trans('customer.daily_sms_sent')); ?></h6> </div> <div class="icon"> <i class="ion ion-stats-bars"></i> </div> </div> </div> <!-- ./col --> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-white"> <div class="inner"> <h4><?php echo e($inboxCount); ?></h4>
<h6><?php echo e(trans('customer.daily_sms_received')); ?></h6> </div> <div class="icon"> <i class="ion ion-person-add"></i> </div> </div> </div> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-white"> <div class="inner"> <h4><?php echo e(isset($dailyResponseRate)?formatNumber($dailyResponseRate):formatNumber('0')); ?>%</h4>
<h6><?php echo e(trans('customer.daily_response_rate')); ?></h6> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> </div> </div> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-white"> <div class="inner"> <h4><?php echo e(isset($deliveryRate)?$deliveryRate:formatNumber('0')); ?>%</h4>
<h6><?php echo e(trans('customer.daily_delivery_rate')); ?></h6> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> </div> </div>
<div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-white"> <div class="inner"> <h4><?php echo e(isset($totalSsentCount)?formatNumber($totalSsentCount):formatNumber('0')); ?>%</h4>
<h6><?php echo e(trans('customer.total_sms_sent')); ?></h6> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> </div> </div> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-white"> <div class="inner"> <h4><?php echo e(isset($totalInboxCount)?formatNumber($totalInboxCount):formatNumber('0')); ?></h4>
<h6><?php echo e(trans('customer.total_received_sms')); ?></h6> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> </div> </div> <!-- ./col --> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-white"> <div class="inner"> <h4><?php echo e(isset($responseRate)?formatNumber($responseRate):formatNumber('0')); ?></h4>
<h6><?php echo e(trans('customer.total_response_rate')); ?></h6> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> </div> </div> <!-- ./col --> <div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box bg-white"> <div class="inner"> <h4><?php echo e(isset($totalDeliveryRate)?$totalDeliveryRate:formatNumber('0')); ?>%</h4>
<h6><?php echo e(trans('customer.total_delivery_rate')); ?></h6> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> </div> </div> </div>
<div class="row"> <div class="col-sm-6"> <div class="card bg-gradient-white"> <div class="card-header border-0"> <h3 class="card-title"> <i class="fas fa-th mr-1"></i> <?php echo e(trans('customer.inbox')); ?>
</h3>
<div class="card-tools"> <button type="button" class="btn bg-primary btn-sm" data-card-widget="collapse"> <i class="fas fa-minus"></i> </button> <button type="button" class="btn bg-primary btn-sm" data-card-widget="remove"> <i class="fas fa-times"></i> </button> </div> </div> <div class="card-body"> <canvas class="chart customer-dashboard-canvas" id="line-chart"></canvas> </div> <!-- /.card-body -->
<!-- /.card-footer --> </div> <!-- /.card --> </div> <div class="col-sm-6"> <div class="card bg-gradient-white"> <div class="card-header border-0"> <h3 class="card-title"> <i class="fas fa-th mr-1"></i> <?php echo e(trans('customer.weekly_response')); ?>
</h3>
<div class="card-tools"> <button type="button" class="btn bg-primary btn-sm" data-card-widget="collapse"> <i class="fas fa-minus"></i> </button> <button type="button" class="btn bg-primary btn-sm" data-card-widget="remove"> <i class="fas fa-times"></i> </button> </div> </div> <div class="card-body"> <canvas class="chart customer-dashboard-canvas" id="weekly-response-chart"></canvas> </div> <!-- /.card-body -->
<!-- /.card-footer --> </div> <!-- /.card --> </div> </div> <!-- /.row --> </div><!-- /.container-fluid --> </div> <!-- /.content --> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="<?php echo e(asset('plugins/chart.js/Chart.min.js')); ?>"></script> <script> "use strict"; // Sales graph chart var salesGraphChartCanvas = $('#line-chart').get(0).getContext('2d'); var weeklyResponseGraphChartCanvas = $('#weekly-response-chart').get(0).getContext('2d'); //$('#revenue-chart').get(0).getContext('2d');
var salesGraphChartData = { labels: <?php echo json_encode($weekDates, 15, 512) ?>, datasets: [ { label: 'SMS', fill: false, borderWidth: 2, lineTension: 0, spanGaps: true, borderColor: '#efefef', pointRadius: 3, pointHoverRadius: 7, pointColor: '#efefef', pointBackgroundColor: '#efefef', data: <?php echo json_encode($chart_inbox, 15, 512) ?> } ] }
var salesGraphChartOptions = { maintainAspectRatio: false, responsive: true, legend: { display: false, }, scales: { xAxes: [{ ticks: { fontColor: '#03a878', }, gridLines: { display: false, color: '#03a878', drawBorder: false, } }], yAxes: [{ ticks: { stepSize: 5000, fontColor: '#03a878', }, gridLines: { display: true, color: '#03a878', drawBorder: false, } }] } }
// This will get the first returned node in the jQuery collection. var salesGraphChart = new Chart(salesGraphChartCanvas, { type: 'line', data: salesGraphChartData, options: salesGraphChartOptions } );
// For Expense var weeklyResponseGraphChartData = { labels: <?php echo json_encode($weekDates, 15, 512) ?>, datasets: [ { label: 'Response Ratio', fill: false, borderWidth: 2, lineTension: 0, spanGaps: true, borderColor: '#efefef', pointRadius: 3, pointHoverRadius: 7, pointColor: '#efefef', pointBackgroundColor: '#efefef', data: <?php echo json_encode($weeklyResponseArray, 15, 512) ?> } ] }
var weeklyResponseGraphChartOptions = { maintainAspectRatio: false, responsive: true, legend: { display: false, }, scales: { xAxes: [{ ticks: { fontColor: '#03a878', }, gridLines: { display: false, color: '#03a878', drawBorder: false, } }], yAxes: [{ ticks: { stepSize: 5000, fontColor: '#03a878', }, gridLines: { display: true, color: '#03a878', drawBorder: false, } }] } }
// This will get the first returned node in the jQuery collection. var weeklyResponseGraphChart = new Chart(weeklyResponseGraphChartCanvas, { type: 'line', data: weeklyResponseGraphChartData, options: weeklyResponseGraphChartOptions } ); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pcolfjqt/picotext.picotech.app/resources/views/customer/dashboard.blade.php ENDPATH**/ ?>
|