@foreach($results as $section)
Class: {{ $section['class'] }}
Working Days: {{ $section['totalWorkingDays'] }}
@foreach($monthlyHeaders as $index => $month) @endforeach @foreach($monthlyHeaders as $month) @endforeach @foreach($section['students'] as $record) @php $totalP = 0; $totalA = 0; $totalN = 0; @endphp @foreach($monthlyHeaders as $month) @php $p = $record['monthly'][$month]['present']; $a = $record['monthly'][$month]['absent']; $n = $record['monthly'][$month]['not_marked']; $totalP += $p; $totalA += $a; $totalN += $n; @endphp @endforeach @endforeach
Student{{ $month }}Total
P A NP A N
{{ $record['student']->name }}{{ $p }} {{ $a }} {{ $n }}{{ $totalP }} {{ $totalA }} {{ $totalN }}
Symbol Meaning
P Present
A Absent
N Not Marked
@endforeach