From a942d57ac6e3208cc7c66bef42eb1d164e45ae29 Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Tue, 1 Sep 2026 16:36:26 +0530 Subject: [PATCH 01/20] IVA : Emprogest Planner Changes --- ...60-316ed831-b02a-49f1-8724-e60f9d966fb5.blade.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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 index ee755482..7e102b6c 100644 --- 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 @@ -340,16 +340,10 @@ event.preventDefault(); $("#pageloader").fadeIn(); @if($id) - $('#report-form').append(''); - $('#report-form').append(''); + $('#report-form').append(''); + $('#report-form').append(''); let sku_brand_map = sku_brand_maps.find(sb => sb.sku_code == $('#field-brand_sku').val()); - $('#report-form').append(''); - - @else - $('#report-form').append('') - $('#report-form').append('') - let sku_brand_map = sku_brand_maps.find(sb => sb.sku_code == $('#field-brand_sku').val()); - $('#report-form').append(''); + $('#report-form').append(''); @endif $.ajax({ From 25d94c96f479cfb31b75441dbc97fe2d1f3e42dd Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Wed, 2 Sep 2026 09:51:00 +0530 Subject: [PATCH 02/20] Zenova new form --- ...0b23-c3b5-4b9c-a2dd-681c5787a16c.blade.php | 5 +- ...3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php | 530 ++++++++++++++++++ 2 files changed, 534 insertions(+), 1 deletion(-) create mode 100644 resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php diff --git a/resources/views/form/rapport-demo/1706001346-9b6b0b23-c3b5-4b9c-a2dd-681c5787a16c.blade.php b/resources/views/form/rapport-demo/1706001346-9b6b0b23-c3b5-4b9c-a2dd-681c5787a16c.blade.php index d292f263..56cfb5c2 100644 --- a/resources/views/form/rapport-demo/1706001346-9b6b0b23-c3b5-4b9c-a2dd-681c5787a16c.blade.php +++ b/resources/views/form/rapport-demo/1706001346-9b6b0b23-c3b5-4b9c-a2dd-681c5787a16c.blade.php @@ -247,15 +247,18 @@ }); }); - var today = new Date(); + var today = new Date(); var dd = String(today.getDate()).padStart(2, '0'); var mm = String(today.getMonth() + 1).padStart(2, '0'); var yyyy = today.getFullYear(); + today = yyyy + '-' + mm + '-' + dd; var plandateField = document.getElementById('field-record_date'); + plandateField.setAttribute('min', today); plandateField.setAttribute('max', today); + plandateField.value = today; }); diff --git a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php new file mode 100644 index 00000000..04523008 --- /dev/null +++ b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php @@ -0,0 +1,530 @@ + + + + @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + + +
+ processing... +
+ + + + +@include('layouts.shared/footer-script') + + + + + + \ No newline at end of file From 293eae122251df823901b157e42d2970a7716638 Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Wed, 2 Sep 2026 09:57:42 +0530 Subject: [PATCH 03/20] Zenova : Glipiq & Sitazit Tracker form changes --- ...1-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php b/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php index 04523008..76e5cceb 100644 --- a/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php +++ b/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php @@ -267,11 +267,11 @@ '#field-vial_pob_units','#field-sankalp_lead_received_penvial', '#field-pmos_dr','#field-qbs_dr','#field-adboard_dr', '#field-fb_live_dr','#field-ecme_dr','#field-rtm_dr', - '#field-sankalp_lead_enrolled_penvial' + '#field-sankalp_lead_enrolled_penvial','#field-upload_glipiq_rxn' ].join(','); const sitazitFields = [ - '#field-rx_count','#field-pob_units','#field-brand_sku' + '#field-rx_count','#field-pob_units','#field-brand_sku', '#field-upload_sitazit_rxn' ].join(','); function toggleFields(selector, show) { @@ -301,12 +301,17 @@ $('#field-select_brand').on('change', function () { let file = this.files[0]; if (file) { - let allowedTypes = ['image/png', 'image/jpg', 'image/jpeg']; + let allowedTypes = [ + 'application/pdf', + 'image/png', + 'image/jpg', + 'image/jpeg' + ]; let maxSize = 10 * 1024 * 1024; // 10 MB // Type validation if (!allowedTypes.includes(file.type)) { - alert('Only PNG, JPG, and JPEG files are allowed.'); + alert('Only PDF, PNG, JPG and JPEG files are allowed.'); $(this).val(''); return; } From 128c100ac73672b738d5298e958ffa82ea7d3dd3 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Wed, 2 Sep 2026 10:19:27 +0530 Subject: [PATCH 04/20] Zenova new form changes --- ...3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php | 178 +++++++++--------- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php index 04523008..31c1efc8 100644 --- a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php +++ b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php @@ -83,7 +83,7 @@ @case('dropdown') ' + // ); + // } + // }); - $('#field-sankalp_lead_enrolled_penvial').on('change', function () { - let value = $(this).val(); + // $('#field-sankalp_lead_enrolled_penvial').on('change', function () { + // let value = $(this).val(); - // Pehle existing hidden input hata do - $('input[name="sankalp_enrolled"]').remove(); + // // Pehle existing hidden input hata do + // $('input[name="sankalp_enrolled"]').remove(); - // Sirf Yes pe value bhejo - if (value === 'Yes') { - $('#report-form').append( - '' - ); - } - }); + // // Sirf Yes pe value bhejo + // if (value === 'Yes') { + // $('#report-form').append( + // '' + // ); + // } + // }); - $('#field-pmos_dr').on('change', function () { - let value = $(this).val(); + // $('#field-pmos_dr').on('change', function () { + // let value = $(this).val(); - // Pehle existing hidden input hata do - $('input[name="pmos_dr"]').remove(); + // // Pehle existing hidden input hata do + // $('input[name="pmos_dr"]').remove(); - // Sirf Yes pe value bhejo - if (value === 'Yes') { - $('#report-form').append( - '' - ); - } - }); + // // Sirf Yes pe value bhejo + // if (value === 'Yes') { + // $('#report-form').append( + // '' + // ); + // } + // }); - $('#field-qbs_dr').on('change', function () { - let value = $(this).val(); + // $('#field-qbs_dr').on('change', function () { + // let value = $(this).val(); - // Pehle existing hidden input hata do - $('input[name="qbs_dr"]').remove(); + // // Pehle existing hidden input hata do + // $('input[name="qbs_dr"]').remove(); - // Sirf Yes pe value bhejo - if (value === 'Yes') { - $('#report-form').append( - '' - ); - } - }); + // // Sirf Yes pe value bhejo + // if (value === 'Yes') { + // $('#report-form').append( + // '' + // ); + // } + // }); - $('#field-adboard_dr').on('change', function () { - let value = $(this).val(); + // $('#field-adboard_dr').on('change', function () { + // let value = $(this).val(); - // Pehle existing hidden input hata do - $('input[name="adboard_dr"]').remove(); + // // Pehle existing hidden input hata do + // $('input[name="adboard_dr"]').remove(); - // Sirf Yes pe value bhejo - if (value === 'Yes') { - $('#report-form').append( - '' - ); - } - }); + // // Sirf Yes pe value bhejo + // if (value === 'Yes') { + // $('#report-form').append( + // '' + // ); + // } + // }); - $('#field-fb_live_dr').on('change', function () { - let value = $(this).val(); + // $('#field-fb_live_dr').on('change', function () { + // let value = $(this).val(); - // Pehle existing hidden input hata do - $('input[name="fb_live_dr"]').remove(); + // // Pehle existing hidden input hata do + // $('input[name="fb_live_dr"]').remove(); - // Sirf Yes pe value bhejo - if (value === 'Yes') { - $('#report-form').append( - '' - ); - } - }); + // // Sirf Yes pe value bhejo + // if (value === 'Yes') { + // $('#report-form').append( + // '' + // ); + // } + // }); - $('#field-ecme_dr').on('change', function () { - let value = $(this).val(); + // $('#field-ecme_dr').on('change', function () { + // let value = $(this).val(); - // Pehle existing hidden input hata do - $('input[name="ecme_dr"]').remove(); + // // Pehle existing hidden input hata do + // $('input[name="ecme_dr"]').remove(); - // Sirf Yes pe value bhejo - if (value === 'Yes') { - $('#report-form').append( - '' - ); - } - }); + // // Sirf Yes pe value bhejo + // if (value === 'Yes') { + // $('#report-form').append( + // '' + // ); + // } + // }); - $('#field-rtm_dr').on('change', function () { - let value = $(this).val(); + // $('#field-rtm_dr').on('change', function () { + // let value = $(this).val(); - // Pehle existing hidden input hata do - $('input[name="rtm_dr"]').remove(); + // // Pehle existing hidden input hata do + // $('input[name="rtm_dr"]').remove(); - // Sirf Yes pe value bhejo - if (value === 'Yes') { - $('#report-form').append( - '' - ); - } - }); + // // Sirf Yes pe value bhejo + // if (value === 'Yes') { + // $('#report-form').append( + // '' + // ); + // } + // }); From a7ad163299384130eb219e89a137f001b0ee2a8b Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Wed, 2 Sep 2026 10:24:38 +0530 Subject: [PATCH 05/20] Zenova : Glipiq & Sitazit Tracker form changes 1 --- ...7826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php b/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php index 76e5cceb..917062c5 100644 --- a/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php +++ b/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php @@ -297,26 +297,24 @@ $('#field-select_brand').on('change', function () { - $('#field-file_upload').on('change', function () { + $('#field-file_upload, #field-upload_sitazit_rxn, #field-upload_glipiq_rxn').on('change', function () { let file = this.files[0]; if (file) { let allowedTypes = [ 'application/pdf', 'image/png', - 'image/jpg', 'image/jpeg' - ]; + ]; + let maxSize = 10 * 1024 * 1024; // 10 MB - // Type validation if (!allowedTypes.includes(file.type)) { alert('Only PDF, PNG, JPG and JPEG files are allowed.'); $(this).val(''); return; } - // Size validation if (file.size > maxSize) { alert('File size should not exceed 10 MB.'); $(this).val(''); From 55389f3541e0bb7abbd6b82b0f612ed4fe2d2ccb Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Wed, 2 Sep 2026 10:26:23 +0530 Subject: [PATCH 06/20] Zenova new form changes --- .../1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php index 31c1efc8..2ed45fff 100644 --- a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php +++ b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php @@ -83,7 +83,7 @@ @case('dropdown') ' ); } - }); + });*/ From cb88cd2cc123e7be4d451fc45991f4aa25b9721e Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Wed, 2 Sep 2026 11:36:11 +0530 Subject: [PATCH 09/20] Zenova new form changes1 --- ...28-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php index bb383b45..b53cc6ed 100644 --- a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php +++ b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php @@ -96,7 +96,17 @@ {{ $option->display }} @elseif($question->code != 'contact_id') - @endif From 5fe093d7e123378143df62e353914c26f4e0b330 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Wed, 2 Sep 2026 13:03:04 +0530 Subject: [PATCH 10/20] Zenova new form changes2 --- ...3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php | 377 +++++++++++++----- 1 file changed, 277 insertions(+), 100 deletions(-) diff --git a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php index b53cc6ed..32724a32 100644 --- a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php +++ b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php @@ -91,22 +91,22 @@ @if($question->code == 'contact_id') msl_code="{{ (isset($option->contact->msl_code) ? $option->contact->msl_code : '') }}" speciality="{{ (isset($option->contact->speciality) ? $option->contact->speciality : '') }}" + lead_recieved="{{ (isset($option->contact->sankalp_lead_received_penvial) ? $option->contact->sankalp_lead_received_penvial : '') }}" + lead_enrolled="{{ (isset($option->contact->sankalp_lead_enrolled_penvial) ? $option->contact->sankalp_lead_enrolled_penvial : '') }}" + pmos_dr="{{ (isset($option->contact->pmos_dr) ? $option->contact->pmos_dr : '') }}" + qbs_dr="{{ (isset($option->contact->qbs_dr) ? $option->contact->qbs_dr : '') }}" + adboard_dr="{{ (isset($option->contact->adboard_dr) ? $option->contact->adboard_dr : '') }}" + fb_live_dr="{{ (isset($option->contact->fb_live_dr) ? $option->contact->fb_live_dr : '') }}" + ecme_dr="{{ (isset($option->contact->ecme_dr) ? $option->contact->ecme_dr : '') }}" + rtm_dr="{{ (isset($option->contact->rtm_dr) ? $option->contact->rtm_dr : '') }}" + + @endif > {{ $option->display }} @elseif($question->code != 'contact_id') - @endif @@ -241,6 +241,41 @@ $('#field-msl_code').val($('option:selected', this).attr('msl_code')) }) + $('#field-contact_id').change(function() { + $('#field-sankalp_lead_received_penvial').val($('option:selected', this).attr('lead_recieved')) + }) + + $('#field-contact_id').change(function() { + $('#field-sankalp_lead_enrolled_penvial').val($('option:selected', this).attr('lead_enrolled')) + }) + + $('#field-contact_id').change(function() { + $('#field-pmos_dr').val($('option:selected', this).attr('pmos_dr')) + }) + + $('#field-contact_id').change(function() { + $('#field-qbs_dr').val($('option:selected', this).attr('qbs_dr')) + }) + + + $('#field-contact_id').change(function() { + $('#field-adboard_dr').val($('option:selected', this).attr('adboard_dr')) + }) + + $('#field-contact_id').change(function() { + $('#field-fb_live_dr').val($('option:selected', this).attr('fb_live_dr')) + }) + + $('#field-contact_id').change(function() { + $('#field-ecme_dr').val($('option:selected', this).attr('ecme_dr')) + }) + + $('#field-contact_id').change(function() { + $('#field-rtm_dr').val($('option:selected', this).attr('rtm_dr')) + }) + + + $('#field-msl_code,#field-speciality').attr('readonly',true); /* $('#field-pen_rx_count,#field-vial_rx_count,#field-pen_pob_units,#field-vial_pob_units,#field-sankalp_lead_received_penvial,#field-pmos_dr,#field-qbs_dr,#field-adboard_dr,#field-fb_live_dr,#field-ecme_dr,#field-rtm_dr,#field-sankalp_lead_enrolled_penvial').parent().hide(); @@ -354,121 +389,263 @@ $('#field-select_brand').on('change', function () { $('#field-select_brand').trigger('change'); }); - // $('#field-sankalp_lead_received_penvial').on('change', function () { - // let value = $(this).val(); + /*$('#field-sankalp_lead_received_penvial').on('change', function () { + let value = $(this).val(); - // // Pehle existing hidden input hata do - // $('input[name="sankalp_recieved"]').remove(); + // Pehle existing hidden input hata do + $('input[name="sankalp_recieved"]').remove(); - // // Sirf Yes pe value bhejo - // if (value === 'Yes') { - // $('#report-form').append( - // '' - // ); - // } - // }); + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); - // $('#field-sankalp_lead_enrolled_penvial').on('change', function () { - // let value = $(this).val(); + $('#field-sankalp_lead_enrolled_penvial').on('change', function () { + let value = $(this).val(); - // // Pehle existing hidden input hata do - // $('input[name="sankalp_enrolled"]').remove(); + // Pehle existing hidden input hata do + $('input[name="sankalp_enrolled"]').remove(); - // // Sirf Yes pe value bhejo - // if (value === 'Yes') { - // $('#report-form').append( - // '' - // ); - // } - // }); + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); - // $('#field-pmos_dr').on('change', function () { - // let value = $(this).val(); + $('#field-pmos_dr').on('change', function () { + let value = $(this).val(); - // // Pehle existing hidden input hata do - // $('input[name="pmos_dr"]').remove(); + // Pehle existing hidden input hata do + $('input[name="pmos_dr"]').remove(); - // // Sirf Yes pe value bhejo - // if (value === 'Yes') { - // $('#report-form').append( - // '' - // ); - // } - // }); + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); - // $('#field-qbs_dr').on('change', function () { - // let value = $(this).val(); + $('#field-qbs_dr').on('change', function () { + let value = $(this).val(); - // // Pehle existing hidden input hata do - // $('input[name="qbs_dr"]').remove(); + // Pehle existing hidden input hata do + $('input[name="qbs_dr"]').remove(); - // // Sirf Yes pe value bhejo - // if (value === 'Yes') { - // $('#report-form').append( - // '' - // ); - // } - // }); + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); - // $('#field-adboard_dr').on('change', function () { - // let value = $(this).val(); + $('#field-adboard_dr').on('change', function () { + let value = $(this).val(); - // // Pehle existing hidden input hata do - // $('input[name="adboard_dr"]').remove(); + // Pehle existing hidden input hata do + $('input[name="adboard_dr"]').remove(); - // // Sirf Yes pe value bhejo - // if (value === 'Yes') { - // $('#report-form').append( - // '' - // ); - // } - // }); + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); - // $('#field-fb_live_dr').on('change', function () { - // let value = $(this).val(); + $('#field-fb_live_dr').on('change', function () { + let value = $(this).val(); - // // Pehle existing hidden input hata do - // $('input[name="fb_live_dr"]').remove(); + // Pehle existing hidden input hata do + $('input[name="fb_live_dr"]').remove(); - // // Sirf Yes pe value bhejo - // if (value === 'Yes') { - // $('#report-form').append( - // '' - // ); - // } - // }); + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); - // $('#field-ecme_dr').on('change', function () { - // let value = $(this).val(); + $('#field-ecme_dr').on('change', function () { + let value = $(this).val(); - // // Pehle existing hidden input hata do - // $('input[name="ecme_dr"]').remove(); + // Pehle existing hidden input hata do + $('input[name="ecme_dr"]').remove(); - // // Sirf Yes pe value bhejo - // if (value === 'Yes') { - // $('#report-form').append( - // '' - // ); - // } - // }); + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); - // $('#field-rtm_dr').on('change', function () { - // let value = $(this).val(); + $('#field-rtm_dr').on('change', function () { + let value = $(this).val(); - // // Pehle existing hidden input hata do - // $('input[name="rtm_dr"]').remove(); + // Pehle existing hidden input hata do + $('input[name="rtm_dr"]').remove(); - // // Sirf Yes pe value bhejo - // if (value === 'Yes') { - // $('#report-form').append( - // '' - // ); - // } - // }); + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + });*/ - + // ===================================================== +// FETCH PREVIOUS SUBMISSION FOR SELECTED DOCTOR +// ONLY FOR THIS FORM +// ===================================================== + +const targetFormId = '1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a'; + +$('#field-contact_id').on('change.previousData', function () { + + const currentFormId = $('input[name="form_id"]').val(); + + // Run only for this form + if (currentFormId !== targetFormId) { + return; + } + + const doctorId = $(this).val(); + + if (!doctorId) { + return; + } + + const userId = $('#field-user_id').val(); + const partition = '{{ $form->partition }}'; + + if (!userId) { + return; + } + + $("#pageloader").fadeIn(); + + $.ajax({ + type: "POST", + url: "/form/getformfielddata", + + data: { + _token: $('input[name="_token"]').val(), + form_id: targetFormId, + user_id: userId, + partition: partition, + + // We are NOT looking for a particular date. + // We want all previous submissions. + record_date: '' + }, + + success: function (response) { + + $("#pageloader").fadeOut(); + + if ( + !response.submissions || + !Array.isArray(response.submissions) + ) { + return; + } + + // ========================================== + // FIND PREVIOUS SUBMISSIONS FOR THIS DOCTOR + // ========================================== + + const doctorSubmissions = response.submissions.filter(function (submission) { + + if (!submission.formdata) { + return false; + } + + return String(submission.formdata.contact_id || '') === String(doctorId); + }); + + if (doctorSubmissions.length === 0) { + + // No previous data for this doctor + return; + } + + // ========================================== + // GET LATEST SUBMISSION + // ========================================== + + doctorSubmissions.sort(function (a, b) { + + const dateA = new Date( + a.updatedAt || a.createdAt || 0 + ); + + const dateB = new Date( + b.updatedAt || b.createdAt || 0 + ); + + return dateB - dateA; + }); + + const previousData = doctorSubmissions[0].formdata; + + // ========================================== + // AUTO POPULATE ALL PREVIOUS FIELDS + // ========================================== + + Object.keys(previousData).forEach(function (fieldCode) { + + const field = $('#field-' + fieldCode); + + if (!field.length) { + return; + } + + // Don't change the selected doctor + if (fieldCode === 'contact_id') { + return; + } + + // Don't populate file inputs + if (field.attr('type') === 'file') { + return; + } + + const value = previousData[fieldCode]; + + if (value === null || value === undefined) { + return; + } + + field.val(value); + + // Important for dropdowns such as Select Brand + field.trigger('change'); + }); + + }, + + error: function (xhr) { + + $("#pageloader").fadeOut(); + + console.log( + "Failed to fetch previous submission:", + xhr.responseText + ); + } + }); + +}); $('#report-form').on('submit', function(event){ event.preventDefault(); From 254336413c967f96427b93d44fc94834fd6214ee Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Wed, 2 Sep 2026 16:29:26 +0530 Subject: [PATCH 11/20] Team3 : Doctor Activities for Neb 2 changes --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 8c40024e..53c07b80 100644 --- a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -103,6 +103,18 @@
@csrf + @if(isset($form->manager_can_submit) && $form->manager_can_submit == true) +
+ + + +
+ @endif @foreach ($questions as $question) @if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules'])) @continue @@ -401,6 +413,36 @@ }) jQuery(document).ready(function($) { + $('#field-user_id').change(function(){ + let hierarchy = $('option:selected', this).attr('hierarchy'); + $('#field-hierarchy_id').val(hierarchy) + event.preventDefault(); + $("#pageloader").fadeIn(); + $.ajax({ + type: "GET", + url: '/form/getdoctorlist?partition={{$form->partition}}&hierarchy='+hierarchy, + processData: false, + contentType: false, + success: function( data ) { + $("#pageloader").fadeOut(); + $('#field-contact_id').html('') + $('#field-contact_id').append($("").attr("value",'').text('-- Select --')); + for (let itm of data) { + $('#field-contact_id').append($("").attr("value",itm.value).text(itm.display).attr("msl_code", itm.contact.msl_code).attr('speciality',itm.contact.speciality)); + } + + $('#field-contact_id').change(function() { + $('#field-msl_code').val($('option:selected', this).attr('msl_code')) + }) + + $('#field-contact_id').change(function() { + $('#field-speciality').val($('option:selected', this).attr('speciality')) + }) + }, + }); + + console.log(hierarchy) + }) $('#report-form').on('submit', function(event) { event.preventDefault(); $("#pageloader").fadeIn(); From 47dde3c499743a4027812cc46ddd68a73b39f148 Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Wed, 2 Sep 2026 17:55:43 +0530 Subject: [PATCH 12/20] Team3 : Doctor Activities for Neb 2 changes 1 --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 101 +++++++++++++++--- 1 file changed, 84 insertions(+), 17 deletions(-) diff --git a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 53c07b80..dd543459 100644 --- a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -61,10 +61,10 @@ {{-- Team Name --}} Type of meeting Execution Date - Name of speaker + {{-- Name of speaker --}} MSL Code Speciality - No. og Doctors/Paramedics attended + No. of Doctors/Paramedics attended @@ -86,7 +86,7 @@ {{-- {{ $sub->formdata->team_name }} --}} {{ $sub->formdata->type_of_meeting }} {{ $sub->formdata->record_date }} - {{ $sub->formdata->name_of_the_speaker }} + {{-- {{$sub->formdata->name_of_the_speaker }} --}} {{ $sub->formdata->msl_code }} {{ $sub->formdata->speciality }} {{ $sub->formdata->attendence }} @@ -116,7 +116,7 @@ @endif @foreach ($questions as $question) - @if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules'])) + @if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules','other_msl_code','other_speciality'])) @continue @endif
@@ -234,15 +234,27 @@ @break @case('dropdown') - + @break @case('checkbox') @@ -368,10 +380,31 @@ $('.edit-btn').click(function() { let selected = JSON.parse($(this).attr('plan_details')) - for (let k of Object.keys(selected)) { + /*for (let k of Object.keys(selected)) { if (selected[k] != '') $('#execution-' + k).val(selected[k]); - } + }*/ + for (let k of Object.keys(selected)) { + if (selected[k] != '') { + if (k == 'name_of_the_speaker') { + console.log('cc',selected[k]); + $('#execution-name_of_the_speaker').val($("#execution-name_of_the_speaker option:contains(" + + selected[k] + ")").attr('value')); + } else { + $('#execution-' + k).val(selected[k]); + } + } + } + + let docid = $('#execution-name_of_the_speaker option').map(function() { + if ($(this).text().trim() == selected['name_of_the_speaker']) return this; + }).attr('value') + + $('#execution-name_of_the_speaker').val(docid) + $('#execution-id').val(selected['id']) + + + $('#execution-id').val(selected['id']) $('#form-wrapper').hide() $('#execution-form-wrapper').show() @@ -395,6 +428,10 @@ } }) + $('#execution-other_msl_code,#execution-other_speciality').parent().hide(); + $('#execution-other_msl_code,#execution-other_speciality').attr('required',false); + + let type_of_meet=$('#execution-type_of_meeting').val(); console.log("Type of Meet without change",type_of_meet); @@ -410,7 +447,33 @@ $('label[for="execution-name_of_the_speaker"]').html('Name of the speaker'); } + + $('#execution-name_of_the_speaker').change(function() { + $('#execution-msl_code').val($('option:selected', this).attr('msl_code')) + }) + + $('#execution-name_of_the_speaker').change(function() { + $('#execution-speciality').val($('option:selected', this).attr('speciality')) + }) }) + $('#execution-msl_code,#execution-speciality').attr('readonly',true); + + $('#execution-name_of_the_speaker').change(function() { + let value=$(this).val(); + if(value==='other'){ + $('#execution-other_msl_code,#execution-other_speciality').parent().show(); + $('#execution-other_msl_code,#execution-other_speciality').attr('required',true); + + $('#execution-msl_code,#execution-speciality').parent().hide(); + $('#execution-msl_code,#execution-speciality').attr('required',false); + } + else{ + $('#execution-other_msl_code,#execution-other_speciality').parent().hide(); + $('#execution-other_msl_code,#execution-other_speciality').attr('required',false); + $('#execution-msl_code,#execution-speciality').parent().show(); + $('#execution-msl_code,#execution-speciality').attr('required',true); + } + }) jQuery(document).ready(function($) { $('#field-user_id').change(function(){ @@ -431,11 +494,11 @@ $('#field-contact_id').append($("").attr("value",itm.value).text(itm.display).attr("msl_code", itm.contact.msl_code).attr('speciality',itm.contact.speciality)); } - $('#field-contact_id').change(function() { + $('#field-name_of_the_speaker').change(function() { $('#field-msl_code').val($('option:selected', this).attr('msl_code')) }) - $('#field-contact_id').change(function() { + $('#field-name_of_the_speaker').change(function() { $('#field-speciality').val($('option:selected', this).attr('speciality')) }) }, @@ -443,6 +506,10 @@ console.log(hierarchy) }) + + + + $('#report-form').on('submit', function(event) { event.preventDefault(); $("#pageloader").fadeIn(); From 2fbe2cefc3079c309a0d421c7ee6c6b5b77d51f2 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Thu, 3 Sep 2026 17:13:12 +0530 Subject: [PATCH 13/20] Team 3 Doctor Activities for Neb 2 form changes --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 44 ++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index dd543459..7b544e0c 100644 --- a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -116,7 +116,7 @@
@endif @foreach ($questions as $question) - @if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules','other_msl_code','other_speciality'])) + @if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules','other_msl_code','other_speciality','other_speaker_name'])) @continue @endif
@@ -247,6 +247,21 @@ @endif @endforeach + + @elseif ($question->code == 'other_speaker_name') + @foreach ($question->options as $option) + @if( + !isset($option->contact->doctor_activities_for_neb_2_top_30_next_30_doctors) || + $option->contact->doctor_activities_for_neb_2_top_30_next_30_doctors === null + ) + + @endif + @endforeach + @else @foreach ($question->options as $option)
@endif @foreach ($questions as $question) - @if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules','other_msl_code','other_speciality','other_speaker_name'])) + @if (in_array($question->code, ['record_date', 'attendence','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules'])) @continue @endif
@@ -155,14 +155,40 @@ @break @case('dropdown') - required == 'yes' ? 'required' : '' }}> - @foreach ($question->options as $option) - - @endforeach + @if ($question->code == 'name_of_the_speaker') + @foreach ($question->options as $option) + @if( isset($option->contact->doctor_activities_for_neb_2_top_30_next_30_doctors) && $option->contact->doctor_activities_for_neb_2_top_30_next_30_doctors == 'Yes' ) + + @endif + @endforeach + + + @elseif ($question->code == 'other_speaker_name') + @foreach ($question->options as $option) + @if(!isset($option->contact->doctor_activities_for_neb_2_top_30_next_30_doctors) || + $option->contact->doctor_activities_for_neb_2_top_30_next_30_doctors === null + ) + + @endif + @endforeach + + @else + @foreach ($question->options as $option) + + @endforeach + @endif @break @@ -235,41 +261,40 @@ @case('dropdown') + {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}> + {{ $option->display }} + + @endif + @endforeach + + @else + @foreach ($question->options as $option) + + @endforeach + @endif + @break @case('checkbox') @@ -393,6 +418,47 @@ $('#execution-form-wrapper').hide() }) + + $('#field-msl_code,#field-speciality,#field-other_msl_code,#field-other_speciality').attr('readonly',true); + + $('#field-name_of_the_speaker').change(function() { + let value=$(this).val(); + if(value==='other'){ + $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name').parent().show(); + $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name').attr('required',true); + + $('#field-msl_code,#field-speciality').parent().hide(); + $('#field-msl_code,#field-speciality').attr('required',false); + } + else{ + $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name').parent().hide(); + $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name').attr('required',false); + $('#field-msl_code,#field-speciality').parent().show(); + $('#field-msl_code,#field-speciality').attr('required',true); + } + }) + + $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name').parent().hide(); + $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name').attr('required',false); + + $('#field-name_of_the_speaker').change(function() { + $('#field-msl_code').val($('option:selected', this).attr('msl_code')) + }) + + $('#field-name_of_the_speaker').change(function() { + $('#field-speciality').val($('option:selected', this).attr('speciality')) + }) + + $('#field-other_speaker_name').change(function() { + $('#field-other_msl_code').val($('option:selected', this).attr('msl_code')) + }) + + $('#field-other_speaker_name').change(function() { + $('#field-other_speciality').val($('option:selected', this).attr('speciality')) + }) + + + $('.edit-btn').click(function() { let selected = JSON.parse($(this).attr('plan_details')) /*for (let k of Object.keys(selected)) { @@ -450,7 +516,7 @@ let type_of_meet=$('#execution-type_of_meeting').val(); console.log("Type of Meet without change",type_of_meet); - if(type_of_meet==='Asthma camp'){ + if(type_of_meet==='GNP Camp'){ $('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().show(); $('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',true); $('label[for="execution-name_of_the_speaker"]').html('Name of the Speaker (Pedia or GP only) '); @@ -463,26 +529,11 @@ } - $('#execution-name_of_the_speaker').change(function() { - $('#execution-msl_code').val($('option:selected', this).attr('msl_code')) - }) - $('#execution-name_of_the_speaker').change(function() { - $('#execution-speciality').val($('option:selected', this).attr('speciality')) - }) - - $('#execution-other_speaker_name').change(function() { - $('#execution-other_msl_code').val($('option:selected', this).attr('msl_code')) - }) - - $('#execution-other_speaker_name').change(function() { - $('#execution-other_speciality').val($('option:selected', this).attr('speciality')) - }) - }) - $('#execution-msl_code,#execution-speciality,#execution-other_msl_code,#execution-other_speciality').attr('readonly',true); + $('#execution-msl_code,#execution-speciality,#execution-other_msl_code,#execution-other_speciality').attr('readonly',true); - $('#execution-name_of_the_speaker').change(function() { + $('#execution-name_of_the_speaker').change(function() { let value=$(this).val(); if(value==='other'){ $('#execution-other_msl_code,#execution-other_speciality,#execution-other_speaker_name').parent().show(); @@ -497,7 +548,7 @@ $('#execution-msl_code,#execution-speciality').parent().show(); $('#execution-msl_code,#execution-speciality').attr('required',true); } - }) + }) jQuery(document).ready(function($) { $('#field-user_id').change(function(){ diff --git a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php new file mode 100644 index 00000000..7b22617a --- /dev/null +++ b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -0,0 +1,450 @@ + + + + + @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + + +
+ processing... +
+ + + +@php +// echo "
";
+// print_r($submitted_formdata);
+// echo "
"; +$skuData = []; + +foreach($questions as $q){ + if($q->code === 'sku'){ + foreach($q->options as $opt){ + $skuData[$opt->value] = $opt->submitted_value ?? 0; + } + } +} + +@endphp + + + + + + + + @include('layouts.shared/footer-script') + + + + + + \ No newline at end of file From 5b80c8a571dd4d170050e04cc25c1ad3a4547f58 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Thu, 3 Sep 2026 17:42:59 +0530 Subject: [PATCH 15/20] Team 3 Doctor Activities for Neb 2 form changes 2 --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 451 +----------------- 1 file changed, 1 insertion(+), 450 deletions(-) diff --git a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 7b22617a..4de2f126 100644 --- a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -1,450 +1 @@ - - - - - @include('layouts.shared/title-meta', ['title' => "Form"]) - @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) - - - -
- processing... -
- - - -@php -// echo "
";
-// print_r($submitted_formdata);
-// echo "
"; -$skuData = []; - -foreach($questions as $q){ - if($q->code === 'sku'){ - foreach($q->options as $opt){ - $skuData[$opt->value] = $opt->submitted_value ?? 0; - } - } -} - -@endphp - - - - - - - - @include('layouts.shared/footer-script') - - - - - - \ No newline at end of file +preview \ No newline at end of file From 4a0bcda7e9942b6c5f72011a12fa0ca20f9ca348 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Thu, 3 Sep 2026 17:47:12 +0530 Subject: [PATCH 16/20] Team 3 Doctor Activities for Neb 2 form changes 3 --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 280 +++++++++++++++++- 1 file changed, 279 insertions(+), 1 deletion(-) diff --git a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 4de2f126..4f8e721b 100644 --- a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -1 +1,279 @@ -preview \ No newline at end of file + + + + @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + +
+ processing... +
+ + + + +@include('layouts.shared/footer-script') + + + + + \ No newline at end of file From b83850aa3701c8b28cd9094b6576ca7369af3dde Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Thu, 3 Sep 2026 17:50:26 +0530 Subject: [PATCH 17/20] Team 3 Doctor Activities for Neb 2 form changes 3 --- ...w-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 4f8e721b..15c2bbdd 100644 --- a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -58,6 +58,9 @@ @endif @foreach($questions as $question) + @if (in_array($question->code, ['record_date', 'attendence','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules'])) + @continue + @endif
@switch($question->type) From 9ea61fd5cc167f8d1840dc71917bc7cdb7c30f91 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Thu, 3 Sep 2026 17:53:32 +0530 Subject: [PATCH 18/20] Team 3 Doctor Activities for Neb 2 form changes 3 --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 623 +++++++++++++----- 1 file changed, 462 insertions(+), 161 deletions(-) diff --git a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 15c2bbdd..d8311a42 100644 --- a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -1,13 +1,124 @@ + @include('layouts.shared/title-meta', ['title' => "Form"]) @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) +
- processing... + processing...
+@php +$brandData = [ + +['brand'=>'JUNIOR LANZOL 15', 'slug'=>'junior_lanzol_15_units','pseudoId'=>'junior_lanzol_15_value'], +['brand'=>'JUNIOR LANZOL 30', 'slug'=>'junior_lanzol_30_units','pseudoId'=>'junior_lanzol_30_value'], +['brand'=>"LEVOFLOX 250 (10'S) IP", 'slug'=>'levoflox_250_10s_ip_units','pseudoId'=>'levoflox_250_10s_ip_value'], +['brand'=>"LEVOFLOX 250 TAB 10'", 'slug'=>'levoflox_250_tab_10_units','pseudoId'=>'levoflox_250_tab_10_value'], +['brand'=>"LEVOFLOX 500 (10'S) IP", 'slug'=>'levoflox_500_10s_ip_units','pseudoId'=>'levoflox_500_10s_ip_value'], +['brand'=>"LEVOFLOX 500 10'S", 'slug'=>'levoflox_500_10s_units','pseudoId'=>'levoflox_500_10s_value'], +['brand'=>"LEVOFLOX 750 (5'S) IP", 'slug'=>'levoflox_750_5s_ip_units','pseudoId'=>'levoflox_750_5s_ip_value'], +['brand'=>"LEVOFLOX 750 TAB 5'S", 'slug'=>'levoflox_750_tab_5s_units','pseudoId'=>'levoflox_750_tab_5s_value'], +['brand'=>'LEVOFLOX INFUSION', 'slug'=>'levoflox_infusion_units','pseudoId'=>'levoflox_infusion_value'], +['brand'=>'METASPRAY 100AQ', 'slug'=>'metaspray_100aq_units','pseudoId'=>'metaspray_100aq_value'], + +['brand'=>'MONTAIR FX', 'slug'=>'montair_fx_units','pseudoId'=>'montair_fx_value'], +['brand'=>'Montair FX 15s', 'slug'=>'montair_fx_15s_units','pseudoId'=>'montair_fx_15s_value'], +['brand'=>'CEFOPROX 100 30ML(60)', 'slug'=>'cefoprox_100_30ml60_units','pseudoId'=>'cefoprox_100_30ml60_value'], +['brand'=>'CEFOPROX 100DT', 'slug'=>'cefoprox_100dt_units','pseudoId'=>'cefoprox_100dt_value'], +['brand'=>"CEFOPROX 200 10'S", 'slug'=>'cefoprox_200_10s_units','pseudoId'=>'cefoprox_200_10s_value'], +['brand'=>'CEFOPROX 50 30ml', 'slug'=>'cefoprox_50_30ml_units','pseudoId'=>'cefoprox_50_30ml_value'], +['brand'=>'CEFOPROX CV 325 TAB', 'slug'=>'cefoprox_cv_325_tab_units','pseudoId'=>'cefoprox_cv_325_tab_value'], +['brand'=>'Cheston DUO 100ml Syrup', 'slug'=>'cheston_duo_100ml_syrup_units','pseudoId'=>'cheston_duo_100ml_syrup_value'], +['brand'=>'Cheston LS Junior 100 ML', 'slug'=>'cheston_ls_junior_100_ml_units','pseudoId'=>'cheston_ls_junior_100_ml_value'], +['brand'=>'Cheston-D Cough Syrup 100 ML', 'slug'=>'cheston_d_cough_syrup_100_ml_units','pseudoId'=>'cheston_d_cough_syrup_100_ml_value'], + +['brand'=>"Cheston-D Plus 1 x 10'S", 'slug'=>'cheston_d_plus_1_x_10s_units','pseudoId'=>'cheston_d_plus_1_x_10s_value'], +['brand'=>'Cheston-LS Cough Syrup 100 ML', 'slug'=>'cheston_ls_cough_syrup_100_ml_units','pseudoId'=>'cheston_ls_cough_syrup_100_ml_value'], +['brand'=>'Cheston-LS Junior 60 ML', 'slug'=>'cheston_ls_junior_60_ml_units','pseudoId'=>'cheston_ls_junior_60_ml_value'], +['brand'=>'DALACIN C 150MG CAPS 10s', 'slug'=>'dalacin_c_150mg_caps_10s_units','pseudoId'=>'dalacin_c_150mg_caps_10s_value'], +['brand'=>'DALACIN C 300MG CAPS 10s', 'slug'=>'dalacin_c_300mg_caps_10s_units','pseudoId'=>'dalacin_c_300mg_caps_10s_value'], +['brand'=>'DOLONEX DISP 20MG TABS (IP)', 'slug'=>'dolonex_disp_20mg_tabs_ip_units','pseudoId'=>'dolonex_disp_20mg_tabs_ip_value'], +['brand'=>'DOLONEX IM 20MG/1ML INJ', 'slug'=>'dolonex_im_20mg1ml_inj_units','pseudoId'=>'dolonex_im_20mg1ml_inj_value'], +['brand'=>"DOLONEX IM 40MG 2ML INJ HOSP (IP)", 'slug'=>'dolonex_im_40mg_2ml_inj_hosp_ip_units','pseudoId'=>'dolonex_im_40mg_2ml_inj_hosp_ip_value'], +['brand'=>"DOLONEX IM 40MG/2ML INJ (IP)", 'slug'=>'dolonex_im_40mg2ml_inj_ip_units','pseudoId'=>'dolonex_im_40mg2ml_inj_ip_value'], +['brand'=>'DUONASE - F 70 MD', 'slug'=>'duonase_f_70_md_units','pseudoId'=>'duonase_f_70_md_value'], + +['brand'=>"DUONASE NASAL SPRAY", 'slug'=>'duonase_nasal_spray_units','pseudoId'=>'duonase_nasal_spray_value'], +['brand'=>"IBUGESIC PLUS SUSP", 'slug'=>'ibugesic_plus_susp_units','pseudoId'=>'ibugesic_plus_susp_value'], +['brand'=>'IBUGESIC PLUS SUSP 1', 'slug'=>'ibugesic_plus_susp_1_units','pseudoId'=>'ibugesic_plus_susp_1_value'], +['brand'=>"IBUGESIC PLUS SUSPENSION 100ML - ORANGE", 'slug'=>'ibugesic_plus_suspension_100ml_orange_units','pseudoId'=>'ibugesic_plus_suspension_100ml_orange_value'], +['brand'=>"MUCINAC 200 TABLET 1 X 10'S", 'slug'=>'mucinac_200_tablet_1_x_10s_units','pseudoId'=>'mucinac_200_tablet_1_x_10s_value'], +['brand'=>'MUCINAC 600 TABLETS', 'slug'=>'mucinac_600_tablets_units','pseudoId'=>'mucinac_600_tablets_value'], +['brand'=>'Mucinac AB 1 X 10 TABLETS', 'slug'=>'mucinac_ab_1_x_10_tablets_units','pseudoId'=>'mucinac_ab_1_x_10_tablets_value'], +['brand'=>"Mucinac AB Tablet", 'slug'=>'mucinac_ab_tablet_units','pseudoId'=>'mucinac_ab_tablet_value'], +['brand'=>"MUCINAC C Tablets 1 x 15'S", 'slug'=>'mucinac_c_tablets_1_x_15s_units','pseudoId'=>'mucinac_c_tablets_1_x_15s_value'], +['brand'=>'Mucinac Oral Solution 100ml', 'slug'=>'mucinac_oral_solution_100ml_units','pseudoId'=>'mucinac_oral_solution_100ml_value'], + + +['brand'=>"NOVAMOX - 500", 'slug'=>'novamox_500_units','pseudoId'=>'novamox_500_value'], +['brand'=>"NOVAMOX 125 REDIUSE 30 ML", 'slug'=>'novamox_125_rediuse_30_ml_units','pseudoId'=>'novamox_125_rediuse_30_ml_value'], +['brand'=>'NOVAMOX 125 REDIUSE 60 ML', 'slug'=>'novamox_125_rediuse_60_ml_units','pseudoId'=>'novamox_125_rediuse_60_ml_value'], +['brand'=>"NOVAMOX 250 DT 15's", 'slug'=>'novamox_250_dt_15s_units','pseudoId'=>'novamox_250_dt_15s_value'], +['brand'=>"NOVAMOX 250 R/U 30", 'slug'=>'novamox_250_ru_30_units','pseudoId'=>'novamox_250_ru_30_value'], +['brand'=>'NOVAMOX 250 REDIUSE', 'slug'=>'novamox_250_rediuse_units','pseudoId'=>'novamox_250_rediuse_value'], +['brand'=>'NOVAMOX 30ML', 'slug'=>'novamox_30ml_units','pseudoId'=>'novamox_30ml_value'], +['brand'=>"NOVAMOX 60ML", 'slug'=>'novamox_60ml_units','pseudoId'=>'novamox_60ml_value'], +['brand'=>"NOVAMOX CV 1000 MG", 'slug'=>'novamox_cv_1000_mg_units','pseudoId'=>'novamox_cv_1000_mg_value'], +['brand'=>"NOVAMOX CV 228.5 DT TABLETS", 'slug'=>'novamox_cv_2285_dt_tablets_units','pseudoId'=>'novamox_cv_2285_dt_tablets_value'], + +['brand'=>"NOVAMOX CV 228.5 MG  SYRUP", 'slug'=>'novamox_cv_2285_mg_syrup_units','pseudoId'=>'novamox_cv_2285_mg_syrup_value'], +['brand'=>"NOVAMOX CV 375 TAB 10s", 'slug'=>'novamox_cv_375_tab_10s_units','pseudoId'=>'novamox_cv_375_tab_10s_value'], +['brand'=>"NOVAMOX CV 457 DT 10's", 'slug'=>'novamox_cv_457_dt_10s_units','pseudoId'=>'novamox_cv_457_dt_10s_value'], +['brand'=>"NOVAMOX CV 625 TABLETS 10", 'slug'=>'novamox_cv_625_tablets_10_units','pseudoId'=>'novamox_cv_625_tablets_10_value'], +['brand'=>"NOVAMOX CV DROPS", 'slug'=>'novamox_cv_drops_units','pseudoId'=>'novamox_cv_drops_value'], +['brand'=>'Novamox CV Dry Syrup 30 ML', 'slug'=>'novamox_cv_dry_syrup_30_ml_units','pseudoId'=>'novamox_cv_dry_syrup_30_ml_value'], +['brand'=>'NOVAMOX CV DS', 'slug'=>'novamox_cv_ds_units','pseudoId'=>'novamox_cv_ds_value'], +['brand'=>"NOVAMOX CV FORTE SYP", 'slug'=>'novamox_cv_forte_syp_units','pseudoId'=>'novamox_cv_forte_syp_value'], +['brand'=>"Novamox CV Forte Syp 60 ml", 'slug'=>'novamox_cv_forte_syp_60_ml_units','pseudoId'=>'novamox_cv_forte_syp_60_ml_value'], +['brand'=>"NOVAMOX DROPS", 'slug'=>'novamox_drops_units','pseudoId'=>'novamox_drops_value'], + +['brand'=>"NOVAMOX LB 500", 'slug'=>'novamox_lb_500_units','pseudoId'=>'novamox_lb_500_value'], +['brand'=>"NOVAMOX RDU DROPS", 'slug'=>'novamox_rdu_drops_units','pseudoId'=>'novamox_rdu_drops_value'], +['brand'=>"NOVAMOX-125 DT 15'S", 'slug'=>'novamox_125_dt_15s_units','pseudoId'=>'novamox_125_dt_15s_value'], +['brand'=>"NOVAMOX-250 [15'S]", 'slug'=>'novamox_250_15s_units','pseudoId'=>'novamox_250_15s_value'], +['brand'=>"TEDISPAN 200 TABLETS 6S", 'slug'=>'tedispan_200_tablets_6s_units','pseudoId'=>'tedispan_200_tablets_6s_value'], +['brand'=>"RABICIP - L CAPSULES", 'slug'=>'rabicip_l_capsules_units','pseudoId'=>'rabicip_l_capsules_value'], +['brand'=>"RABICIP 20 15'S", 'slug'=>'rabicip_20_15s_units','pseudoId'=>'rabicip_20_15s_value'], +['brand'=>"RABICIP 20 TABLETS 15S", 'slug'=>'rabicip_20_tablets_15s_units','pseudoId'=>'rabicip_20_tablets_15s_value'], +['brand'=>"RABICIP 20mg (IP) 1 x 15s TABLETS", 'slug'=>'rabicip_20mg_ip_1_x_15s_tablets_units','pseudoId'=>'rabicip_20mg_ip_1_x_15s_tablets_value'], +['brand'=>"RABICIP D CAPSULES 1 X 15'S", 'slug'=>'rabicip_d_capsules_1_x_15s_units','pseudoId'=>'rabicip_d_capsules_1_x_15s_value'], +['brand'=>"ANTIFLU SYRUP 75 ML", 'slug'=>'antiflu_syrup_75_ml_units','pseudoId'=>'antiflu_syrup_75_ml_value'] + + + + + +]; + +@endphp + + +@php +// echo "
";
+// print_r($submitted_formdata);
+// echo "
"; +$skuData = []; + +foreach($questions as $q){ + if($q->code === 'sku'){ + foreach($q->options as $opt){ + $skuData[$opt->value] = $opt->submitted_value ?? 0; + } + } +} + +@endphp + + + - -@include('layouts.shared/footer-script') - - + + + + + + + + \ No newline at end of file From e66834690a926d507ec051da792774c48f9a78ff Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Thu, 3 Sep 2026 18:02:11 +0530 Subject: [PATCH 19/20] Remove unwanted file --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 583 ------------------ 1 file changed, 583 deletions(-) delete mode 100644 resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php diff --git a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php deleted file mode 100644 index d8311a42..00000000 --- a/resources/views/form/rapport-team3/preview-1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ /dev/null @@ -1,583 +0,0 @@ - - - - - @include('layouts.shared/title-meta', ['title' => "Form"]) - @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) - - - -
- processing... -
-@php -$brandData = [ - -['brand'=>'JUNIOR LANZOL 15', 'slug'=>'junior_lanzol_15_units','pseudoId'=>'junior_lanzol_15_value'], -['brand'=>'JUNIOR LANZOL 30', 'slug'=>'junior_lanzol_30_units','pseudoId'=>'junior_lanzol_30_value'], -['brand'=>"LEVOFLOX 250 (10'S) IP", 'slug'=>'levoflox_250_10s_ip_units','pseudoId'=>'levoflox_250_10s_ip_value'], -['brand'=>"LEVOFLOX 250 TAB 10'", 'slug'=>'levoflox_250_tab_10_units','pseudoId'=>'levoflox_250_tab_10_value'], -['brand'=>"LEVOFLOX 500 (10'S) IP", 'slug'=>'levoflox_500_10s_ip_units','pseudoId'=>'levoflox_500_10s_ip_value'], -['brand'=>"LEVOFLOX 500 10'S", 'slug'=>'levoflox_500_10s_units','pseudoId'=>'levoflox_500_10s_value'], -['brand'=>"LEVOFLOX 750 (5'S) IP", 'slug'=>'levoflox_750_5s_ip_units','pseudoId'=>'levoflox_750_5s_ip_value'], -['brand'=>"LEVOFLOX 750 TAB 5'S", 'slug'=>'levoflox_750_tab_5s_units','pseudoId'=>'levoflox_750_tab_5s_value'], -['brand'=>'LEVOFLOX INFUSION', 'slug'=>'levoflox_infusion_units','pseudoId'=>'levoflox_infusion_value'], -['brand'=>'METASPRAY 100AQ', 'slug'=>'metaspray_100aq_units','pseudoId'=>'metaspray_100aq_value'], - -['brand'=>'MONTAIR FX', 'slug'=>'montair_fx_units','pseudoId'=>'montair_fx_value'], -['brand'=>'Montair FX 15s', 'slug'=>'montair_fx_15s_units','pseudoId'=>'montair_fx_15s_value'], -['brand'=>'CEFOPROX 100 30ML(60)', 'slug'=>'cefoprox_100_30ml60_units','pseudoId'=>'cefoprox_100_30ml60_value'], -['brand'=>'CEFOPROX 100DT', 'slug'=>'cefoprox_100dt_units','pseudoId'=>'cefoprox_100dt_value'], -['brand'=>"CEFOPROX 200 10'S", 'slug'=>'cefoprox_200_10s_units','pseudoId'=>'cefoprox_200_10s_value'], -['brand'=>'CEFOPROX 50 30ml', 'slug'=>'cefoprox_50_30ml_units','pseudoId'=>'cefoprox_50_30ml_value'], -['brand'=>'CEFOPROX CV 325 TAB', 'slug'=>'cefoprox_cv_325_tab_units','pseudoId'=>'cefoprox_cv_325_tab_value'], -['brand'=>'Cheston DUO 100ml Syrup', 'slug'=>'cheston_duo_100ml_syrup_units','pseudoId'=>'cheston_duo_100ml_syrup_value'], -['brand'=>'Cheston LS Junior 100 ML', 'slug'=>'cheston_ls_junior_100_ml_units','pseudoId'=>'cheston_ls_junior_100_ml_value'], -['brand'=>'Cheston-D Cough Syrup 100 ML', 'slug'=>'cheston_d_cough_syrup_100_ml_units','pseudoId'=>'cheston_d_cough_syrup_100_ml_value'], - -['brand'=>"Cheston-D Plus 1 x 10'S", 'slug'=>'cheston_d_plus_1_x_10s_units','pseudoId'=>'cheston_d_plus_1_x_10s_value'], -['brand'=>'Cheston-LS Cough Syrup 100 ML', 'slug'=>'cheston_ls_cough_syrup_100_ml_units','pseudoId'=>'cheston_ls_cough_syrup_100_ml_value'], -['brand'=>'Cheston-LS Junior 60 ML', 'slug'=>'cheston_ls_junior_60_ml_units','pseudoId'=>'cheston_ls_junior_60_ml_value'], -['brand'=>'DALACIN C 150MG CAPS 10s', 'slug'=>'dalacin_c_150mg_caps_10s_units','pseudoId'=>'dalacin_c_150mg_caps_10s_value'], -['brand'=>'DALACIN C 300MG CAPS 10s', 'slug'=>'dalacin_c_300mg_caps_10s_units','pseudoId'=>'dalacin_c_300mg_caps_10s_value'], -['brand'=>'DOLONEX DISP 20MG TABS (IP)', 'slug'=>'dolonex_disp_20mg_tabs_ip_units','pseudoId'=>'dolonex_disp_20mg_tabs_ip_value'], -['brand'=>'DOLONEX IM 20MG/1ML INJ', 'slug'=>'dolonex_im_20mg1ml_inj_units','pseudoId'=>'dolonex_im_20mg1ml_inj_value'], -['brand'=>"DOLONEX IM 40MG 2ML INJ HOSP (IP)", 'slug'=>'dolonex_im_40mg_2ml_inj_hosp_ip_units','pseudoId'=>'dolonex_im_40mg_2ml_inj_hosp_ip_value'], -['brand'=>"DOLONEX IM 40MG/2ML INJ (IP)", 'slug'=>'dolonex_im_40mg2ml_inj_ip_units','pseudoId'=>'dolonex_im_40mg2ml_inj_ip_value'], -['brand'=>'DUONASE - F 70 MD', 'slug'=>'duonase_f_70_md_units','pseudoId'=>'duonase_f_70_md_value'], - -['brand'=>"DUONASE NASAL SPRAY", 'slug'=>'duonase_nasal_spray_units','pseudoId'=>'duonase_nasal_spray_value'], -['brand'=>"IBUGESIC PLUS SUSP", 'slug'=>'ibugesic_plus_susp_units','pseudoId'=>'ibugesic_plus_susp_value'], -['brand'=>'IBUGESIC PLUS SUSP 1', 'slug'=>'ibugesic_plus_susp_1_units','pseudoId'=>'ibugesic_plus_susp_1_value'], -['brand'=>"IBUGESIC PLUS SUSPENSION 100ML - ORANGE", 'slug'=>'ibugesic_plus_suspension_100ml_orange_units','pseudoId'=>'ibugesic_plus_suspension_100ml_orange_value'], -['brand'=>"MUCINAC 200 TABLET 1 X 10'S", 'slug'=>'mucinac_200_tablet_1_x_10s_units','pseudoId'=>'mucinac_200_tablet_1_x_10s_value'], -['brand'=>'MUCINAC 600 TABLETS', 'slug'=>'mucinac_600_tablets_units','pseudoId'=>'mucinac_600_tablets_value'], -['brand'=>'Mucinac AB 1 X 10 TABLETS', 'slug'=>'mucinac_ab_1_x_10_tablets_units','pseudoId'=>'mucinac_ab_1_x_10_tablets_value'], -['brand'=>"Mucinac AB Tablet", 'slug'=>'mucinac_ab_tablet_units','pseudoId'=>'mucinac_ab_tablet_value'], -['brand'=>"MUCINAC C Tablets 1 x 15'S", 'slug'=>'mucinac_c_tablets_1_x_15s_units','pseudoId'=>'mucinac_c_tablets_1_x_15s_value'], -['brand'=>'Mucinac Oral Solution 100ml', 'slug'=>'mucinac_oral_solution_100ml_units','pseudoId'=>'mucinac_oral_solution_100ml_value'], - - -['brand'=>"NOVAMOX - 500", 'slug'=>'novamox_500_units','pseudoId'=>'novamox_500_value'], -['brand'=>"NOVAMOX 125 REDIUSE 30 ML", 'slug'=>'novamox_125_rediuse_30_ml_units','pseudoId'=>'novamox_125_rediuse_30_ml_value'], -['brand'=>'NOVAMOX 125 REDIUSE 60 ML', 'slug'=>'novamox_125_rediuse_60_ml_units','pseudoId'=>'novamox_125_rediuse_60_ml_value'], -['brand'=>"NOVAMOX 250 DT 15's", 'slug'=>'novamox_250_dt_15s_units','pseudoId'=>'novamox_250_dt_15s_value'], -['brand'=>"NOVAMOX 250 R/U 30", 'slug'=>'novamox_250_ru_30_units','pseudoId'=>'novamox_250_ru_30_value'], -['brand'=>'NOVAMOX 250 REDIUSE', 'slug'=>'novamox_250_rediuse_units','pseudoId'=>'novamox_250_rediuse_value'], -['brand'=>'NOVAMOX 30ML', 'slug'=>'novamox_30ml_units','pseudoId'=>'novamox_30ml_value'], -['brand'=>"NOVAMOX 60ML", 'slug'=>'novamox_60ml_units','pseudoId'=>'novamox_60ml_value'], -['brand'=>"NOVAMOX CV 1000 MG", 'slug'=>'novamox_cv_1000_mg_units','pseudoId'=>'novamox_cv_1000_mg_value'], -['brand'=>"NOVAMOX CV 228.5 DT TABLETS", 'slug'=>'novamox_cv_2285_dt_tablets_units','pseudoId'=>'novamox_cv_2285_dt_tablets_value'], - -['brand'=>"NOVAMOX CV 228.5 MG  SYRUP", 'slug'=>'novamox_cv_2285_mg_syrup_units','pseudoId'=>'novamox_cv_2285_mg_syrup_value'], -['brand'=>"NOVAMOX CV 375 TAB 10s", 'slug'=>'novamox_cv_375_tab_10s_units','pseudoId'=>'novamox_cv_375_tab_10s_value'], -['brand'=>"NOVAMOX CV 457 DT 10's", 'slug'=>'novamox_cv_457_dt_10s_units','pseudoId'=>'novamox_cv_457_dt_10s_value'], -['brand'=>"NOVAMOX CV 625 TABLETS 10", 'slug'=>'novamox_cv_625_tablets_10_units','pseudoId'=>'novamox_cv_625_tablets_10_value'], -['brand'=>"NOVAMOX CV DROPS", 'slug'=>'novamox_cv_drops_units','pseudoId'=>'novamox_cv_drops_value'], -['brand'=>'Novamox CV Dry Syrup 30 ML', 'slug'=>'novamox_cv_dry_syrup_30_ml_units','pseudoId'=>'novamox_cv_dry_syrup_30_ml_value'], -['brand'=>'NOVAMOX CV DS', 'slug'=>'novamox_cv_ds_units','pseudoId'=>'novamox_cv_ds_value'], -['brand'=>"NOVAMOX CV FORTE SYP", 'slug'=>'novamox_cv_forte_syp_units','pseudoId'=>'novamox_cv_forte_syp_value'], -['brand'=>"Novamox CV Forte Syp 60 ml", 'slug'=>'novamox_cv_forte_syp_60_ml_units','pseudoId'=>'novamox_cv_forte_syp_60_ml_value'], -['brand'=>"NOVAMOX DROPS", 'slug'=>'novamox_drops_units','pseudoId'=>'novamox_drops_value'], - -['brand'=>"NOVAMOX LB 500", 'slug'=>'novamox_lb_500_units','pseudoId'=>'novamox_lb_500_value'], -['brand'=>"NOVAMOX RDU DROPS", 'slug'=>'novamox_rdu_drops_units','pseudoId'=>'novamox_rdu_drops_value'], -['brand'=>"NOVAMOX-125 DT 15'S", 'slug'=>'novamox_125_dt_15s_units','pseudoId'=>'novamox_125_dt_15s_value'], -['brand'=>"NOVAMOX-250 [15'S]", 'slug'=>'novamox_250_15s_units','pseudoId'=>'novamox_250_15s_value'], -['brand'=>"TEDISPAN 200 TABLETS 6S", 'slug'=>'tedispan_200_tablets_6s_units','pseudoId'=>'tedispan_200_tablets_6s_value'], -['brand'=>"RABICIP - L CAPSULES", 'slug'=>'rabicip_l_capsules_units','pseudoId'=>'rabicip_l_capsules_value'], -['brand'=>"RABICIP 20 15'S", 'slug'=>'rabicip_20_15s_units','pseudoId'=>'rabicip_20_15s_value'], -['brand'=>"RABICIP 20 TABLETS 15S", 'slug'=>'rabicip_20_tablets_15s_units','pseudoId'=>'rabicip_20_tablets_15s_value'], -['brand'=>"RABICIP 20mg (IP) 1 x 15s TABLETS", 'slug'=>'rabicip_20mg_ip_1_x_15s_tablets_units','pseudoId'=>'rabicip_20mg_ip_1_x_15s_tablets_value'], -['brand'=>"RABICIP D CAPSULES 1 X 15'S", 'slug'=>'rabicip_d_capsules_1_x_15s_units','pseudoId'=>'rabicip_d_capsules_1_x_15s_value'], -['brand'=>"ANTIFLU SYRUP 75 ML", 'slug'=>'antiflu_syrup_75_ml_units','pseudoId'=>'antiflu_syrup_75_ml_value'] - - - - - -]; - -@endphp - - -@php -// echo "
";
-// print_r($submitted_formdata);
-// echo "
"; -$skuData = []; - -foreach($questions as $q){ - if($q->code === 'sku'){ - foreach($q->options as $opt){ - $skuData[$opt->value] = $opt->submitted_value ?? 0; - } - } -} - -@endphp - - - - - - - - @include('layouts.shared/footer-script') - - - - - - \ No newline at end of file From c77afbf81cc28768c5d2c51e43f1824e3a59edac Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Thu, 3 Sep 2026 18:16:16 +0530 Subject: [PATCH 20/20] Team 3 Doctor Activities for Neb 2 form changes 4 --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 92016b8b..702d06f9 100644 --- a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -74,11 +74,29 @@ @endphp - + + + + + @elseif($sub->workflow_status=='rejected') + + @else + + + + @endif + {{ isset($sub->formdata->record_date) && $sub->formdata->record_date > 0 ? 'Yes' : 'No' }}