@extends('layouts.admin') @section('content')

Exam Violations

{{ $exam->title }}

Review the students flagged during this exam and inspect the stored screenshots.

Students With Violations

{{ $studentSummaries->count() }} students
@forelse($studentSummaries as $summary)

{{ $summary->user->name }}

{{ $summary->user->email }}

Registration No: {{ $summary->user->registration_no ?? 'N/A' }}

Last violation: {{ \Carbon\Carbon::parse($summary->latest_violation_at)->format('d M Y, h:i A') }}

Violations

{{ $summary->violations_count }}

Open Student Timeline
@empty
No students match this filter.
@endforelse

Recent Captures

{{ $recentViolations->count() }} screenshots
@forelse($recentViolations as $violation)
@php($imageUrl = route('admin.violations.image', $violation)) Violation screenshot

{{ $violation->reason }}

{{ $violation->user?->name ?? 'Unknown student' }}

{{ $violation->created_at?->format('d M Y, h:i A') }}

@empty
No screenshots available for this exam yet.
@endforelse
@endsection