@extends('auth.student.layouts.master') @section('content')

Dashboard ..

Back
Result of {{$exam->title}}
@foreach($exam->groups as $group) @foreach($group->questions as $key=>$question) @php $applied = $student->questions()->where('learning_exam_group_question_id',$question->id)->first(); @endphp @endforeach
{{$group->name}}
SN Question Answer Applied Answer Status
{{++$key}} {{$question->title}} {{$question->true_option->name}} @if($applied) @if($applied->status=='attempt') {{$applied->option->name}} @else Not Applied @endif @else Not Applied @endif @if($applied) @if($applied->status=='attempt') @if($applied->option->type=='True') True @else Wrong @endif @elseif($applied->status=='skip') {{$applied->status}} @else {{$applied->status}} @endif @else Not Applied @endif
@endforeach
@endsection