@extends('layouts.portal') @section('title', 'سؤال '.$index.' | گواهینو') @section('content')
{{ $attempt->exam->title }}سؤال {{ $index }} از {{ $total }}
@if ($remainingSeconds !== null)
زمان باقی‌مانده--:--
@else
پاسخ داده‌شده{{ $answeredCount }} / {{ $total }}
@endif
{{ $question->category?->name ?? 'آیین‌نامه' }} درجه {{ $question->difficulty === 'hard' ? 'سخت' : ($question->difficulty === 'easy' ? 'آسان' : 'متوسط') }}
@if ($question->media)
{{ $question->media->alt_text }}
@endif

{{ $question->body }}

@csrf @foreach ($question->choices as $choice) @php $choiceState = ''; if ($feedback && $choice->id === $feedback['correct_choice_id']) $choiceState = 'correct'; elseif ($feedback && $answer?->selected_choice_id === $choice->id) $choiceState = 'wrong'; @endphp @endforeach @unless ($feedback) @endunless
@if ($feedback)
{{ $feedback['correct'] ? 'آفرین، پاسخ درست بود.' : 'این پاسخ درست نبود.' }} @if ($feedback['explanation'])

{{ $feedback['explanation'] }}

@endif @if ($feedback['memory_tip'])نکتهٔ یادآوری: {{ $feedback['memory_tip'] }}@endif
@if ($index < $total) @else
@csrf
@endif @endif
@endsection