@extends('layouts.app') @section('title', 'Question #' . $question->id) @section('breadcrumb') Dashboard Question bank #{{ $question->id }} @endsection @push('styles') @endpush @section('content')
{{-- ── Question content ──────────────────────────────────────── --}}

Question details

{{ $question->status_label }}
Question
{{ $question->question_text }}
Answer options
@foreach(['a' => 'A', 'b' => 'B', 'c' => 'C', 'd' => 'D'] as $key => $label) @php $isCorrect = $question->correct_answer === $key; @endphp
{{ $label }}
{{ $question->{'option_'.$key} }} @if($isCorrect) Correct @endif
@endforeach
@if($question->explanation)
Explanation
{{ $question->explanation }}
@endif
{{-- ── Sidebar ───────────────────────────────────────────────── --}}
{{-- Delete confirmation modal --}} @endsection