@extends('layouts.app') @section('content') @php // Fallbacks so this view works for both practice & exam flows $isExam = $isExam ?? false; $current = isset($current) ? (int)$current : (int)($attempt->total_items ?? 0); $max = isset($max) ? (int)$max : (int)($attempt->max_items ?? 15); $urls = $urls ?? [ 'next' => route('attempts.next', $attempt->id), 'answer' => route('attempts.answer', $attempt->id), 'finish' => route('attempts.finish', $attempt->id), // practice default 'results' => route('attempts.results', $attempt->id), 'submitted' => route('exams.attempts.submitted', $attempt->id), // exam-only ]; @endphp
{{ $current }} / {{ $max }} {{ __('table.items') }}
{{-- Loading state --}}
{{ __('loading') }}
{{-- Question view --}}
{{-- options injected here --}}
{{-- Styles --}} @endsection