@extends('layouts.app') @section('title', 'Exam Attempts') @section('breadcrumb') Dashboard Exam attempts @endsection @section('content')
all
Total attempts
{{ $stats['total'] }}
done
Completed
{{ $stats['completed'] }}
LIVE
In progress / review
{{ $stats['in_progress'] + $stats['in_review'] }}
{{ $stats['reset'] }}
Reset
{{ $stats['reset'] }}
All exam attempts
{{ number_format($stats['total']) }} record(s) · showing {{ $attempts->firstItem() ?? 0 }}–{{ $attempts->lastItem() ?? 0 }}
@if($attempts->isEmpty())
No exam attempts yet
Candidate exam sessions will appear here once they begin.
@else
@foreach($attempts as $a) @php $status = strtolower($a->status_label ?? $a->status ?? ''); $pillTone = str_contains($status, 'complet') ? 's-success' : (str_contains($status, 'progress') ? 's-info' : (str_contains($status, 'review') ? 's-warning' : (str_contains($status, 'reset') ? 's-info' : 's-neutral'))); @endphp @endforeach
# Candidate Post Attempt Status Score Force Started  
{{ $loop->iteration }}
{{ $a->user?->name }}
{{ $a->user?->email }}
{{ $a->post?->code }} #{{ $a->attempt_no }} {{ $a->status_label ?? ucfirst(str_replace('_',' ',$a->status)) }} @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
@if($attempts->hasPages())
{{ $attempts->links() }}
@endif @endif
@endsection @push('scripts') @endpush