@extends('layouts.app') @section('title', 'Results Report') @section('breadcrumb') Dashboard Reports Results @endsection @section('content') @include('partials._report-tabs')
complete
Total results
{{ number_format($stats['total']) }}
top
Highest score
{{ $stats['max_score'] ?? '—' }}
mean
Average score
{{ $stats['avg_score'] ?? '—' }}
low
Lowest score
{{ $stats['min_score'] ?? '—' }}
@include('partials._report-filter', ['exportType' => 'results']) @include('partials._report-cap-banner')
Completed results
{{ $attempts->count() }} record(s)
@if($attempts->isEmpty())
No results yet
Completed exam scores will appear here.
@else
@foreach($attempts as $a) @php $pct = $a->total_questions > 0 ? round($a->score / $a->total_questions * 100, 1) : 0; $pctClass = $pct >= 60 ? 'pass' : ($pct >= 40 ? 'mid' : 'fail'); @endphp @endforeach
# Candidate Post Roll # Score % Correct Wrong Unans. Force Submitted  
{{ $loop->iteration }}
{{ $a->user?->name }}
{{ $a->user?->email }}
{{ $a->post?->code }} @if($a->application?->roll_number) {{ $a->application->roll_number }} @else @endif {{ $a->score }} {{ $pct }}% {{ $a->total_correct }} {{ $a->total_wrong }} {{ $a->total_unanswered }} @if($a->force_submitted) Yes @else No @endif @if($a->submitted_at) {{ $a->submitted_at->format('d M Y') }} @else @endif
@endif
@endsection @push('scripts') @endpush