@switch($question->answer_type) @case('text') @break @case('textarea') @break @case('custom_ui') @include('partials.custom_ui', ['question' => $question]) @break @case('select') @php $options = json_decode($question->options); @endphp @break @case('number') @break @case('checkbox') @php $options = json_decode($question->options, true); @endphp @foreach ($options ?? [] as $option)
Previously uploaded file:
{{ session('old_files.' . $question->id) }}Unknown question type
@endswitch