@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@php use App\Enums\ExamStatus; use App\Enums\TestType; @endphp {{-- ── Banner: Today's Exams ──────────────────────────────────────────── --}} @if(isset($todayExams) && $todayExams->isNotEmpty())
{{-- Card header --}}
Today's Exams {{ $todayExams->count() }}
{{ now()->translatedFormat('l, d F Y') }}
{{-- Item list --}}
@foreach($todayExams as $loop_i => $todayItem) @php $idEnc = encrypt($todayItem->id); $testType = TestType::tryFrom($todayItem->test_type); $isProgress = $todayItem->status === ExamStatus::ON_PROGRESS->value; $needAbsen = !$todayItem->is_absen && !$isProgress; if ($needAbsen) { $rowBg = '#fffbf0'; $accentColor = '#f59e0b'; $statusBadge = 'bg-gradient-warning'; $statusLabel = 'Needs Attendance'; $btnClass = 'bg-gradient-danger'; $btnIcon = 'fa-clipboard-check'; $btnLabel = 'Take Attendance'; $btnHref = url('trsatd') . '?open_schedule=' . $todayItem->schedule_id . '&redirect_back=trsexm'; } elseif ($isProgress) { $rowBg = '#fff8f0'; $accentColor = '#fb8c00'; $statusBadge = 'bg-gradient-warning'; $statusLabel = 'On Progress'; $btnClass = 'bg-gradient-warning'; $btnIcon = 'fa-desktop'; $btnLabel = 'Monitor'; $btnHref = url($url_menu . '/manage/' . $idEnc); } else { $rowBg = '#f0feff'; $accentColor = '#00b7bd'; $statusBadge = 'bg-gradient-info'; $statusLabel = 'Scheduled'; $btnClass = 'bg-gradient-primary'; $btnIcon = 'fa-cog'; $btnLabel = 'Settings'; $btnHref = url($url_menu . '/manage/' . $idEnc); } @endphp
{{-- Accent dot / pulse --}}
@if($isProgress) @elseif($needAbsen) @else @endif
{{-- Training info --}}
{{ $todayItem->training_name }}
{{ $statusLabel }} @if($testType) {{ $testType->label() }} @endif @if( ($todayItem->control_type ?? null) === 'TIMER' && ($todayItem->status ?? null) === ExamStatus::ON_PROGRESS->value && !empty($todayItem->end_time) ) Sisa: 00:00:00 @endif
{{-- CTA --}}
@endforeach
@endif
Exam Execution List

Monitor exam status, countdown timer, and quick access to exam management.

@include('components.alert')

@include('assesm.trsexm._partials.filter') @include('assesm.trsexm._partials.data_table')
@endsection @include('assesm._partials.jsmenu_push')