District Wise No of Donors
Financial Year: {{ str_replace('-', ' - ', $data['report_financial_year']) }}
@php
$districts = $data['districtList'];
$grandTotals = [];
foreach ($districts as $distId => $name) {
$grandTotals[$distId] = 0;
}
$grandTotalAll = 0;
@endphp
| Month |
@foreach ($districts as $distId => $distName)
{{ $distName }}
|
@endforeach
Total Donors |
@foreach ($data['list'] as $month => $monthData)
@php $rowTotal = 0; @endphp
| {{ date('M-Y', strtotime($month)) }} |
@foreach ($districts as $distId => $distName)
@php
$value = $monthData['MonthWisedata'][$distId] ?? 0;
$rowTotal += $value;
$grandTotals[$distId] += $value;
$grandTotalAll += $value;
@endphp
{{ $value }} |
@endforeach
{{ $rowTotal }} |
@endforeach
| Grand Total |
@foreach ($districts as $distId => $distName)
{{ $grandTotals[$distId] }} |
@endforeach
{{ $grandTotalAll }} |