@extends('layouts.app') @section('content') @php // Map the English band value from the report to a translatable key $bandRaw = $report['band'] ?? null; $bandKey = match($bandRaw) { 'Below grade' => 'below', 'Above grade' => 'above', 'At grade' => 'at', default => null, }; $bandLabel = $bandKey ? __('app.band.'.$bandKey) : ($bandRaw ?? '-'); @endphp

{{ __('app.results.title') }} #{{ $attempt->id }}

← {{ __('app.results.back') }}
{{-- Top stats --}}
{{ __('app.results.band') }}
{{ $bandLabel }}
{{ __('app.results.recommended_level') }}
{{ $report['recommended_level'] ?? '-' }}
{{ __('app.results.se') }}
{{ isset($report['se']) ? number_format($report['se'],3) : '-' }}
{{ __('app.results.theta') }}
{{ isset($report['theta']) ? number_format($report['theta'],3) : '-' }}
{{ __('app.results.score') }}
{{ $report['correct'] ?? 0 }} / {{ $report['total'] ?? $attempt->max_items }}
{{-- Difficulty over time chart --}}

{{ __('app.results.difficulty_over_time') }}

  {{ __('app.results.wrong') }}   {{ __('app.results.correct') }}   {{ __('app.results.difficulty_level') }}
@endsection