@extends('student.layouts.app', ['studentExamMode' => true]) @section('title', $quiz->title) @section('content') @php $isArabic = app()->getLocale() === 'ar'; @endphp
{{ $isArabic ? 'وضع التركيز' : 'Focus mode' }}

{{ $quiz->title }}

{{ $isArabic ? 'تم إخفاء عناصر اللوحة الجانبية لتسهيل التركيز الكامل على الاختبار.' : 'Dashboard distractions are hidden so the quiz stays fully focused.' }}

{{ $quiz->questions->count() }} {{ $isArabic ? 'سؤال' : 'questions' }} {{ $quiz->total_marks }} {{ $isArabic ? 'درجة' : 'marks' }} {{ $quiz->duration }} {{ $isArabic ? 'دقيقة' : 'min' }}
@csrf

{{ $quiz->title }}

@if ($quiz->description)

{{ $quiz->description }}

@endif
{{ $isArabic ? 'الوقت المتبقي' : 'Time remaining' }}
{{ gmdate('i:s', $timeRemaining) }}
{{ $isArabic ? 'جدول الأسئلة' : 'Question map' }}
@foreach ($quiz->questions->sortBy('position')->values() as $index => $quizQuestion) @endforeach
@foreach ($quiz->questions->sortBy('position')->values() as $index => $quizQuestion) @php $question = $quizQuestion->question; $detail = $answerDetails->get($quizQuestion->id); $storedAnswer = $detail?->answer; $questionTypeLabel = match ($question?->type) { 'mcq' => $isArabic ? 'اختياري' : 'MCQ', 'true_false' => $isArabic ? 'صح / خطأ' : 'True/False', 'essay' => $isArabic ? 'مقالي' : 'Essay', 'paragraph' => $isArabic ? 'فقرة' : 'Paragraph', 'match' => $isArabic ? 'مطابقة' : 'Match', 'audio_text' => $isArabic ? 'صوت ثم نص' : 'Audio to Text', 'text_audio' => $isArabic ? 'نص ثم صوت' : 'Text to Audio', 'fill_blank' => $isArabic ? 'أكمل الفراغات' : 'Fill in the blanks', default => $isArabic ? 'غير محدد' : 'Unknown', }; @endphp @if ($question) @endif @endforeach

{{ $isArabic ? 'التنقل بين الأسئلة وحفظ الإجابات يتم داخل الصفحة، ويمكنك تسليم الاختبار من العمود الجانبي.' : 'Question navigation and answer saving happen inside the page, and you can submit the quiz from the sidebar.' }}

@endsection