Viewing file: ee331196e88f79cc6b3004c92af6154f.php (14.14 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(trans('customer.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(auth('customer')->user()->type=='customer'): ?> <?php if(!$sms_send): ?> <div class="row"> <div class="card custom-card"> <h4 class="pb-1 quick_start_header"><?php echo e(trans('customer.quick_start')); ?></h4> <div class="dis-div"> <div class="<?php echo e($add_device?'text-cross':''); ?> quick_start_topic"> <a class="quick_start_ph" href="<?php echo e(route('customer.device.index',['type'=>'add'])); ?>"><i class="fas fa-hand-point-right pr-2"></i><?php echo e(trans('customer.connect_your_phone_with_from_section')); ?> <?php echo e(get_settings('app_name')); ?> <?php echo e(trans('customer.from')); ?>
"<?php echo e(trans('customer.add_device')); ?>" <?php echo e(trans('customer.section')); ?></a> </div> <div class="<?php echo e($sending_settings?'text-cross':''); ?> quick_start_topic"> <a class="quick_start_ph" href="<?php echo e(route('customer.settings.index',['type'=>'sending_settings'])); ?>"><i class="fas fa-hand-point-right pr-2"></i><?php echo e(trans('customer.configure_sending_settings_message')); ?>
</a> </div> <div class="quick_start_topic"> <a class="quick_start_ph" href="<?php echo e(route('customer.smsbox.compose')); ?>"><i class="fas fa-hand-point-right pr-2"></i><?php echo e(trans('customer.start_composing_message')); ?>
</a> </div> </div> </div> </div> <?php endif; ?> <?php endif; ?> <div class="row">
<div class="col-lg-3 col-6"> <!-- small box --> <div class="small-box color-five"> <div class="inner"> <h3><?php echo e($sentQueued); ?></h3>
<p><?php echo e(trans('customer.sms_queue')); ?></p> </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 color-four"> <div class="inner"> <h3><?php echo e($sentPending); ?></h3>
<p><?php echo e(trans('customer.sms_sent')); ?></p> </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 color-one"> <div class="inner"> <h3><?php echo e($smsDeliveredCount); ?></h3>
<p><?php echo e(trans('customer.sms_seen')); ?></p> </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 color-two"> <div class="inner"> <h3><?php echo e($inboxCount); ?></h3>
<p><?php echo e(trans('customer.sms_received')); ?></p> </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 color-three"> <div class="inner"> <h3><?php echo e($sentFail); ?></h3>
<p><?php echo e(trans('customer.failed_to_send')); ?></p> </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 color-six"> <div class="inner"> <h3><?php echo e($device_added); ?></h3>
<p><?php echo e(trans('customer.device_added')); ?></p> </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 color-seven"> <div class="inner"> <h3><?php echo e($total_contact); ?></h3>
<p><?php echo e(trans('customer.total_contact')); ?></p> </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 color-eight"> <div class="inner"> <h3><?php echo e($total_group); ?></h3>
<p><?php echo e(trans('customer.total_group')); ?></p> </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-info"> <div class="card-header border-0"> <h3 class="card-title xs-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 btn-sm collapse-btn" data-card-widget="collapse"> <i class="fas fa-minus"></i> </button> <button type="button" class="btn btn-sm collapse-btn" 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-green"> <div class="card-header border-0"> <h3 class="card-title xs-title"> <i class="fas fa-th mr-1"></i> <?php echo e(trans('customer.response')); ?>
</h3>
<div class="card-tools"> <button type="button" class="btn btn-sm collapse-btn" data-card-widget="collapse"> <i class="fas fa-minus"></i> </button> <button type="button" class="btn btn-sm collapse-btn" 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: 'black', pointRadius: 3, pointHoverRadius: 7, pointColor: 'black', pointBackgroundColor: 'black', data: <?php echo json_encode($chart_inbox, 15, 512) ?> } ] }
var salesGraphChartOptions = { maintainAspectRatio: false, responsive: true, legend: { display: false, }, scales: { xAxes: [{ ticks: { fontColor: 'black', }, gridLines: { display: false, color: 'black', drawBorder: false, } }], yAxes: [{ ticks: { stepSize: 5000, fontColor: 'black', }, gridLines: { display: true, color: 'black', 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: 'black', pointRadius: 3, pointHoverRadius: 7, pointColor: 'black', pointBackgroundColor: 'black', data: <?php echo json_encode($weeklyResponseArray, 15, 512) ?> } ] }
var weeklyResponseGraphChartOptions = { maintainAspectRatio: false, responsive: true, legend: { display: false, }, scales: { xAxes: [{ ticks: { fontColor: 'black', }, gridLines: { display: false, color: 'black', drawBorder: false, } }], yAxes: [{ ticks: { stepSize: 5000, fontColor: 'black', }, gridLines: { display: true, color: 'black', 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/picotech/domains/sender.picotech.app/public_html/resources/views/customer/dashboard.blade.php ENDPATH**/ ?>
|