@extends('surface.app') @section('head') View Result - {{ $site_info->name ?? '' }} @endsection @section('content')
@include('surface.components.blur_circle_design')
{{-- Left column: Sidebar --}} {{-- Right column: Content --}}
{{-- Result Summary Card --}}

Exam Result

{{ $exam->course->name ?? '' }}

{{ $exam->name }}

Total Mark

{{ $student_exam->total_correct ?? 0 }}/{{ $student_exam->total_qs ?? 0 }}

Correct

{{ $student_exam->total_correct ?? 0 }}

Incorrect

{{ $student_exam->total_wrong ?? 0 }}

{{-- Question Cards --}} @foreach ($student_exam_details as $key => $student_exam_detail) @php $mcq_question = App\Models\McqQuestion::where('id', $student_exam_detail->question_id)->first(); $is_correct = $student_exam_detail->student_answer == $student_exam_detail->correct_answer; @endphp {{-- Uddipok / Stimulus Block --}} @if ($mcq_question->uddipok || $mcq_question->uddipok_img)

উদ্দীপক

@if ($mcq_question->uddipok) {!! $mcq_question->uddipok !!} @endif @if ($mcq_question->uddipok_img) @endif
@endif {{-- Question Card --}}
{{-- Question Header --}}

Question {{ $key + 1 }}

@if ($mcq_question->question) {!! $mcq_question->question !!} @endif @if ($mcq_question->question_img) @endif
@if ($is_correct) Correct @else Incorrect @endif
{{-- Answer Options --}}
@foreach (['option_one' => 'A', 'option_two' => 'B', 'option_three' => 'C', 'option_four' => 'D'] as $option_key => $option_label) @php $is_student_answer = $student_exam_detail->student_answer == $option_key; $is_correct_answer = $student_exam_detail->correct_answer == $option_key; $option_content = $mcq_question->$option_key ?? null; $option_img_key = $option_key . '_img'; $option_img = $mcq_question->$option_img_key ?? null; @endphp @if($option_content || $option_img)
{{ $option_label }}
@if($option_content) {!! $option_content !!} @endif @if($option_img) @endif
@if($is_correct_answer) @elseif($is_student_answer && !$is_correct_answer) @endif
@endif @endforeach
{{-- Explanation --}} @if ($mcq_question->description || $mcq_question->description_img)

ব্যাখ্যা

@if ($mcq_question->description) {!! $mcq_question->description !!} @endif @if ($mcq_question->description_img) @endif
@endif
@endforeach {{-- Back to Routine Button --}}
@endsection