Viewing file: fc7bf7e5bdc999d398ad0ad8cdbd230e.php (7.53 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Weight <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-css'); ?> <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')); ?>"> <style> img.customer-image { width: 100%; height: 100%; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row">
<div class="col-sm-12"> <div class="card"> <div class="card-header border-0"> <h3 class="card-title"> <i class="fas fa-th mr-1"></i> <?php echo app('translator')->get('Weight Analytics'); ?> </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 admin-dashboard-canvas" id="line-chart" ></canvas> </div> <!-- /.card-body -->
<!-- /.card-footer --> </div> <!-- /.card --> </div>
</div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo app('translator')->get('Weights'); ?></h2> <a class="btn btn-primary float-right" href="<?php echo e(route('customer.weight.create')); ?>"><?php echo app('translator')->get('admin.form.button.new'); ?></a> </div> <!-- /.card-header --> <div class="card-body table-body"> <table id="customers" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo app('translator')->get('Weight'); ?></th> <th><?php echo app('translator')->get('Image'); ?></th> <th><?php echo e(trans('Created At')); ?></th> <th><?php echo app('translator')->get('admin.table.action'); ?></th> </tr> </thead>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <div class="modal fade" id="customerImageModal" tabindex="-1" role="dialog" aria-labelledby="contactModalTitle" aria-hidden="true"> <div class="modal-dialog custom-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="contactModalTitle"><?php echo app('translator')->get('Image'); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="customer-img-sec"> <img src="" class="customer-image" alt="" id=""> </div> </div> </div> </div> </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="<?php echo e(asset('plugins/datatables/jquery.dataTables.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')); ?>"></script> <script src="<?php echo e(asset('js/readmore.min.js')); ?>"></script> <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 salesGraphChartData = { labels: <?php echo json_encode($weekDates, 15, 512) ?>, datasets: [ { label: 'Weight', fill: false, borderWidth: 2, lineTension: 0, spanGaps: true, borderColor: '#7367F0', pointRadius: 3, pointHoverRadius: 7, pointColor: '#636363', pointBackgroundColor: '#636363', data: <?php echo json_encode($weights, 15, 512) ?> } ] }
var salesGraphChartOptions = { maintainAspectRatio: false, responsive: true, legend: { display: false, }, scales: { xAxes: [{ ticks: { fontColor: '#636363', }, gridLines: { display: false, color: '#636363', drawBorder: false, } }], yAxes: [{ ticks: { stepSize: 5000, fontColor: '#636363', }, gridLines: { display: true, color: '#636363', drawBorder: false, } }] } }
var salesGraphChart = new Chart(salesGraphChartCanvas, { type: 'line', data: salesGraphChartData, options: salesGraphChartOptions } );
</script> <script> "use strict"; $('#customers').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'<?php echo e(route('customer.get.all.weight')); ?>', columns: [ { "data": "weight" }, { "data": "profile" }, { "data": "created_at" }, { "data": "action" }, ] });
$(document).on('click', '.customer-img-show', function (e) {
const image = $(this).attr('data-img');
$('.customer-image').attr('src', image);
$('#customerImageModal').modal('show'); }) </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/fitness.picotech.app/public_html/resources/views/customer/weight/index.blade.php ENDPATH**/ ?>
|