From 13c749b25d7c6debdc7f39d63ed8ff66c07e71fa Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Tue, 2 Jun 2026 16:13:54 +0530 Subject: [PATCH 1/3] New Form Created COPD New Form - Voltido RCPA Form --- ...680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php | 866 ++++++++++++++++++ 1 file changed, 866 insertions(+) create mode 100644 resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php diff --git a/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php b/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php new file mode 100644 index 00000000..9037e9d7 --- /dev/null +++ b/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php @@ -0,0 +1,866 @@ + + + + + @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 + + @php + $submissions = Formhelper::getMultiformData( $form->partition, $form_id, $form->user_id); + $submissions = $submissions->data->submissions; + + /* echo'
';
+                            print_r($submissions[0]);
+
+                            echo'
';*/ + + $submissions = Formhelper::getMultiformData( + $form->partition, + $form_id, + $form->user_id + ); + + $submissions = $submissions->data->submissions; + + $submittedDoctors = collect($submissions)->map(function ($item) { + + return $item->formdata->cont_id ?? null; + + })->filter()->unique()->values()->toArray(); + + + + + @endphp + + @if(count($submissions)===0 || $id) +
+ + @csrf + @if($id) + + @endif + @if(isset($form->manager_can_submit) && $form->manager_can_submit == true) +
+ + + +
+ @endif + @foreach($questions as $question) + @if( !in_array($question->code, + ["record_date","select_week","select_month"] ) ) + @continue; + @endif +
+ + @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 + @endswitch +
+ @endforeach + @php + $wrapperCount = $id ? 1 : 10; + @endphp + + @for($i = 0; $i < $wrapperCount; $i++) +
+ + @if($id) +
Edit Doctor
+ @else +
Doctor {{ $i + 1 }}
+ @endif + + @foreach($questions as $question) + + @if(in_array($question->code, + ["record_date"])) + @continue + @endif +
+ + @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') + @if ($question->code == 'contact_id') + + @else + + @endif + @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 +
+ + {{-- Added this Heading/label for brands --}} + @if($question->code == 'total_monthly_prescriptions_vilanterol_fluticasone') +
Enter Monthly Rx of Competition Brand
+ @endif + + @endforeach +
+ @endfor + + @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != + 'yes' ) ) +
+ @if(!$id) + + @endif + +
+ @endif +
+ @elseif(!$id) +

You have already submitted 10 Doctors, go to View History to Edit if required

+ @endif + +
+
+ + + + +
+
+ +
+ +
+ + + @include('layouts.shared/footer-script') + + + + + + From d67ac350dc44ea927c0942b1ffe67cc04b18354e Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Tue, 2 Jun 2026 16:54:49 +0530 Subject: [PATCH 2/3] Added date field in COPD form - Voltido RCPA Form --- .../1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php b/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php index 9037e9d7..70bcca48 100644 --- a/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php +++ b/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php @@ -150,7 +150,7 @@ @case('email') @case('tel') @case('date') - required == 'yes'?'required':'' }} value="{{isset($question->value)?$question->value:''}}"> @@ -213,7 +213,7 @@ @case('email') @case('tel') @case('date') - required == 'yes'?'required':'' }} value="{{isset($question->value)?$question->value:''}}"> From d733415e9ee69e20740655ff4454dda0b66ff74e Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Tue, 2 Jun 2026 17:19:17 +0530 Subject: [PATCH 3/3] Updated COPD Voltido form --- ...4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php b/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php index 70bcca48..3c94a4b8 100644 --- a/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php +++ b/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php @@ -147,6 +147,14 @@ value="{{isset($question->value)?$question->value:''}}"> @break @case('text') + code,['legacy_code','speciality']) ? 'readonly' : '' }}> + @break + @case('email') @case('tel') @case('date') @@ -210,6 +218,13 @@ value="{{isset($question->value)?$question->value:''}}"> @break @case('text') + code,['legacy_code','speciality']) ? 'readonly' : '' }}> + @break @case('email') @case('tel') @case('date')