<table id="example77" class="table table-striped table-bordered" style="width:100%">
    <thead>
        <tr>
            <th>Sr.No</th>
            <th>Receipt No</th>
            <th>Patient Name</th>
            <th>Procedure</th>
            <th>Amount</th>
            <th>Payment Date</th>
            <th>Payment Mode</th>
        </tr>
    </thead>
    <tbody>
        <?php $i=1;
       
        
        ?>
        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $result): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        
        <tr>
            <td><?php echo e($i); ?></td>
            <td><?php echo e($result->id); ?></td>
            <td><?php echo e($result->PatientName); ?></td>
            <td><?php echo e($result->Procedures); ?></td>
            <td><?php echo e(number_format($result->Amount,2)); ?></td>
            <td><?php echo e(date("d/m/Y", strtotime(str_replace('-', '/',$result->CreatedDate)))); ?></td>
            <td><?php echo e($result->PayMode); ?></td>
          
        </tr>
        <?php $i++;?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <tr>
           
             <td><?php echo e($i); ?></td>
             <td></td>
             <td></td>
             <th>Total </th>
             <th><?php echo e(number_format($sum,2)); ?></th>
             <td></td>
             <td></td>
           
             
         
           
            
        </tr>
    </tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
    $('#example77').DataTable({
        "scrollX": true,
        dom: 'Bfrtip',
        buttons: [

            'excelHtml5'

        ]
    });
});
</script><?php /**PATH D:\Projects\Sidhha_Tech\st_projects\Laravel\deshmukh_hosp\resources\views//opdreport/view-opd-receipt-report.blade.php ENDPATH**/ ?>