{{-- هدر صفحه --}}

📊 جزئیات کامل تست

تست: {{ $test->title }} | اجرای شماره: {{ $attempt->id }}

← بازگشت به لیست
{{-- اطلاعات شرکت‌کننده --}}
👤 اطلاعات شرکت‌کننده
نام {{ $attempt->participant_name ?? '-' }}
شماره تماس {{ $attempt->participant_phone ?? '-' }}
نمره کل سوالات {{ $attempt->total_score }}
تاریخ اجرا {{ $attempt->created_at?->format('Y/m/d H:i') ?? '-' }}
{{-- سوالات و پاسخ‌ها --}}
📝 سوالات و پاسخ‌های کاربر
@forelse($answers as $index => $answer) @empty @endforelse
# سوال پاسخ کاربر امتیاز سوال
{{ $index + 1 }} {{ $answer->question->text ?? 'سوال حذف شده' }} @if($answer->option_id) {{ $answer->question->options->firstWhere('id', $answer->option_id)->text ?? 'گزینه حذف شده' }} @elseif($answer->text_answer) {{ $answer->text_answer }} @else بدون پاسخ @endif @if($answer->option_id) @php $option = $answer->question->options->firstWhere('id', $answer->option_id); $score = $option?->score_value ?? 0; @endphp {{ $score }} @else 0 @endif
پاسخی یافت نشد
{{-- نتایج فرمول‌ها --}}
🧮 محاسبات فرمول‌ها
@forelse($results as $index => $result)
{{ $result->formula_code }} {{ $formulas[$result->formula_id]->name ?? 'فرمول نامشخص' }}
@if($result->result_value !== null) ✅ موفق @else ❌ خطا @endif
معادله: {{ $result->expression_snapshot }}
مقادیر ورودی: {{ json_encode($result->input_values ?? [], JSON_UNESCAPED_UNICODE) }}
نتیجه نهایی: @if($result->result_value !== null) {{ $result->result_value }} ({{ $result->result_type }}) @else محاسبه نشد @endif
@empty

هیچ نتیجه‌ای برای این اجرا یافت نشد

@endforelse