@php $i = 0; $academicyears = [1 => '1st', 2 => '2nd', 3 => '3rd', 4 => '4th', 5 => '5th']; @endphp
@foreach ($students as $index => $student) @endforeach
SL Student Hall ID Department Admission
Session
Admission
Program
Admission
Year
Reg No Mobile No Transfer
Date
Previous Seat New Seat
Building Room Seat Building Room Seat
{{ ++$i }} {{ $student->full_name_en }} {{ $student->hall_id }} {{ $student->dept_name }} {{ $student->admission}} {{ $student->statusname }} {{ $academicyears[$student->acyear] }} {{ $student->registration_no }} {{ $student->mobile_no }} {{(new DateTime( $student->date))->format('d-m-Y') }} {{ $student->previous_building }} {{ $student->previous_room }} {{ $student->p_seat }} {{ $student->new_building }} {{ $student->new_room }} {{ $student->n_seat }}