@extends('layouts.cbt') @section('page-title', 'Dashboard Siswa') @section('sidebar')@include('components.siswa-sidebar')@endsection @section('content')

Selamat datang, {{ auth()->user()->name }}

NIS: {{ $student->nis }} • NISN: {{ $student->nisn }} • Kelas: {{ $student->schoolClass->name }}

@if($ongoing->count())

Ujian Sedang Berlangsung

Jawaban tersimpan otomatis di server.

@foreach($ongoing as $a)

{{ $a->exam->title }}

{{ $a->exam->subject->name }}

{{ $a->answers_count }}/{{ $a->exam->examQuestions->count() }} terisi • Sisa: {{ gmdate('i:s', max(0, $a->remainingSeconds())) }}

Lanjutkan Ujian
@endforeach
@endif

Ujian Tersedia

@forelse($available as $exam)

{{ $exam->title }}

{{ $exam->subject->name }} | {{ $exam->duration_minutes }} menit | KKM: {{ $exam->passing_score }}

{{ $exam->start_at->format('d/m/Y H:i') }} - {{ $exam->end_at->format('d/m/Y H:i') }}

@csrf @if($exam->token) @endif
@empty

Tidak ada ujian tersedia saat ini

@endforelse

Riwayat Ujian

@forelse($completed as $a)

{{ $a->exam->title }}

{{ $a->submitted_at?->format('d/m/Y H:i') }}

@if($a->exam->show_score)

{{ $a->score }}

{{ $a->isPassed() ? 'Lulus' : 'Remedial' }}

@endif Lihat
@empty

Belum ada riwayat

@endforelse
@endsection