diff --git a/resources/views/form/rapport-iva/1781611760-316ed831-b02a-49f1-8724-e60f9d966fb5.blade.php b/resources/views/form/rapport-iva/1781611760-316ed831-b02a-49f1-8724-e60f9d966fb5.blade.php new file mode 100644 index 00000000..8f2c12c7 --- /dev/null +++ b/resources/views/form/rapport-iva/1781611760-316ed831-b02a-49f1-8724-e60f9d966fb5.blade.php @@ -0,0 +1,368 @@ + + + + @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + +
+ processing... +
+ +
+
+
+
+
+
+ + @if(Session::has('error'))
{{Session::get('error')}}
+
@endif + @if(session('success'))
{{ session('success') }} +
+
@endif +
+

{{$form->title}}

+
+ @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) ) +
+ @if($form->link_type == 'form') + View History + @else + Back + @endif +
+ @endif + @if(isset($form->user_info)) +
+
Submitted By: {{$form->user_info->name}}
+
+ @endif +
+ + @csrf + @if($id) + + @endif + @if(isset($form->manager_can_submit) && $form->manager_can_submit == true) +
+ + + +
+ @endif + + @foreach($questions as $question) +
+ + @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' ) ) +
+ +
+ @endif +
+ +
+
+ + + + +
+
+ +
+ +
+ + +@include('layouts.shared/footer-script') + + + + + \ No newline at end of file diff --git a/resources/views/form/rapport-team4/1781090899-2cedf382-9fbb-45ac-896b-94de9104a11b.blade.php b/resources/views/form/rapport-team4/1781090899-2cedf382-9fbb-45ac-896b-94de9104a11b.blade.php index e4da92b1..e18a0ad8 100644 --- a/resources/views/form/rapport-team4/1781090899-2cedf382-9fbb-45ac-896b-94de9104a11b.blade.php +++ b/resources/views/form/rapport-team4/1781090899-2cedf382-9fbb-45ac-896b-94de9104a11b.blade.php @@ -33,6 +33,12 @@ 'nac + acebrophylline' => 'nac_acebrophylline', ]; + $categoryMoleculeUse = [ + 'erdosteine' => 'Erdosteine Prescriber', + 'erdosteine + acebrophylline' => 'Erdosteine + Acebrophylline', + 'nac + acebrophylline' => 'NAC + Acebrophylline', + ]; + $moleculeUseToCategory = [ 'erdosteine prescriber' => 'erdosteine', 'erdosteine' => 'erdosteine', @@ -183,10 +189,10 @@ @php $hideFields = [ - 'contact_id', 'rx_support', - 'other_molecule_use' + 'other_molecule_use', + 'molecule_use', ]; @endphp @@ -328,117 +334,72 @@ @endforeach @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) )
+ @php $globalRowIndex = 0; @endphp + @foreach($categoryAttributes as $categoryLabel => $categoryPrefix)
-
- {{--
-
Tagged Doctors
-
--}} -
-
- @php - $doctors = []; - - foreach($questions as $question){ - if($question->code == 'contact_id'){ - $doctors = $question->options ?? []; - break; - } - } - @endphp - - - - - - - - - - - - - @for($i=1; $i<=5; $i++) - - - - + + + + @php $globalRowIndex++; @endphp + @endfor + +
Doctor NameRxn/Week SupportOther Molecule Use
- + + + + + + + + + @for($i = 1; $i <= 5; $i++) + + - - - - - - - - @endfor - - -
Doctor NameRxn/Week SupportOther Molecule Use
+ - - - - - - -
+ +
+ + + +
+
-
- + @endforeach + - + @endif @@ -500,78 +461,61 @@ select option:disabled {