code === 'amount_given') style="display:none;" @endif>
+
@switch($question->type)
@case('hidden')
@@ -80,104 +66,50 @@
@case('email')
@case('tel')
@case('date')
- @if($question->code === 'amount_given')
-
- @else
required == 'yes'?'required':'' }} value="{{isset($question->value)?$question->value:''}}">
- @endif
@break
@case('number')
- @if($question->code === 'amount_given')
-
- @else
required == 'yes'?'required':'' }} value="{{isset($question->value)?$question->value:0}}">
- @endif
@break
@case('textarea')
@break
@case('dropdown')
-
- @break
- @case('radio')
- @foreach($question->options as $option)
-
-
-
-
+
@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)
-
@endforeach
- @if($hcpQuestion)
-
-
-
-
-
-
- @if($pcodeQuestion)
-
-
-
-
- @endif
-
-
-
- @endif
@if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) )
@endif
-
-