<?php $totalamt = 0; ?>
<table id="example99" class="table table-striped table-bordered" style="width:100%">
    <thead>
        <tr>
            <th>Mrd. No</th>
            <th>Patient Name</th>
            <th>Visit Date</th>
            <th>Address</th>
            <th>Phone</th>
            <th>Investigation</th>
            <th>Amount</th>
            <th>Consultant</th>
            <th>Money Received By</th>
        </tr>
    </thead>
    <tbody>
        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $result): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php $totalamt += $result->Amount; ?>
        <tr>
            <td><?php echo e($result->MrdNo); ?></td>
            <td><?php echo e(strtoupper(strtolower($result->PatientName))); ?></td>
            <td><?php echo e(\Carbon\Carbon::parse($result->VisitDate)->format('d/m/Y')); ?></td>
            <td><?php echo e($result->Address); ?></td>
            <td><?php echo e($result->Phone); ?></td>
            <td style="white-space: pre-wrap;"><?php echo e($result->InvStName); ?></td>
            <td style="white-space: pre-wrap;"><?php echo e(number_format($result->Amount, 2)); ?></td>
            <td><?php echo e($result->Name ?? ''); ?></td>
            <td><?php echo e($result->MoneyRecName ?? ''); ?></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <th>Total</th>
            <th><?php echo e(number_format($totalamt, 2)); ?></th>
            <td></td>
            <td></td>
        </tr>
    </tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
    $('#example99').DataTable({
        scrollX: true,             // Horizontal scroll
        fixedHeader: true,         // Fix thead at top
        pageLength: 5000,           // Show 500 rows
        dom: 'Bfrtip',             // Export buttons on top
        buttons: ['excelHtml5'],    // Excel export
        "scrollY": "400px"
    });
});
</script><?php /**PATH D:\Projects\Sidhha_Tech\st_projects\Laravel\deshmukh_hosp\resources\views//utility/inc-investigation-report-lists.blade.php ENDPATH**/ ?>