<?php $UserType = Session::get('UserType');?>
<table id="example" class="table table-striped table-bordered" style="width:100%">
    <thead>
        <tr>
            <th>Sr.No</th>
            <th>Receipt No</th>
            <th>Patient Name</th>
            <th>Phone No</th>
            <th>Procedure</th>
            <th>Amount</th>
            <th>Payment Mode</th>
            <th>Date</th>
            <?php if($UserType == 'Superadmin'){?>
            <th>Action</th>
            <?php } ?>
            <th>Print</th>
        </tr>
    </thead>
    <tbody>
        <?php $i=1;
        use App\Http\Controllers\OpdReceiptController;
        ?>
        <?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->MrdNo); ?>/<?php echo e($result->PatientName); ?></td>
            <td><?php echo e($result->Phone); ?></td>
            <td><?php echo e($result->Procedures); ?></td>
            <td>&#8377;<?php echo e(number_format($result->Amount,2)); ?></td>
            <td><?php echo e($result->PayMode); ?></td>
            <td><?php echo e(date("d/m/Y", strtotime(str_replace('-', '/',$result->CreatedDate)))); ?></td>
            <?php if($UserType == 'Superadmin'){?>
            <td>
                <a data-id="<?php echo e($result->id); ?>" href='javascript:void(0);' data-toggle="tooltip" data-placement="top"
                    title="Edit" data-original-title="Edit" class="update"><i
                        class="lnr lnr-pencil mr-2"></i></a>&nbsp;&nbsp;
                 <a data-id="<?php echo e($result->id); ?>" href='javascript:void(0);' data-toggle="tooltip" data-placement="top"
                    title="Delete" data-original-title="Delete" class="delete" id="bootbox-confirm"><i
                        class="lnr lnr-trash text-danger"></i></a> 
            </td> 
            <?php } ?>
            <td><a href='javascript:void(0)' onclick="printCard(<?php echo e($result->id); ?>)" class="btn btn-info btn-sm"><i
                        class="feather icon-printer"></i>&nbsp;Print </a></td>
        </tr>
        <?php $i++;?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <tr>
        <td><?php echo e($i); ?></td>
        
        <td></td>
        <td></td>
        <td></td>
        <th>Total</th>
        <th>&#8377;<?php echo e(number_format($total,2)); ?></th>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
</tr>
    </tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable({
        "scrollX": true,
        order: [[0, 'desc']],
        dom: 'Bfrtip',
        buttons: [

            'excelHtml5'

        ]
    });
});
</script><?php /**PATH C:\laragon\www\parijathosp\resources\views/opd/incopdreceipts.blade.php ENDPATH**/ ?>