Viewing file: a4e9439e04624141981cf4e97a4fffe9.php (5.66 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Weight Details <?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> .w-100 { width: 100%; }
.single-step-row { background: #ededed; padding: 8px; border-radius: 5px; }
.customer-weight-img { width: 100%; height: 100%; }
a.customer-weight-img-sec { width: 60px; height: 60px; }
img.customer-weight-image { width: 100%; height: 100%; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12">
<div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo e(trans('Weight Details')); ?></h2> </div> <div class="card-body"> <table id="weight-details" class="contact-deals-table table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo app('translator')->get('Customer Name'); ?></th> <th><?php echo app('translator')->get('weight'); ?></th> <th><?php echo app('translator')->get('Image'); ?></th> <th><?php echo app('translator')->get('Created At'); ?></th> </tr> </thead> <tbody> <?php if($customer_weight_details->isNotEmpty()): ?> <?php $__currentLoopData = $customer_weight_details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $weight_detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($weight_detail->customer->full_name); ?></td> <td><?php echo e($weight_detail->weight); ?></td> <td> <?php if(isset($weight_detail->image) && $weight_detail->image): ?> <?php
$customer_img = $weight_detail->image; ?> <a href="#" class="customer-weight-img-sec customer-img-show" data-img="<?php echo e(asset('uploads/' .$customer_img)); ?>"> <img class="" src="<?php echo e(asset('uploads/' .$customer_img)); ?>" alt="" height="40" width="45"> </a> <?php else: ?> <img src="" alt="Image"> <?php endif; ?> </td> <td><?php echo e($weight_detail->created_at); ?></td>
</tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </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-weight-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> "use strict"; $('#weight-details').DataTable();
$(document).on('click', '.customer-img-show', function (e){
const image = $(this).attr('data-img');
$('.customer-weight-image').attr('src',image);
$('#customerImageModal').modal('show'); })
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/fitness.picotech.app/public_html/resources/views/admin/customers/customer_weight_detail.blade.php ENDPATH**/ ?>
|