@php
$questionText = $question->getTranslatedQuestionText() ?? __('admin/survey.question_not_translated');
$typeCode = $question->questionType->type_code;
@endphp
{{ $questionText }}
@if($question->is_required)
*
@endif
@switch($typeCode)
@case('text')
@break
@case('textarea')
@break
@case('radio')
@case('yesno')
@php $options = $question->getOptions(); @endphp
@if(!empty($options))
@foreach($options as $index => $option)
@endforeach
@endif
@break
@case('checkbox')
@php $options = $question->getOptions(); @endphp
@if(!empty($options))
@foreach($options as $index => $option)
@endforeach
@endif
@break
@case('scale5')
@for($i = 1; $i <= 5; $i++)
@endfor
{{ __('admin/survey.scale_5_help') }}
@break
@case('scale10')
@for($i = 1; $i <= 10; $i++)
@endfor
{{ __('admin/survey.scale_10_help') }}
@break
@default
{{ __('admin/survey.preview_not_available') }}
@endswitch