From d66e72172eec420e9c79d034ad1feb6c863ca349 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Mon, 20 Jul 2026 13:44:48 +0530 Subject: [PATCH] Add COPD POB units form --- ...0572-2331-4f7a-98a2-12915e09735e.blade.php | 375 ++++++++++++++++++ 1 file changed, 375 insertions(+) create mode 100644 resources/views/form/rapport-copd/1784530104-4d4b0572-2331-4f7a-98a2-12915e09735e.blade.php diff --git a/resources/views/form/rapport-copd/1784530104-4d4b0572-2331-4f7a-98a2-12915e09735e.blade.php b/resources/views/form/rapport-copd/1784530104-4d4b0572-2331-4f7a-98a2-12915e09735e.blade.php new file mode 100644 index 00000000..c13dcb3a --- /dev/null +++ b/resources/views/form/rapport-copd/1784530104-4d4b0572-2331-4f7a-98a2-12915e09735e.blade.php @@ -0,0 +1,375 @@ + + + + @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + +
+ processing... +
+@php +$brandData = [ + [ + 'brand' => 'Voltido Trio', + 'slug' => 'voltido_trio_units' + ], + [ + 'brand' => 'Duolin Synchrobreathe', + 'slug' => 'duolin_synchrobreathe_units' + ], + [ + 'brand' => 'Voltido 200 Rotacaps', + 'slug' => 'voltido_200_rotacaps_units' + ], + [ + 'brand' => 'Voltido 100 Ciphaler', + 'slug' => 'voltido_100_ciphaler_units' + ] +]; +@endphp + +
+
+
+
+
+
+ + @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') + @case('date') + required == 'yes'?'required':'' }} value="{{isset($question->value)?$question->value:''}}"> + @break + @case('number') + required == 'yes'?'required':'' }} value="{{isset($question->value)?$question->value:0}}"> + @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($brandData as $brand) + + + + + + + + + + @endforeach + + + + + + + + + + + +
BrandPOB Units
{{ $brand['brand'] }} + + + +
Total POB Units + + + +
+ +
+ +@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