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 @foreach ($districts as $distId => $distName) @endforeach @foreach ($data['list'] as $month => $monthData) @php $rowTotal = 0; @endphp @foreach ($districts as $distId => $distName) @php $value = $monthData['MonthWisedata'][$distId] ?? 0; $rowTotal += $value; $grandTotals[$distId] += $value; $grandTotalAll += $value; @endphp @endforeach @endforeach @foreach ($districts as $distId => $distName) @endforeach
Month {{ $distName }} Total Donors
{{ date('M-Y', strtotime($month)) }} {{ $value }} {{ $rowTotal }}
Grand Total{{ $grandTotals[$distId] }}{{ $grandTotalAll }}