@extends('backend.student_backend.student_dashboard') @section('student')

Subject : {{ $cbtTest->subject->subject_name ?? 'CBT Test' }} - {{ $cbtTest->assessment_type }}

Instruction : {{ ucwords($cbtTest->title) }}
Loading timer…
Question 1 of {{ count($questions) }}
@csrf @foreach($questions as $index => $question) @php $existingAnswer = $attempt->answers()->where('cbt_question_id', $question->id)->first(); $selectedOption = $existingAnswer ? strtoupper($existingAnswer->selected_option) : null; @endphp

Q{{ $index + 1 }}: {{ ucfirst($question->question_text) }}

@foreach(['A','B','C','D'] as $opt)
@endforeach
@endforeach
@foreach($questions as $index => $question) @endforeach
@endsection