@php $i = 0; @endphp
@foreach ($students as $index => $student) @php $academicyears = [1 => '1st', 2 => '2nd', 3 => '3rd', 4 => '4th', 5 => '5th']; $text_color = ''; if($student->resident_seat_empty == 1 && $student->status != 3){ $stdStatus = isset($statusData[5]) ? $statusData[5] : ''; $text_color = 'text-danger'; } else if(!empty($student->seat_cancel_date) && $student->status != 3){ $stdStatus = isset($statusData[4]) ? $statusData[4] : ''; $text_color = 'text-primary'; } else { $stdStatus = isset($statusData[$student->status]) ? $statusData[$student->status] : ''; switch($student->status){ case 1: $text_color = 'text-success'; break; case 2: $text_color = 'text-info'; break; case 3: $text_color = 'text-dark'; break; } } $stdStatusTxt = ''. $stdStatus.''; @endphp @endforeach
SL Student Hall ID Resident
No
Resident
Date
Current
Seat
Admission
Session
Academic
Program
Academic
Year
Academic
Department
Registration
No
Merit
Serial
Merit
Score
Extra Curricular
Activities
Cell No Guardian No Status Remark
{{ ++$i }} {{ $student->full_name_en }} {{ $student->hall_id }} {{ $student->resident_no}} {{ $student->rs_date}} {{ $student->seat_no}} {{ $student->admission_session }} {{ $student->program }} {{ $academicyears[$student->year] }} {{ $student->dept_name }} {{ $student->registration_no }} {{ $student->merit_serial }} {{ $student->merit_score }} {{ $student->extra_curricular_activities }} {{ $student->mobile_no }} {{ $student->g_mobile_no }} {!! $stdStatusTxt !!} {{ $student->remark }}