@foreach ($info as $subject => $subData)
@php
$ROW_COUNT = 49;
$COLUMN_COUNT = $columnCount;
@endphp
@foreach ($subData->chunk($ROW_COUNT * $COLUMN_COUNT) as $pageIndex => $page)
|
TOTAL NUMBER OF STUDENTS IN THIS SUBJECT: {{ count($subData) }}
|
|
{{ $subject }}
|
@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
|
{!!isset($page[$index]) ? $page[$index]->roll_no : '666666'!!}
|
{!! isset($page[$index]) ? $page[$index]->marks : '025' !!}
|
AAA |
@endfor
@endfor
@endforeach
@endforeach