From 970cef567a55751b7087916576b94a5dcb3754f2 Mon Sep 17 00:00:00 2001 From: zeeshan Date: Mon, 8 Jun 2026 20:55:25 +0530 Subject: [PATCH] Arise (3 Forms) --- ...b702-e048-4499-9b87-95f9ae2d94d5.blade.php | 7 +- ...eb8b-4c93-4b76-958c-be343fd201c9.blade.php | 636 ++++++++++++++++++ ...eb14-e144-4667-84a8-32d939cf281a.blade.php | 39 +- 3 files changed, 668 insertions(+), 14 deletions(-) create mode 100644 resources/views/form/rapport-arise/1777355327-446feb8b-4c93-4b76-958c-be343fd201c9.blade.php diff --git a/resources/views/form/rapport-arise/1777029250-544db702-e048-4499-9b87-95f9ae2d94d5.blade.php b/resources/views/form/rapport-arise/1777029250-544db702-e048-4499-9b87-95f9ae2d94d5.blade.php index da74abc6..d0a537aa 100644 --- a/resources/views/form/rapport-arise/1777029250-544db702-e048-4499-9b87-95f9ae2d94d5.blade.php +++ b/resources/views/form/rapport-arise/1777029250-544db702-e048-4499-9b87-95f9ae2d94d5.blade.php @@ -425,7 +425,7 @@ e.preventDefault(); }) - $('#execution-msl_code,#execution-speciality,execution-plan_date').prop('readonly',true); + $('#execution-msl_code,#execution-speciality,#execution-plan_date').prop('readonly',true); let selected = JSON.parse($(this).attr('plan_details')); console.log("Plan Detail : ", selected); @@ -467,6 +467,9 @@ $('#execution-reason').parent().hide(); $('#execution-reason').prop('required',false); + var today = new Date().toISOString().split('T')[0]; + document.getElementById('execution-execution_date').max = today; + /* $('#execution-execution_done').on('change',function(){ let value=$(this).val(); console.log("Value is ",value); @@ -555,10 +558,12 @@ let typeValue=$('#execution-type_of_camp').val(); console.log("Type of Value : ",typeValue); if(typeValue==='In Clinic camp'){ + console.log("In Clinic Camp"); $('#execution-form').append(''); } else{ + console.log("Outreach Camp"); $('#execution-form').append(''); } diff --git a/resources/views/form/rapport-arise/1777355327-446feb8b-4c93-4b76-958c-be343fd201c9.blade.php b/resources/views/form/rapport-arise/1777355327-446feb8b-4c93-4b76-958c-be343fd201c9.blade.php new file mode 100644 index 00000000..150e7234 --- /dev/null +++ b/resources/views/form/rapport-arise/1777355327-446feb8b-4c93-4b76-958c-be343fd201c9.blade.php @@ -0,0 +1,636 @@ + + + + + @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 +
+

Dr Meeting (Planning and Execution)

+
+ @if (!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes')) +
+ @if ($form->link_type == 'form') + + + @else + Back + @endif +
+ @endif + + @php + $history = Formhelper::getMultiformData( + $form->partition, + $form->form_id, + $form->user_id, + ); + @endphp + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + @foreach (collect($history->data->submissions)->sortByDesc('formdata.record_date') as $sub) + @php + $sub->formdata->id = $sub->id; + + @endphp + + + + + + + + + + + + + + + + + + + + + @endforeach + +
Action.Plan DateExecution DoneCamp Execution DateType of meetLocationModule TypeMeeting DoneDr list submitted to HONo of Drs attended
+ + {{ $sub->formdata->plan_date }}{{ isset($sub->formdata->execution_done) && $sub->formdata->execution_done == 'yes' ? 'Yes' : 'No' }} + {{ $sub->formdata->execution_date }}{{ isset($sub->formdata->type_of_meet) ? $sub->formdata->type_of_meet : '' }}{{ isset($sub->formdata->location) ? $sub->formdata->location : '' }}{{ isset($sub->formdata->module_type) ? $sub->formdata->module_type : '' }}{{ isset($sub->formdata->meeting_done) ? $sub->formdata->meeting_done : '' }}{{ isset($sub->formdata->dr_list_submitted_to_ho) ? $sub->formdata->dr_list_submitted_to_ho : '' }}{{ isset($sub->formdata->no_of_drs_attended) ? $sub->formdata->no_of_drs_attended : '' }}
+
+ +
+ +
+
+ + @csrf + @if ($id) + + @endif + @foreach ($questions as $question) + @if (in_array($question->code, [ + 'execution_date', + 'meeting_done', + 'dr_list_submitted_to_ho', + 'no_of_drs_attended' + ])) + @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 + + @case('checkbox') + @foreach ($question->options as $option) +
+ value) && $question->value != '' && in_array($option->value, $question->value) ? 'checked' : '' }}> + +
+ @endforeach + @break + + @case('file') + + @break + @endswitch +
+ @endforeach + @if (!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes')) +
+ +
+ @endif +
+
+ +
+
+ + @csrf + + + @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('checkbox') + @foreach ($question->options as $option) +
+ value) && $question->value != '' && in_array($option->value, $question->value) ? 'checked' : '' }}> + +
+ @endforeach + @break + + @case('file') + + @break + @endswitch +
+ @endforeach + @if (!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes')) +
+ +
+ @endif +
+
+ +
+
+ + + + +
+
+ +
+ +
+ + + @include('layouts.shared/footer-script') + + + + + + diff --git a/resources/views/form/rapport-arise/1780568628-677ceb14-e144-4667-84a8-32d939cf281a.blade.php b/resources/views/form/rapport-arise/1780568628-677ceb14-e144-4667-84a8-32d939cf281a.blade.php index ab42aa3a..7f2d400a 100644 --- a/resources/views/form/rapport-arise/1780568628-677ceb14-e144-4667-84a8-32d939cf281a.blade.php +++ b/resources/views/form/rapport-arise/1780568628-677ceb14-e144-4667-84a8-32d939cf281a.blade.php @@ -416,7 +416,8 @@ e.preventDefault(); }) - $('#execution-msl_code,#execution-speciality,execution-plan_date').prop('readonly',true); + $('#execution-msl_code,#execution-speciality,#execution-plan_date').prop('readonly',true); + let selected = JSON.parse($(this).attr('plan_details')); console.log("Plan Detail : ", selected); @@ -458,6 +459,9 @@ $('#execution-reason').parent().hide(); $('#execution-reason').prop('required',false); + var today = new Date().toISOString().split('T')[0]; + document.getElementById('execution-execution_date').max = today; + /* $('#execution-execution_done').on('change',function(){ let value=$(this).val(); console.log("Value is ",value); @@ -476,14 +480,14 @@ } }) */ - $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx').parent().hide(); - $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx').attr('required',false); + $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx,#execution-foracort_g_rx').parent().hide(); + $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx,#execution-foracort_g_rx').attr('required',false); $('#execution-execution').on('change',function(){ let value=$('#execution-execution').val(); if(value==='Yes'){ - $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx').parent().show(); - $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx').attr('required',true); + $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx,#execution-foracort_g_rx').parent().show(); + $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx,#execution-foracort_g_rx').attr('required',true); $('#execution-reason').parent().hide(); $('#execution-reason').prop('required',false); $('#execution-form input.dynamic-hidden').remove(); @@ -492,8 +496,8 @@ } else{ - $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx').parent().hide(); - $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx').attr('required',false); + $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx,#execution-foracort_g_rx').parent().hide(); + $('#execution-execution_date,#execution-patient_screened,#execution-patients_diagnosed,#execution-foracort_rx,#execution-seroflo_rx,#execution-duolin_rx,#execution-aerocort_rx,#execution-glycohale_fb_rx,#execution-e_voltido_rx,#execution-e_foracort_g_rx,#execution-e_synchrobreathe_range_rx,#execution-foracort_g_rx').attr('required',false); $('#execution-reason').parent().show(); $('#execution-reason').prop('required',true); $('#execution-form input.dynamic-hidden').remove(); @@ -545,11 +549,13 @@ let typeValue=$('#execution-type_of_camp').val(); console.log("Type of Value : ",typeValue); - if(typeValue==='In Clinic camp'){ + if(typeValue==='In Clinic Camp'){ + console.log("In Clinic") $('#execution-form').append(''); } else{ + console.log("Outreach") $('#execution-form').append(''); } @@ -681,12 +687,15 @@ recordDateField.max = maxDate; recordDateField.value = todayFormatted; var executionDateField = document.getElementById('execution-plan_date'); - //executionDateField.setAttribute('min', today); - // $('.edit-btn').click(function() { - // var executionexeField = document.getElementById('execution-record_date'); - // executionexeField.setAttribute('min', executionDateField.value); - // }); + //executionDateField.setAttribute('min', today); + + + $('.edit-btn').click(function() { + var executionexeField = document.getElementById('execution-record_date'); + executionDateField.setAttribute('min', executionDateField.value); + + }); @@ -696,6 +705,10 @@ recordDateField.value = todayFormatted; executionexeField.setAttribute('min', executionDateField.value); }); + + + + });