Month Wise Detail Refreshment and IEC Received/Due Statement

Financial Year: {{ str_replace('-', ' - ', $data['report_financial_year']) }}

@php $first = true; @endphp @if (!empty($data['list']) && count($data['list']) > 0) @foreach ($data['list'] as $month => $records)
@php $first = false; @endphp @php $sl = 1; // ✅ RESET SERIAL HERE $monthRef = 0; $monthIEC = 0; $monthDonor = 0; $monthTotal = 0; $campCount = count($records); @endphp @foreach ($records as $value) @php $monthRef += $value->refreshment_charge ?? 0; $monthIEC += $value->iec_grant_paid ?? 0; $monthDonor += $value->donor_count ?? 0; $monthTotal += $value->total_amount ?? 0; @endphp @endforeach
Sl Camp Date Organisation Name BB NOD Ref Amt IEC Amt Tot Ref IEC Ref Status IEC Status
{{ $sl++ }} {{ $value->camp_date ? date('d-m-Y', strtotime($value->camp_date)) : '' }} {{ $value->org_name }} {{ $value->blood_bank_code ?? '' }} {{ $value->donor_count ?? 0 }} {{ number_format($value->refreshment_charge ?? 0, 2) }} {{ number_format($value->iec_grant_paid ?? 0, 2) }} {{ number_format($value->total_amount ?? 0, 2) }} {{ strtoupper($value->ref_status ?? '') }} {{ strtoupper($value->iec_status ?? '') }}
Total in the Month    {{ $month }} {{ $monthDonor }} {{ number_format($monthRef, 2) }} {{ number_format($monthIEC, 2) }} {{ number_format($monthTotal, 2) }} Camp No: {{ $campCount }}
@endforeach @else
No Record Found.
@endif