From 271592351b8c75e2147979c0fa1277ed2b6e3bbb Mon Sep 17 00:00:00 2001 From: Ravi Gulhane Date: Thu, 29 Oct 2026 08:25:14 +0530 Subject: [PATCH] Changes --- ...e937-cfb5-4679-989a-c3fea892568f.blade.php | 463 +++++++----------- 1 file changed, 164 insertions(+), 299 deletions(-) diff --git a/resources/views/form/rapport-lifemankind/preview-1792561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php b/resources/views/form/rapport-lifemankind/preview-1792561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php index 2b447580..05c39e2b 100644 --- a/resources/views/form/rapport-lifemankind/preview-1792561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php +++ b/resources/views/form/rapport-lifemankind/preview-1792561624-4466e937-cfb5-4679-989a-c3fea892568f.blade.php @@ -1,311 +1,176 @@ - @include('layouts.shared/title-meta', ['title' => "Form"]) - @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) - + @include('layouts.shared/title-meta', ['title' => $form->title ?? 'TGICS']) + @include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? '']) + -
- processing... -
- -
-
-
-
-
-
+ +@php + $skipCodes = [ + 'tgics_contact_id', + 'user_id', + 'hierarchy_id', + 'id', + 'execution_done', + 'execution_date', + 'no_of_attendees', + 'total_amount_spent_in_rs', + 'upload_photo_1', + 'upload_photo_2', + 'ziten_m_rx', + 'total_camp_rx', + 'no_of_strips_left_with_fso', + ]; - @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 - /* echo "
";
-                            print_r($submitted_formdata);
-                            echo "
"; */ - $skuData = []; + $qualification = ''; + foreach ($questions ?? [] as $question) { + if (($question->code ?? '') === 'qualification') { + $qualification = trim((string) ($question->value ?? '')); + break; + } + } + $showOtherQualification = strcasecmp($qualification, 'Others') === 0; - foreach($questions as $q){ - if($q->code === 'sku'){ - foreach($q->options as $opt){ - $skuData[$opt->value] = $opt->submitted_value ?? 0; - } - } - } - - @endphp - - -
- - - - @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, ['execution_date','executed_as_per_plan' ,'revised_start_time','patient_screened','patients_diagnosed','rxn_of_montair_lc_adult','rxn_of_montair_lc_kid_tab','rxn_of_montair_lc_kid_syrup','rxn_of_furamist','rxn_of_furamist_az','total_rxns'])) - @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') - @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 --}} - - @case('multitextbox') -
- @foreach($question->options as $option) -
{{ $option->display }}
-
- -
- @endforeach -
- @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 +