<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Fee Summary Report</title>
    <?php echo $__env->make('backend.pdf.layouts.css', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</head>
<body >
<?php echo $__env->make('backend.pdf.layouts.report-header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<main>


    <table class="table text-center" id="feeSummaryTableWithDues" width="100%" cellspacing="0">
        <thead>
        <tr>
            <th>Room#</th>
            <th>Date</th>
            <th>Student Information</th>
            <?php $__currentLoopData = $feesTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feeType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <th><?php echo e($feeType->fee_type); ?></th>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <th>Total Paid Balance</th>
        </tr>
    </thead>
        <tbody>

        	<?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e($row['Room#']); ?></td>
                <td><?php echo e($row['Date']); ?></td>
                <td><?php echo e($row['Student Information']); ?></td>
                <?php $__currentLoopData = $feesTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feeType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <td><?php echo e($row[$feeType->fee_type] ?? 0); ?></td>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <td><?php echo e($row['paid']); ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td colspan="3">Totals</td>
            <?php $__currentLoopData = $feesTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feeType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <td><?php echo e($transactions->sum($feeType->fee_type)); ?></td>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <td><?php echo e($transactions->sum('paid')); ?> </td>
            <td><?php echo e(number_format($transactions->sum('balance'), 2)); ?></td>
        </tr>
            
            <!--Totals at the end-->
			
    
    
    




        </tbody>
    </table>
</main>
<?php echo $__env->make('backend.pdf.layouts.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</body>
</html><?php /**PATH D:\Projects\hms_fatima\hms_fatima\resources\views/backend/pdf/reports/daily_fee_receipt_report.blade.php ENDPATH**/ ?>