{{-- Question-by-question review of one graded ЕНТ answer sheet (EntSheetGrader::review()). Shared by the admin page (admin/ent_sheets/review) and the student's own (student_cabinet/ent_sheet), which is why it uses only --ax-* tokens and Bootstrap classes, not either page's own chrome. Expects: $review. --}} @php $num = static fn (float $v) => rtrim(rtrim(number_format($v, 1, '.', ''), '0'), '.'); $typeHints = [ \App\Support\EntGrading::SINGLE => '', \App\Support\EntGrading::MATCHING => __('соотв.'), \App\Support\EntGrading::MULTIPLE => __('неск.'), ]; @endphp
{{ $num($review['total']) }} / {{ $num($review['max_total']) }}
@foreach ($review['sections'] as $section) {{ $section['name'] }}: {{ $num($section['total']) }}/{{ $num($section['max_total']) }} @endforeach
{{ __('верно') }} {{ __('частично') }} {{ __('неверно') }} {{ __('без ответа') }}
@foreach ($review['sections'] as $section)
{{ $section['name'] }}
{{ $num($section['total']) }} / {{ $num($section['max_total']) }}
@foreach ($section['questions'] as $q) @php $state = $q['answer'] === null ? 'empty' : ($q['points'] >= $q['max'] ? 'right' : ($q['points'] > 0 ? 'partial' : 'wrong')); @endphp
{{ $q['no'] }} {{ $typeHints[$q['type']] }}
{{ $q['answer'] ?? '—' }}
@if ($state !== 'right')
{{ __('верно: :key', ['key' => $q['key'] ?? '?']) }}
@endif @if ($q['max'] > 1)
{{ $num($q['points']) }}/{{ $q['max'] }}
@endif
@endforeach
@endforeach
@once @push('styles') @endpush @endonce