@foreach($info as $zilla => $zillaData) @foreach($zillaData as $center => $centerData) @foreach ($centerData as $subject => $subData) @php $ROW_COUNT = 47; $COLUMN_COUNT = $columnCount; @endphp @foreach ($subData->chunk($ROW_COUNT * $COLUMN_COUNT) as $pageIndex => $page)
@for ($i = 0; $i < $ROW_COUNT; $i++) @for ($j = 0; $j < $COLUMN_COUNT; $j++) @php $index = $ROW_COUNT * $j + $i + $pageIndex * $ROW_COUNT * $COLUMN_COUNT; @endphp @endfor @endfor
{{ $zilla }}
{{ $center }}
TOTAL NUMBER OF STUDENTS IN THIS CENTER: {{ count($subData) }}
{{ $subject }}
{!!isset($page[$index]) ? $page[$index]->roll_no : '666666'!!} {!! isset($page[$index]) ? $page[$index]->marks : '025' !!} AAA
@endforeach @endforeach @endforeach @endforeach