@extends('layouts.admin_lbb') @section('title', "Log Kecurangan - {$exam->name}") @section('content')
Log Kecurangan

Ujian: {{ $exam->name }} ({{ $exam->exam_code }})

Kembali
@if($allAttempts->count() > 1)
{{ $allAttempts->count() }} attempt tersedia. Pilih untuk melihat log kecurangan.
Total {{ $allAttempts->count() }} Attempt
@endif
Informasi Peserta

Nama Siswa:

{{ $participant->student->user->name }}

NIS/NISN:

{{ $participant->student->nis ?? '-' }} / {{ $participant->student->nisn ?? '-' }}

Kelas:

{{ $participant->student->classModel->name ?? '-' }}


Waktu Mulai:

{{ $attempt->start_time->format('d/m/Y H:i:s') }}

Waktu Selesai:

{{ $attempt->end_time ? $attempt->end_time->format('d/m/Y H:i:s') : '-' }}

Nilai:

@if($attempt->score) {{ $attempt->score }} @else - @endif

Total Pelanggaran

{{ $statistics['total'] }}

{{--
Pindah Tab

{{ $statistics['by_type']['tab_switch'] }}

--}}
Kehilangan Fokus

{{ $statistics['by_type']['blur'] }}

{{--
DevTools

{{ $statistics['by_type']['devtools'] }}

--}}
Daftar Pelanggaran
@if($cheatingLogs->count() > 0)
@foreach($cheatingLogs as $index => $log) @endforeach
# Jenis Pelanggaran Waktu IP Address User Agent
{{ $index + 1 }} @php $badgeClass = match($log->type) { 'tab_switch' => 'warning', 'blur' => 'info', 'devtools' => 'danger', default => 'secondary' }; @endphp {{ $typeLabels[$log->type] ?? $log->type }} {{ $log->created_at->format('d/m/Y H:i:s') }} {{ $log->ip_address }} {{ $log->user_agent }}
@else
Tidak Ada Pelanggaran

Siswa ini tidak terdeteksi melakukan kecurangan selama ujian.

@endif
@endsection