@extends('layouts.guest-exam') @section('title', $attempt->exam->title) @section('content')

{{ $attempt->exam->title }}

{{ __(':minutes minutes', ['minutes' => $attempt->exam->duration_minutes]) }} · {{ __(':marks marks', ['marks' => $attempt->exam->total_marks]) }}

@csrf @foreach ($attempt->exam->questions as $index => $question)

{{ $index + 1 }}. {!! $question->question_text !!}

@if ($question->question_type->value === 'mcq')
@foreach ($question->options as $option) @endforeach
@else @endif
@endforeach
@endsection