@extends('layouts.app') @section('title', 'Chi tiết Phòng thi - NEU') @section('content')
@include('partials.nav', ['class' => 'mb-8']) Quay lại

{{ $record->ten_mon ?: 'Chi tiết Phòng thi' }}

Phòng thi {{ $record->phong_thi ?: 'Chưa xếp' }}
Sĩ số {{ count($students) }} SV
Ca thi Ca {{ $record->ca_thi ?: '-' }}
Ngày thi {{ $record->ngay_thi ?: '-' }}
Giờ thi {{ $record->gio_thi ?: '-' }}
Địa điểm {{ $record->dia_diem_thi ?: 'NEU' }}
@if($record->link_zalo) @endif

Danh sách Sinh viên ({{ count($students) }})

@if(($conditionCounts['Không được thi'] ?? 0) > 0) Không được thi: {{ $conditionCounts['Không được thi'] ?? 0 }} @endif @if(($conditionCounts['Hoãn thi'] ?? 0) > 0) Hoãn thi: {{ $conditionCounts['Hoãn thi'] ?? 0 }} @endif Đủ điều kiện: {{ $conditionCounts['Đủ điều kiện'] ?? 0 }}
@foreach($students as $index => $sv) @php $dk = trim(mb_strtoupper($sv->pivot->dieu_kien_thi ?? '', 'UTF-8')); $statusClass = 'success'; if ($dk == 'HT' || strpos($dk, 'HOÃN') !== false) { $statusClass = 'warning'; } elseif ($dk == 'KĐT' || strpos($dk, 'KHÔNG') !== false || strpos($dk, 'CẤM') !== false) { $statusClass = 'destructive'; } $firstChar = mb_substr(trim($sv->ten), 0, 1, 'UTF-8'); $colors = ['#f87171', '#fb923c', '#fbbf24', '#a3e635', '#4ade80', '#34d399', '#2dd4bf', '#38bdf8', '#60a5fa', '#818cf8', '#a78bfa', '#c084fc', '#e879f9', '#f472b6', '#fb7185']; $colorIndex = (crc32($sv->ma_sv) % count($colors)); $avatarBg = $colors[$colorIndex]; @endphp
{{ mb_strtoupper($firstChar, 'UTF-8') }}
{{ $sv->ho_dem }} {{ $sv->ten }}
{{ $sv->ma_sv }}
LỚP / CHUYÊN NGÀNH {{ $sv->lop_chuyen_nganh ?: 'Chưa cập nhật' }}
ĐIỀU KIỆN THI {{ $sv->pivot->dieu_kien_thi ?: 'Không xác định' }}
@endforeach

Không tìm thấy sinh viên nào phù hợp.

@include('partials.footer') @endsection @section('scripts') @parent @endsection