<table id="example" class="table table-striped table-bordered" style="width:100%">
    <thead>
        <tr>
            <th>Sr.No</th>
            <th>Primary Code</th>
            <th>Charges For</th>
            <th>Amount</th>
            <th>Days</th>
            <th>Final Amount</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php $i=1;?>
        <?php if(isset($data) && count($data) > 0): ?>
            <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $result): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if($result): ?>
            <tr>
                <td><?php echo e($i); ?></td>
                <td><?php echo e($result->id ?? ''); ?></td>
                <td><?php echo e($result->Name ?? ''); ?></td>
                <td>&#8377;<?php echo e(number_format($result->Rate ?? 0, 2)); ?></td>
                <td><?php echo e($result->Days ?? 0); ?></td>
                <td>&#8377;<?php echo e(number_format($result->Amount ?? 0, 2)); ?></td>
                <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>  
            </tr>
            <?php $i++;?>
            <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php else: ?>
            <tr>
                <td colspan="7" class="text-center">No charges added yet</td>
            </tr>
        <?php endif; ?>
    </tbody>
</table>
<script type="text/javascript">
// Table is simple, no DataTable needed
</script><?php /**PATH C:\laragon\www\parijathosp\resources\views/ipd/incipdbillchargeview2.blade.php ENDPATH**/ ?>