@extends('layouts.app') @section('content')

{{__('tables.reviewer_title')}} : {{$exam->reviewer?->display_name}}

@foreach($exam->questions as $question)

{{__('exams.question')}} : {{$question->question}}

{{__('exams.mark')}} : {{$question->marks}}

@if($question->type == 'multiple_choice')

{{__('exams.available_options')}} :

    @foreach($question->exam_subject_question_options as $option)
  • {{$option->option}}
  • @endforeach
@else @if($question->answer)

{{__('exams.possible_answer')}} : {{$question->answer}}

@endif @endif @php $assets = $question->getMedia('files');@endphp @if(isset($assets) && $assets->count() > 0)
@endif
@if( isset($question->answers) && $question->answers->count() > 0 )
@if($question->type == 'multiple_choice') @php $optionValue = $question->exam_subject_question_options->where('id', $question->answers->first()->answer_option)->first(); @endphp @if ($optionValue)

{{__('exams.answer')}} : {{ $optionValue->option }}

@else

{{__('exams.answer')}} : {{__('exams.no_answer_text')}}

@endif @else

{{__('exams.answer')}} : {{$question->answers->first()->answer}}

@endif

{{__('exams.obtainted_marks')}} : {{$question->answers->first()->mark_acquired}}

@if($question->type == 'multiple_choice')

{{__('exams.correct')}} : {{$question->answers->first()->correct ? 'YES' : 'NO'}}

@else @if($question->answers->first()->note)

{{__('exams.note')}} : {{$question->answers->first()->note}}

@endif @endif
@else

{{__('exams.no_answer_text')}}

@endif @endforeach
@stop