@if ($data) @if (!is_null($data->sectionData)) @foreach ($data->sectionData as $key) @php $count = 0; @endphp @foreach ($data->questions['data'] as $element) @if ($key['id'] == $element['sectionId']) @php $count++; @endphp @if ($count < 2)
Section:{{ $key['name'] }}
@endif @switch($element['content']['questionType']) @case(1)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@break @case(2)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@break @case(3)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@foreach ($element['content']['options'] as $item) @endforeach
@break @case(4)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@foreach ($element['content']['options'] as $item) @endforeach
@break @case(5)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@foreach ($element['content']['options']['cols'] as $item) @endforeach @foreach ($element['content']['options']['rows'] as $key) @foreach ($element['content']['options']['cols'] as $value) @endforeach @endforeach
Row/Column
{{ $item['colData'] }}
{{ $key['rowData'] }}
@break @case(6)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@foreach ($element['content']['options']['cols'] as $item) @endforeach @foreach ($element['content']['options']['rows'] as $key) @foreach ($element['content']['options']['cols'] as $value) @endforeach @endforeach
Row/Column
{{ $item['colData'] }}
{{ $key['rowData'] }}
@break @case(7)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@break @case(8)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
# of Options Available:
@if (!empty($element['content']['options']['rows'])) @foreach ($element['content']['options']['rows'] as $item) @endforeach @endif
# of Options to Order:
@php $count = 0; @endphp @if (!empty($element['content']['options']['rows'])) @foreach ($element['content']['options']['rows'] as $item) @php $count++; @endphp @if ($count > $item['rowData']) @break @endif @endforeach @endif
@break @case(9)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@for ($i = 0; $i < (int)$element['content']['numOptions']; $i++) @endfor
{{ $element['content']['labelStart'] }} {{ $element['content']['labelEnd'] }}
@break @case(10)
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@break @default
Question({{ $element['content']['id'] }}):{{ $element['content']['question'] }}

{{ $element['content']['helpText'] }}
@endswitch @endif @endforeach @endforeach @endif @endif