@php use App\Enums\ControlType; @endphp @php use App\Enums\ExamStatus; @endphp @php $hasTimerConfigured = !empty($exam->start_time) && !empty($exam->end_time); @endphp @php $isLockedDueToPast = !empty($exam->is_locked_due_to_past); @endphp {{-- Control Center --}}
Global Session Timer

{{ $exam->time_remaining }}

@if (($exam->control_type ?? null) === ControlType::TIMER->value) Auto Timer Mode @else Manual Control Mode @endif
Submission Progress {{ $exam->progress_percent }}% ({{ $exam->submitted_count }}/{{ $exam->total_count }})
@if ($exam->status == ExamStatus::SCHEDULED->value) @if ($isLockedDueToPast)
Control terkunci karena schedule sudah lewat.
Perbarui tanggal/jam di TRN lalu refresh halaman ini untuk membuka start / auto timer.
@endif
@elseif($exam->status == ExamStatus::ON_PROGRESS->value) @if ($exam->control_type === ControlType::MANUAL->value) Session hanya bisa dihentikan oleh admin. @else Auto Timer aktif. Session akan selesai sesuai jadwal yang diset. @endif @elseif($exam->status == ExamStatus::FINISHED->value) @endif