Danh sách Sinh viên ({{ count($students) }})
@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
@endforeach
{{ mb_strtoupper($firstChar, 'UTF-8') }}
{{ $sv->ho_dem }} {{ $sv->ten }}
Không tìm thấy sinh viên nào phù hợp.