From a690e5e7a55decfd55661a61f8a8cc26daeefa8d Mon Sep 17 00:00:00 2001 From: Ravi Gulhane Date: Fri, 12 Aug 2022 13:52:13 +0530 Subject: [PATCH] Change --- ...-89e5-4e5f-ba3d-2b1da3f1086d-new.blade.php | 194 ++++++++++ ...cca9-b3e3-4dab-877a-992e6e2d8b72.blade.php | 160 ++++++++ ...65ee-e05c-431c-a44d-706afc1c16f4.blade.php | 198 ++++++++++ ...e7c9-c60e-410e-ada7-8e0fef8e6ac8.blade.php | 211 ++++++++++ ...2341-6728-4863-a938-6f914869dd94.blade.php | 205 ++++++++++ ...b1b6-4ddc-42d3-aa2a-563c1cf5e4c9.blade.php | 362 ++++++++++++++++++ ...2584-fb76-4075-b040-a9a4e34a7458.blade.php | 230 +++++++++++ ...d30a-a719-4285-8d74-063462930c1d.blade.php | 230 +++++++++++ 8 files changed, 1790 insertions(+) create mode 100644 resources/views/form/1650365531-3efb1e12-89e5-4e5f-ba3d-2b1da3f1086d-new.blade.php create mode 100644 resources/views/form/1654684982-2df9cca9-b3e3-4dab-877a-992e6e2d8b72.blade.php create mode 100644 resources/views/form/1654748343-81b065ee-e05c-431c-a44d-706afc1c16f4.blade.php create mode 100644 resources/views/form/1655458548-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac8.blade.php create mode 100644 resources/views/form/1655876175-d3742341-6728-4863-a938-6f914869dd94.blade.php create mode 100644 resources/views/form/1655958637-c41fb1b6-4ddc-42d3-aa2a-563c1cf5e4c9.blade.php create mode 100644 resources/views/form/1659513016-1f5e2584-fb76-4075-b040-a9a4e34a7458.blade.php create mode 100644 resources/views/form/1659538834-fb8bd30a-a719-4285-8d74-063462930c1d.blade.php diff --git a/resources/views/form/1650365531-3efb1e12-89e5-4e5f-ba3d-2b1da3f1086d-new.blade.php b/resources/views/form/1650365531-3efb1e12-89e5-4e5f-ba3d-2b1da3f1086d-new.blade.php new file mode 100644 index 00000000..a2048c29 --- /dev/null +++ b/resources/views/form/1650365531-3efb1e12-89e5-4e5f-ba3d-2b1da3f1086d-new.blade.php @@ -0,0 +1,194 @@ + + + + @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 +
+ + @csrf + @if($id) + + @endif + @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}}" {{($question->code == 'total_pob_value')?'readonly':''}}> + @break + @case('textarea') + + @break + @case('dropdown') + + @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 diff --git a/resources/views/form/1654684982-2df9cca9-b3e3-4dab-877a-992e6e2d8b72.blade.php b/resources/views/form/1654684982-2df9cca9-b3e3-4dab-877a-992e6e2d8b72.blade.php new file mode 100644 index 00000000..599131cf --- /dev/null +++ b/resources/views/form/1654684982-2df9cca9-b3e3-4dab-877a-992e6e2d8b72.blade.php @@ -0,0 +1,160 @@ + + + + @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 + + @php + $start = strtotime("1 May 2021"); + $till = strtotime("now"); + if( request()->get('record_date') ) { + $target = strtotime(request()->get('record_date')); + } else { + $target = strtotime("now"); + } + $history = Formhelper::getMultiformData($form->partition, $form->form_id, $form->user_id, date("m-01-Y", $target) , date("m-t-Y", $target) ); + $contacts = []; + //echo '
'; print_r($history); exit;
+                                if(sizeof($history->data->submissions) > 0) {
+                                    foreach($history->data->submissions as $sub){
+                                        $contacts[] = $sub->formdata->target;
+                                    }
+                                }
+                            @endphp
+
+                            
+ + + @csrf +
+
+ + + + + + + + + @foreach($questions[0]->options as $doctor) + + + + + @endforeach + +
Is targetedDoctor
+
+ display, $contacts) ? 'checked':'' }}> +
+
+
+
+ +
+ +
+ +
+ +
+
+ + + + +
+
+ +
+ +
+ + +@include('layouts.shared/footer-script') + + + + + \ No newline at end of file diff --git a/resources/views/form/1654748343-81b065ee-e05c-431c-a44d-706afc1c16f4.blade.php b/resources/views/form/1654748343-81b065ee-e05c-431c-a44d-706afc1c16f4.blade.php new file mode 100644 index 00000000..33f5f2aa --- /dev/null +++ b/resources/views/form/1654748343-81b065ee-e05c-431c-a44d-706afc1c16f4.blade.php @@ -0,0 +1,198 @@ + + + + @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 + + @php + $start = strtotime("1 May 2021"); + $till = strtotime("now"); + if( request()->get('record_date') ) { + $target = strtotime(request()->get('record_date')); + } else { + $target = strtotime("now"); + } + $history = Formhelper::getMultiformData($form->partition, '1654684982-2df9cca9-b3e3-4dab-877a-992e6e2d8b72', $form->user_id, date("m-01-Y", $target) , date("m-t-Y", $target) ); + $contacts = []; + if(sizeof($history->data->submissions) > 0) { + foreach($history->data->submissions as $sub){ + if(sizeof($sub->contacts) > 0) { + $contacts[] = $sub->contacts[0]->id; + } + } + } + //echo '
';print_r($contacts);echo '
'; + @endphp + + +
+ + @csrf + @if($id) + + @endif + @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 + @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 diff --git a/resources/views/form/1655458548-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac8.blade.php b/resources/views/form/1655458548-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac8.blade.php new file mode 100644 index 00000000..48a3a77c --- /dev/null +++ b/resources/views/form/1655458548-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac8.blade.php @@ -0,0 +1,211 @@ + + + + @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') + + @else + Back + @endif +
+ @endif + + @php + $history = Formhelper::getMultiformData( $form->partition, $form_id, $form->user_id); + $histories = []; + $date = ''; + foreach($history->data->submissions as $sub) { + $sub->formdata->id = $sub->id; + $histories[] = $sub->formdata; + } + @endphp + +
+
+
+
+ + + + + + + + + + + + + + + @foreach($histories as $his) + + + + + + + + + + + @endforeach + +
ActionPlan DateTeam NameType of meetingExecution DateName of speakerMSL CodeNo. og Doctors/Paramedics attended
+ + {{$his->record_date}}{{$his->team_name}}{{$his->type_of_meeting}}{{$his->execution_date}}{{$his->name_of_the_speaker}}{{$his->msl_code}}{{$his->attendence}}
+
+
+
+ +
+ +
+ + @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 + @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 diff --git a/resources/views/form/1655876175-d3742341-6728-4863-a938-6f914869dd94.blade.php b/resources/views/form/1655876175-d3742341-6728-4863-a938-6f914869dd94.blade.php new file mode 100644 index 00000000..2861d01c --- /dev/null +++ b/resources/views/form/1655876175-d3742341-6728-4863-a938-6f914869dd94.blade.php @@ -0,0 +1,205 @@ + + + + @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') + + @else + Back + @endif +
+ @endif + + @php + $history = Formhelper::getMultiformData( $form->partition, $form_id, $form->user_id); + $histories = []; + $date = ''; + foreach($history->data->submissions as $sub) { + $sub->formdata->id = $sub->id; + $histories[] = $sub->formdata; + } + @endphp + +
+
+
+
+ + + + + + + + + + + + @foreach($histories as $his) + + + + + + + + @endforeach + +
ActionTourPlan DateExecution DateTotal POB
+ + {{$his->tour}}{{$his->record_date}}{{$his->execution_date}}{{$his->total_pob}}
+
+
+
+ +
+ +
+ + @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 + @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 diff --git a/resources/views/form/1655958637-c41fb1b6-4ddc-42d3-aa2a-563c1cf5e4c9.blade.php b/resources/views/form/1655958637-c41fb1b6-4ddc-42d3-aa2a-563c1cf5e4c9.blade.php new file mode 100644 index 00000000..fe544d06 --- /dev/null +++ b/resources/views/form/1655958637-c41fb1b6-4ddc-42d3-aa2a-563c1cf5e4c9.blade.php @@ -0,0 +1,362 @@ + + + + @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') + + @else + Back + @endif +
+ @endif + + @php + $start = strtotime("1 May 2021"); + $till = strtotime("now"); + if( request()->get('record_date') ) { + $target = strtotime(request()->get('record_date')); + } else { + $target = strtotime("now"); + } + $history = Formhelper::getMultiformData($form->partition, '1654684982-2df9cca9-b3e3-4dab-877a-992e6e2d8b72', $form->user_id, date("m-01-Y", $target) , date("m-t-Y", $target) ); + //echo '
'; print_r($history); exit;
+                                $contacts = [];
+                                if(sizeof($history->data->submissions) > 0) {
+                                    foreach($history->data->submissions as $sub){
+                                        if(sizeof($sub->contacts) > 0) {
+                                            $contacts[] = $sub->contacts[0]->id;
+                                        }
+                                    }
+                                }
+                            @endphp
+
+                            
+ + + + @csrf + + @foreach($questions as $question) + @if ( in_array($question->code, ['chemist_name', 'dapasach_pob', 'dapasach_strips', 'dapasach_m_strips', 'total_pob', 'dapasach_units_made_available', 'dapasach_m_units_made_available', 'no_of_chemists_made_available'] ) ) + @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 + @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 diff --git a/resources/views/form/1659513016-1f5e2584-fb76-4075-b040-a9a4e34a7458.blade.php b/resources/views/form/1659513016-1f5e2584-fb76-4075-b040-a9a4e34a7458.blade.php new file mode 100644 index 00000000..6f939ad1 --- /dev/null +++ b/resources/views/form/1659513016-1f5e2584-fb76-4075-b040-a9a4e34a7458.blade.php @@ -0,0 +1,230 @@ + + + + @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 +
+ + @csrf + @if($id) + + @endif + @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 + @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 diff --git a/resources/views/form/1659538834-fb8bd30a-a719-4285-8d74-063462930c1d.blade.php b/resources/views/form/1659538834-fb8bd30a-a719-4285-8d74-063462930c1d.blade.php new file mode 100644 index 00000000..6f939ad1 --- /dev/null +++ b/resources/views/form/1659538834-fb8bd30a-a719-4285-8d74-063462930c1d.blade.php @@ -0,0 +1,230 @@ + + + + @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 +
+ + @csrf + @if($id) + + @endif + @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 + @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