@extends('layouts.portal') @section('title', 'Exam results') @section('subtitle', 'How learners in your batches are performing in the course knowledge assessments.') @section('content') @if($exams->isEmpty())
@else
@foreach($exams as $x) @php $st = $stats->get($x->id); $rate = $st && $st->n ? round($st->passed_n / $st->n * 100) : null; @endphp
{{ $x->code }}

{{ $x->title }}

Pass mark {{ $x->pass_percent }}% {{ $st->n ?? 0 }} attempts
Pass rate{{ $rate !== null ? $rate.'%' : 'โ€”' }}
Average score {{ $st && $st->avg_percent !== null ? round($st->avg_percent).'%' : 'โ€”' }}
@endforeach
@endif

Recent attempts

@forelse($attempts as $a) @empty @endforelse
LearnerExamSubmittedScoreResultIntegrity
{{ $a->user->initials() }}{{ $a->user->name }}
{{ $a->exam?->title }}
{{ $a->exam?->code }} ยท attempt #{{ $a->attempt_no }}
{{ $a->submitted_at?->format('d M Y, g:i A') ?? 'โ€”' }} {{ rtrim(rtrim(number_format((float) $a->percent, 1), '0'), '.') }}% @if($a->status === 'expired')Time expired@elseif($a->passed)@else@endif @if($a->violations){{ $a->violations }} flag{{ $a->violations === 1 ? '' : 's' }}@elseClean@endif
No exam attempts from your learners yet.
{{ $attempts->links() }} @endsection