{{-- --}} @if (collect($data_list)->count() > 0) @php $totalCustomerTotal = $totallastMonthDue = $totaltotalDue = $totaltotalOutstanding = 0; @endphp @foreach ($data_list as $branchData) @php $totalCustomerTotal += $branchData['totalCustomer']; $totallastMonthDue += $branchData['lastMonthDue']; $totaltotalDue += $branchData['totalDue']; $totaltotalOutstanding += $branchData['totalOutstanding']; @endphp @endforeach @endif
Branch Name Branch Opening Date Software Start date Branch Date Total Customer Last Month
Due (Pr.)
Today's Due (Pr.)Total Due (Pr.) Total Balance (Pr.) Lag
{{ $branchData['branchNameCode'] }} {{ $branchData['branchOpeningDate'] }} {{ $branchData['softwareStartDate'] }} {{ $branchData['branchDate'] }} {{ $branchData['totalCustomer'] }} {{ number_format($branchData['lastMonthDue'],2) }} {{ number_format($branchData['totalDue'],2) }} {{ number_format($branchData['totalOutstanding'],2) }} {{ $branchData['lag'] }}
TOTAL       {{ $totalCustomerTotal }} {{ number_format($totallastMonthDue,2) }} {{ number_format($totaltotalDue,2) }} {{ number_format($totaltotalOutstanding,2) }}