@extends('layouts.app') @section('title', 'Merit — ' . $post->code) @section('breadcrumb') Dashboard Merit list {{ $post->code }} @endsection @section('content')
Code {{ $post->code }} BPS-{{ $post->bps }} {{ number_format($post->total_seats) }} seats

{{ $post->title }}

Ranked list of completed exam attempts for this post.

{{ $attempts->count() }}
Ranked
{{ $attempts->max('score') ?? '—' }}
Highest
{{ $attempts->isNotEmpty() ? round($attempts->avg('score'), 1) : '—' }}
Average
{{ $attempts->min('score') ?? '—' }}
Lowest
2 1 3
Ranked candidates
{{ $attempts->count() }} candidate(s) ordered by score
Back
@if($attempts->isEmpty())
No completed attempts
The merit list will populate once candidates complete their exams for this post.
@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'); $medal = $a->rank === 1 ? 'gold' : ($a->rank === 2 ? 'silver' : ($a->rank === 3 ? 'bronze' : 'plain')); @endphp @endforeach
Rank Candidate Roll # Score % Correct Wrong Unans. Force Submitted  
@if($medal === 'plain')#{{ $a->rank }}@else{{ $a->rank }}@endif
{{ $a->user?->name }}
{{ $a->user?->email }}
@if($a->user?->candidateProfile?->cnic)
{{ $a->user->candidateProfile->cnic }}
@endif
@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 {{ $a->submitted_at?->format('d M Y') }}
{{ $a->submitted_at?->format('h:i A') }}
@endif
@endsection @push('scripts') @endpush