Tiada data dijumpai untuk tarikh {{ $endDate }}.
@else
| Bil. | Cawangan | @foreach ($aging[0]['summary_by_tempoh'] as $summary){{ $summary['label'] }} | @endforeachKeseluruhan | ||
|---|---|---|---|---|---|
| @foreach ($aging[0]['summary_by_tempoh'] as $summary) | Bil | RM | @endforeachBil | RM | |
| {{ $counter++ }} | {{ $branch['cawangan'] }} | @foreach ($branch['summary_by_tempoh'] as $index => $summary){{ $summary['count'] }} | {{ number_format($summary['sum_bakipjm'], 2) }} | @php $totalCount += $summary['count']; // Summing up the count $totalBakipjm += $summary['sum_bakipjm']; // Summing up the Bakipjm // Adding values to grand totals for each tempoh $totalGrandCountByTempoh[$index] += $summary['count']; $totalGrandBakipjmByTempoh[$index] += $summary['sum_bakipjm']; @endphp @endforeach{{ $totalCount }} | {{ number_format($totalBakipjm , 2) }} |
| Total | @foreach ($totalGrandCountByTempoh as $index => $grandCount){{ $grandCount }} | {{ number_format($totalGrandBakipjmByTempoh[$index], 2) }} | @endforeach{{ array_sum($totalGrandCountByTempoh) }} | {{ number_format(array_sum($totalGrandBakipjmByTempoh), 2) }} | |