Pool name : {{ empty($question->pool_name) ? 'Undefined Pool' : ucfirst($question->pool_name->name) }}
Topic : {{ empty($question->topic_name) ? 'No Topic' : ucfirst($question->topic_name->name) }}
@php $question_string = strip_tags($question->question,''); @endphp {!! html_entity_decode(e($question->question)) !!}

@if($question->question_type == 1 || $question->question_type == 11)
Options
@if($question->question_type == 1)
Answers
@endif @if($question->question_type == 11)
Option scores
@endif
@elseif($question->question_type == 6)
@if(!empty($question->subquestion)) @foreach($question->subquestion as $keys => $getsubquestions) @endif
S.no Sub Question Sub Options
{{ $keys + 1}} {!! $getsubquestions ? $getsubquestions->sub_question : "--" !!} @foreach($getsubquestions->suboptions as $getoptions) @if($getoptions->subquestion_id == $getsubquestions->id) {!! $getoptions ? $getoptions->options : "--" !!}
@endif @endforeach @endforeach
@endif @if($question->question_type == 1) @foreach($question->options as $option) @php $op_string = strip_tags($option->options,''); @endphp
{!! html_entity_decode(e($option->options)) !!}
@if(is_null($option->answer)) No @else Yes @endif
@endforeach @elseif($question->question_type == 4) @foreach($question->getTestCases as $testKey => $testValue) @endforeach
Test case No Input Output Time Status Score
{!! $testKey+1 !!} {!! $testValue->input !!} {!! $testValue->output !!} {!! $testValue->time_limit !!} {!! $testValue->active_status !!} {!! $testValue->score !!}
@elseif($question->question_type == 11) @foreach($question->options as $mcq_weight_option) @php $op_string = strip_tags($mcq_weight_option->options,''); @endphp
{!! html_entity_decode(e($mcq_weight_option->options)) !!}
{{$mcq_weight_option->score}}
@endforeach @endif