From bff5a50c37aa8984179005201f5279dff0481b48 Mon Sep 17 00:00:00 2001 From: ravigulhane Date: Mon, 27 Jul 2026 09:46:21 +0000 Subject: [PATCH 1/4] Form Management Control - View Form Improvement (Manager View) --- resources/views/form/list.blade.php | 211 ++++++++++++++++++++++++---- 1 file changed, 182 insertions(+), 29 deletions(-) diff --git a/resources/views/form/list.blade.php b/resources/views/form/list.blade.php index 897d0fd2..05103308 100644 --- a/resources/views/form/list.blade.php +++ b/resources/views/form/list.blade.php @@ -19,8 +19,7 @@

{{$formname}}

- Download - +
@@ -116,6 +115,33 @@ + + + +
+ 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; + $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"] ) ) + @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 +
+

+ Doctor 1 +

+ + + + @foreach($questions as $question) + @if( in_array($question->code, + ["record_date","select_rxber_type"] ) ) + @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 == 'speciality') +
Enter Monthly Rx of Competition Brand
+ @endif + @endforeach +
+
+ +
+ @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != + 'yes' ) ) +
+ @if(!$id) + + @endif + +
+ @endif +
+ @elseif(!$id) +

+ You have already submitted {{ count($submissions) }} doctor(s). + Go to View History to edit if required. +

+ @endif +
+
+ + + + +
+
+ +
+ +
+ + + @include('layouts.shared/footer-script') + + + + + + From 43d812217d6d699fba2e4eb02b76e5a6647d8907 Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Thu, 30 Jul 2026 09:55:24 +0530 Subject: [PATCH 4/4] COPD: Changes in Voltido RCPA form --- ...d-49a3-913c-98d978cf22f1-history.blade.php | 131 ++++++++++++++++++ ...4330-0fad-49a3-913c-98d978cf22f1.blade.php | 40 +++--- 2 files changed, 154 insertions(+), 17 deletions(-) create mode 100644 resources/views/form/rapport-copd/1785317381-d72b4330-0fad-49a3-913c-98d978cf22f1-history.blade.php diff --git a/resources/views/form/rapport-copd/1785317381-d72b4330-0fad-49a3-913c-98d978cf22f1-history.blade.php b/resources/views/form/rapport-copd/1785317381-d72b4330-0fad-49a3-913c-98d978cf22f1-history.blade.php new file mode 100644 index 00000000..dcd8473f --- /dev/null +++ b/resources/views/form/rapport-copd/1785317381-d72b4330-0fad-49a3-913c-98d978cf22f1-history.blade.php @@ -0,0 +1,131 @@ + + + + @include('layouts.shared/title-meta', ['title' => "History"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + + + + + @include('layouts.shared/footer-script') + + \ No newline at end of file diff --git a/resources/views/form/rapport-copd/1785317381-d72b4330-0fad-49a3-913c-98d978cf22f1.blade.php b/resources/views/form/rapport-copd/1785317381-d72b4330-0fad-49a3-913c-98d978cf22f1.blade.php index 63a4e1b8..fbefe00c 100644 --- a/resources/views/form/rapport-copd/1785317381-d72b4330-0fad-49a3-913c-98d978cf22f1.blade.php +++ b/resources/views/form/rapport-copd/1785317381-d72b4330-0fad-49a3-913c-98d978cf22f1.blade.php @@ -304,8 +304,8 @@ @elseif(!$id)

- You have already submitted {{ count($submissions) }} doctor(s). - Go to View History to edit if required. + You have already submitted Voltido RCPA data for {{ count($submissions) }} Doctor(s). +

@endif @@ -704,6 +704,8 @@ preventDuplicateDoctors(filteredSubmittedDoctors); var doctor_count = 0 + let uniqueDoctorId = 0; + let numberOfSubmission=0; console.log("Number of Submission : ",numberOfSubmission); $('#adddoctor-btn').click(function() { @@ -719,13 +721,21 @@ preventDuplicateDoctors(filteredSubmittedDoctors); console.log("Doctor Name : ",doctorName); doctor_count++; - numberOfSubmission=numberOfSubmission+1; + uniqueDoctorId++; + numberOfSubmission++; console.log("Number of Submission : ",numberOfSubmission); + + + + /* ye Remove Button
ke nich tha...but abhi ke liye remove option nikal diya h */ let empty_doctor = `
- + + + +

Doctor ${doctor_count + 1}

@@ -739,7 +749,7 @@ preventDuplicateDoctors(filteredSubmittedDoctors);