{{-- resources/views/tests/answers/show.blade.php --}} @extends('layouts.superadmin') @section('title', 'تفاصيل الاختبار 📘') @section('page-title', '📘 تفاصيل الاختبار: ' . $test->title) @section('content')
{{-- هيدر ملحمي --}}

تفاصيل الاختبار

عرض الأسئلة، الإجابات النموذجية، وكل محاولات الأعضاء لهذا الاختبار.

اختبار: {{ $test->title }} حالة الاختبار: @if($test->is_active) مفعّل @else غير مفعّل @endif
{{-- بطاقات سريعة --}}
عدد الأسئلة
{{ $questionsCount }} سؤال
محاولات الأعضاء
{{ $submissionsCount }} محاولة
نوع الجمهور
@php $map = [ 'all' => 'لكل الأعضاء', 'moderators' => 'المشرفون فقط', 'beta' => 'أعضاء بيتا', 'male' => 'الذكور', 'female' => 'الإناث', ]; @endphp {{ $map[$test->audience] ?? 'غير محدد' }}
{{-- الأسئلة والإجابات --}}

الأسئلة والإجابات النموذجية

إجمالي الأسئلة: {{ $questionsCount }}
@if($questionsCount === 0)
لا توجد أسئلة مسجلة لهذا الاختبار.
@else
@foreach ($test->questions as $qIndex => $question)

{{ $qIndex + 1 }} {{ $question->question_text }}

@foreach ($question->answers as $answer)
{{ $answer->answer_text }} @if($answer->is_correct) @endif
@endforeach
@endforeach
@endif
{{-- محاولات الأعضاء --}}

محاولات الأعضاء

إجمالي المحاولات: {{ $submissionsCount }}
@if($submissionsCount === 0)
لا توجد محاولات بعد لهذا الاختبار.
@else
@foreach ($submissions as $index => $sub) @endforeach
# المستخدم النتيجة وقت الإرسال التفاصيل
{{ $index + 1 }} {{ $sub->user->name ?? '—' }} @php $cls = $sub->score >= 85 ? 'text-emerald-400' : ($sub->score >= 60 ? 'text-yellow-300' : 'text-rose-300'); @endphp {{ $sub->score }}% {{ optional($sub->submitted_at)->format('Y/m/d H:i') }}
@endif
{{-- مودال عرض محاولة واحدة --}} @endsection