@extends('layouts.app') @if(isset($student)) @section('title', 'Lịch thi của ' . $student['ho_ten'] . ' - ' . $student['ma_sv']) @section('og_title', 'Lịch thi của ' . $student['ho_ten'] . ' - ' . $student['ma_sv']) @section('og_description', 'Xem lịch thi chi tiết của sinh viên ' . $student['ho_ten'] . ' tại hệ thống tra cứu nội bộ NEU.') @else @section('title', 'Tra cứu Lịch Thi - NEU') @endif @section('content')
@include('partials.nav')

Tra cứu Lịch thi

Hệ thống quản lý lịch thi nội bộ NEU.

@if(session('success')) {{ session('success') }} @endif @if(session('error')) {{ session('error') }} @endif @if($ma_sv) @if(count($records) > 0) @php $totalExams = 0; $eligible = 0; $ineligible = 0; $postponed = 0; foreach ($records as $dayRecords) { $totalExams += count($dayRecords); foreach ($dayRecords as $record) { $dk = trim(mb_strtoupper($record->pivot->dieu_kien_thi ?? '', 'UTF-8')); if ($dk == 'HT') { $postponed++; } elseif ($dk == 'KĐT' || strpos($dk, 'KHÔNG') !== false || strpos($dk, 'CẤM') !== false) { $ineligible++; } else { $eligible++; } } } @endphp
@foreach($records as $date => $dayRecords)

{{ $date ?: 'Chưa xác định ngày' }}

@foreach($dayRecords as $record) @php $dk = trim(mb_strtoupper($record->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'; } @endphp
Ca {{ $record->ca_thi ?: '-' }}

{{ $record->ten_mon ?: 'Chưa cập nhật môn thi' }}

Thời gian {{ $record->gio_thi ?: '-' }}
Phòng thi {{ $record->phong_thi ?: 'Chưa xếp' }}
Địa điểm {{ $record->dia_diem_thi ?: 'NEU' }}
Trạng thái @if($record->pivot->dieu_kien_thi) {{ $record->pivot->dieu_kien_thi }} @endif
@if(!empty($record->link_zalo))
@else
@auth
@csrf
@else

Đăng nhập để thêm Link Zalo

@endauth
@endif
@endforeach
@endforeach
@else
Tìm kiếm

Không tìm thấy dữ liệu

Không có lịch thi nào cho mã sinh viên "{{ $ma_sv }}". Vui lòng kiểm tra lại.

@endif @else
Tìm kiếm

Vui lòng nhập mã sinh viên

Nhập mã sinh viên của bạn vào ô tìm kiếm phía trên để xem chi tiết lịch thi.

@endif
@include('partials.footer') @endsection