@if(!empty($data->comprehension)) @endif @if($data->question_type==3) @if($data->is_manual_evaluation == 1) @elseif($data->is_manual_evaluation == 0) @endif @endif @if($data->question_type==1) @php $optioncount=1; $arr=[]; @endphp @if(!empty($data->options)) @foreach($data->options as $key) @php $arr[$key->id]=['Option'.$optioncount]; $optioncount++;@endphp @endforeach @endif @endif @if($data->question_type==1) @endif @if($data->question_type==11) @php $optioncount=1; $option_arr=[]; @endphp @if(!empty($data->options)) @foreach($data->options as $key) @php $option_arr[$key->id]=['Option'.$optioncount]; $optioncount++;@endphp @endforeach @endif @if(!empty($data->options)) @php $optionscorecount=1; $option_score_arr=[]; @endphp @foreach($data->options as $scorekey) @php $option_score_arr[$key->id]=['Optionscore'.$optionscorecount]; $optionscorecount++;@endphp @endforeach @endif @endif @if($data->question_type==1) @if(!empty($data->testcases)) @endif @endif @if($data->question_type==4)
Comprehension: {!! $data->comprehension !!}
Question: {!! $data->question !!}
Course: {{$data->course_name->course_name ?? "---"}}
AnswerType:Manual EvaluationAuto Evaluation
Answer: {{$data->subjtiveAnswer->answer ?? "---"}}
Option{{$optioncount}} : {!! $key->options !!}
Answer: @foreach($data->answers as $answerKey => $answerValue) @if(!empty($answerValue->options_id)) @if(array_key_exists($answerValue->options_id,$arr)) {!! $arr[$answerValue->options_id][0] !!} @endif @elseif(!empty($answerValue->answer)) {!! $answerValue->answer or '---' !!} @endif @endforeach
Option{{$optioncount}} : {!! $key->options !!}
Option score{{$optionscorecount}} : {!! $scorekey->score !!}
Answer: @foreach($data->testcases as $answerKey => $answerValue) @if(!empty($answerValue->options_id)) @if(array_key_exists($answerValue->options_id,$arr)) {!! $arr[$answerValue->options_id][0] !!} @endif @elseif(!empty($answerValue->answer)) {!! $answerValue->answer or '---' !!} @endif @endforeach
@foreach($data->getTestCases as $testKey => $testValue) @endforeach @endif
Test case No Input Output Time Status Score
{!! $testKey+1 !!} {!! $testValue->input !!} {!! $testValue->output !!} {!! $testValue->time_limit !!} {!! $testValue->active_status !!} {!! $testValue->score !!}
@if($data->question_type == 6)
@foreach($data->subquestion as $keys => $getsubquestions) @endforeach
S.no Type Sub Question Preview Sub Options Answer
{{ $keys + 1}} {{ ($getsubquestions->sub_question_type==3) ? 'Subjective' : 'MCQ' }} {{$getsubquestions ? strip_tags(html_entity_decode(htmlspecialchars_decode($getsubquestions->sub_question ,ENT_QUOTES),ENT_QUOTES)): "--" }}
@foreach($getsubquestions->getaudiovideolist as $values) @if(!empty($values)) @if($values->media_type == 'audio') @elseif($values->media_type == 'video') @elseif($values->media_type == 'pdf') @endif @else "---" @endif @endforeach @foreach($getsubquestions->suboptions as $getoptions) @if($getoptions->sub_question_id == $getsubquestions->Id) {!! $getoptions ? $getoptions->options : "--" !!}
@endif @endforeach
@foreach($getsubquestions->suboptions as $answerKey => $answerValue) @if(!empty($answerValue->answer)) {!! strip_tags($answerValue->answer->answerOption->options) ?? '' !!}
@endif @endforeach
@endif {{--@if($data->question_type == 6)
@foreach($data->subquestion as $keys => $getsubquestions)
S.no Sub Question Preview Sub Options
{{ $keys + 1}} {!! $getsubquestions ? $getsubquestions->sub_question : "--" !!}
@foreach($getsubquestions->getaudiovideolist as $values) @if(!empty($values)) @if($values->media_type == 'audio') @elseif($values->media_type == 'video') @elseif($values->media_type == 'pdf') @endif @else "---" @endif @endforeach @foreach($getsubquestions->suboptions as $getoptions) @if($getoptions->sub_question_id == $getsubquestions->Id) {!! $getoptions ? $getoptions->options : "--" !!}
@endif @endforeach @endforeach
@endif --}} @if($data->question_type == 5)
@foreach($data->essayAnswerDetail as $keys => $getessaymodel) @endforeach
S.no Essay Model
{{ $keys + 1}} {!! $getessaymodel ? $getessaymodel->essay_model : "--" !!}
@endif