@extends('frontend.maintemplate.maintemplate') @section('title', 'Course Details' . ' :: AgeLess Institute') @section('content')

Exam Questions

Time 00:00
@csrf
@if ($examQuestions->isEmpty())

No questions found for this exam.

@else @foreach ($examQuestions as $index => $examQuestion)

Question: Showing {{ $index + 1 }} of {{ $examQuestions->count() }} Questions

{{ $examQuestion->question->question_title }}

@switch($examQuestion->question->answer_type) @case(1) @if (isset($savedAnswers[$examQuestion->question_id]))

Previously submitted audio file.

@endif @break @case(2) @break @case(3) @if (isset($savedAnswers[$examQuestion->question_id]))

Previously submitted file.

@endif @break @case(4) @if (isset($savedAnswers[$examQuestion->question_id]))

Previously submitted image.

@endif @break @case(5) @break @case(6) @if (isset($savedAnswers[$examQuestion->question_id]))

Previously submitted PDF file.

@endif @break @case(7) @if (isset($savedAnswers[$examQuestion->question_id]))

Previously submitted video file.

@endif @break @case(8) @php $options = $examQuestion->question->mcq_options; @endphp @foreach ($options as $option)
question_id]) && $savedAnswers[$examQuestion->question_id] == $option->id ? 'checked' : '' }}>
@endforeach @break @default

Unsupported answer type.

@endswitch
@endforeach @endif

Answered

Skipped

@endsection