@extends('pdf.layout') @section('title', 'Practical Student List') @section('content') @php $key = 1; $chunk_size = 28; $studentArray = $student_list->toArray(); $chunks = array_chunk($studentArray, $chunk_size); @endphp @foreach ($chunks as $chunk) @php $subjectGroups = collect($chunk)->groupBy('subject_code'); @endphp @foreach ($subjectGroups as $subjectChunk) @include('include.pdf_header')

{{ strtoupper($subjectChunk[0]->paper_type . ' Student List For ' . $subjectChunk[0]->exam_code . ' - ' . $subjectChunk[0]->exam_name . ' Examination - ' . $subjectChunk[0]->exam_year) }}


Center Code & Name:

College Code & Name: {{ $subjectChunk[0]->college_code }} - {{ $subjectChunk[0]->college_name }}

Subject Code & Name: {{ $subjectChunk[0]->subject_code }} - {{ $subjectChunk[0]->subject_name }}

Course Code & Name: {{ $subjectChunk[0]->paper_code }} - {{ $subjectChunk[0]->paper_name }} No. of Student: {{ count($studentArray) }}


@foreach ($subjectChunk as $item) @php $key++; @endphp @endforeach
SL Exam Roll Reg. No. Session Reg Type Type Name of Examinee
{{ $key }} {{ $item->exam_roll_no ?? '' }} {{ $item->reg_no ?? '' }} @if($item->connected_college_status == 1 && !empty($item->st_college_name)) /{{ $item->st_college_name }} @endif {{ $item->ac_session ?? '' }} {{ $item->student_Type ?? '' }} {{ $item->candidate_type ?? '' }} {{ $item->name ?? '' }}
@if (!($loop->last && $loop->parent->last))
@endif @endforeach @endforeach @endsection