+
+ @switch($question->type)
+ @case('hidden')
+
+ @break
+ @case('text')
+ @case('email')
+ @case('tel')
+
required == 'yes'?'required':'' }}
+ {{ in_array($question->code, ['uid_code','sbu_code','value_plan']) ? 'readonly' : '' }}
+ value="{{isset($question->value)?$question->value:''}}">
+ @break
+ @case('date')
+
required == 'yes' ? 'required' : ''}}
+ max="{{ date('Y-m-d') }}"
+ value="{{ isset($question->value) ? $question->value : '' }}">
+ @break
+ @case('number')
+
required == 'yes'?'required':'' }}
+ value="{{isset($question->value)?$question->value:0}}"
+ {{$question->code == 'value_plan' ? 'readonly' : ''}}>
+ @break
+ @case('textarea')
+
+ @break
+ @case('dropdown')
+
+ @break
+ @case('radio')
+ @foreach($question->options as $option)
+
+
+
+
+ @endforeach
+ @break
+ @case('radiometrix')
+ @php
+ // Decode the first option's value to use as heading labels
+ $headings =
+ count($question->options) > 0
+ ? json_decode($question->options[0]->value)
+ : [];
+ @endphp
+
+ {{-- Matrix Wrapper with Horizontal Scroll on Small Screens --}}
+
+
+ {{-- Table Headers --}}
+
+
+ {{-- Placeholder for row labels --}}
+ @foreach ($headings as $head)
+
{{ $head }}
+
+ @endforeach
+
+
+ {{-- Table Rows --}}
+ @foreach ($question->options as $option)
+ @php $nn = json_decode($option->value); @endphp
+
+
+ {{ $option->display }}
+
+
+ @foreach ($nn as $value)
+
+ display) && $option->display != $option->display ? 'checked' : '' }}>
+
+
+ @endforeach
+
+ @endforeach
+
+
+ @break
+ @case('checkbox')
+ @foreach($question->options as $option)
+
+ value) && $question->value != '' && in_array($option->value, $question->value) ? 'checked':''}}>
+
+
+ @endforeach
+ @break
+ @case('file')
+ @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) )
+
required == 'yes'?'required':'' }}>
+ @elseif(isset($question->value))
+

+ @endif
+
+ @break
+ @case('multitextbox')
+
+ @foreach($question->options as $option)
+
{{$option->display}}
+
+
+
+ @endforeach
+
+ @break
+ @endswitch
+
+ @endforeach
+ @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) )
+