@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)
| S.no |
Sub Question |
Sub Options |
@if(!empty($question->subquestion))
@foreach($question->subquestion as $keys => $getsubquestions)
| {{ $keys + 1}} |
{!! $getsubquestions ? $getsubquestions->sub_question : "--" !!} |
@foreach($getsubquestions->suboptions as $getoptions)
@if($getoptions->subquestion_id == $getsubquestions->id)
{!! $getoptions ? $getoptions->options : "--" !!}
@endif
@endforeach
@endforeach
|
@endif
@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)
| Test case No |
Input |
Output |
Time |
Status |
Score |
@foreach($question->getTestCases as $testKey => $testValue)
| {!! $testKey+1 !!} |
{!! $testValue->input !!} |
{!! $testValue->output !!} |
{!! $testValue->time_limit !!} |
{!! $testValue->active_status !!} |
{!! $testValue->score !!} |
@endforeach
@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