@extends('layouts.app') @section('title', 'Exams Report') @section('breadcrumb') Dashboard Reports Exams @endsection @section('content') @include('partials._report-tabs')
total
Total attempts
{{ number_format($stats['total']) }}
done
Completed
{{ number_format($stats['completed']) }}
LIVE
In progress / review
{{ number_format(($stats['in_progress'] ?? 0) + ($stats['in_review'] ?? 0)) }}
{{ $stats['force_submitted'] ?? 0 }}
Force submitted
{{ number_format($stats['force_submitted'] ?? 0) }}
@include('partials._report-filter', ['exportType' => 'exams']) @include('partials._report-cap-banner')
All exam attempts
{{ $attempts->count() }} record(s)
@if($attempts->isEmpty())
No exam attempts yet
Candidate exam attempts will be listed here once exams begin.
@else
@foreach($attempts as $a) @php $status = strtolower($a->status_label ?? ''); $pillTone = 's-neutral'; if (str_contains($status, 'complet')) $pillTone = 's-success'; elseif (str_contains($status, 'progress')) $pillTone = 's-info'; elseif (str_contains($status, 'review')) $pillTone = 's-warning'; elseif (str_contains($status, 'reset')) $pillTone = 's-info'; elseif (str_contains($status, 'force')) $pillTone = 's-danger'; @endphp @endforeach
# Candidate Post # Status Score Force Started  
{{ $loop->iteration }}
{{ $a->user?->name }}
{{ $a->user?->email }}
{{ $a->post?->code }} #{{ $a->attempt_no }} {{ $a->status_label }} @if($a->status === 'completed') {{ $a->score }}/{{ $a->total_questions }} @else @endif @if($a->force_submitted) Yes @else No @endif @if($a->started_at) {{ $a->started_at->format('d M Y') }} @else @endif
@endif
@endsection @push('scripts') @endpush