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 index 6b1adf8e..78166689 100644 --- 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 @@ -67,8 +67,9 @@ Camp Execution Date Type of meet + Other type of meet Location - Module Type + {{-- Module Type --}} Meeting Done Dr list submitted to HO No of Drs attended @@ -85,7 +86,7 @@ + class="mdi mdi-pencil">Report {{ $sub->formdata->plan_date }} {{ isset($sub->formdata->execution_done) && $sub->formdata->execution_done == 'yes' ? 'Yes' : 'No' }} @@ -96,7 +97,9 @@ {{ 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->other_type_of_meet) ? $sub->formdata->other_type_of_meet : '' }} + + {{-- {{ 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 : '' }} @@ -370,19 +373,19 @@ }) - $('#field-module_type').parent().hide(); - $('#field-module_type').attr('required',false); + $('#field-other_type_of_meet').parent().hide(); + $('#field-other_type_of_meet').attr('required',false); $('#field-type_of_meet').on('change',function(){ let value=$('#field-type_of_meet').val(); console.log("Value is : ",value); - if(value==='Step Up'){ - $('#field-module_type').parent().show(); - $('#field-module_type').attr('required',true); + if(value==='Other'){ + $('#field-other_type_of_meet').parent().show(); + $('#field-other_type_of_meet').attr('required',true); } else{ - $('#field-module_type').parent().hide(); - $('#field-module_type').attr('required',false); + $('#field-other_type_of_meet').parent().hide(); + $('#field-other_type_of_meet').attr('required',false); } }) @@ -412,10 +415,10 @@ e.preventDefault(); }) - let module_type = document.getElementById('execution-module_type'); + /* let module_type = document.getElementById('execution-module_type'); module_type.addEventListener('mousedown', function(e) { e.preventDefault(); - }) + }) */ $('#execution-location').prop('readonly', true) $('#execution-plan_date').prop('readonly', true) @@ -446,18 +449,18 @@ // $('#execution-'+k).val(selected[k]); } - $('#execution-module_type').parent().hide(); - $('#execution-module_type').attr('required',false); + $('#execution-other_type_of_meet').parent().hide(); + $('#execution-other_type_of_meet').attr('required',false); let meeting=$('#execution-type_of_meet').val(); console.log("Type of Meeting : ",meeting); - if(meeting==='Step Up'){ - $('#execution-module_type').parent().show(); - $('#execution-module_type').attr('required',true); + if(meeting==='Other'){ + $('#execution-other_type_of_meet').parent().show(); + $('#execution-other_type_of_meet').attr('required',true); } else{ - $('#execution-module_type').parent().hide(); - $('#execution-module_type').attr('required',false); + $('#execution-other_type_of_meet').parent().hide(); + $('#execution-other_type_of_meet').attr('required',false); } $('#execution-execution_date,#execution-dr_list_submitted_to_ho,#execution-no_of_drs_attended').parent().hide(); @@ -478,6 +481,11 @@ } }) + $(document).ready(function () { + $('#execution-meeting_done').trigger('change'); + }); + + diff --git a/resources/views/form/rapport-arise/1781013730-b9b988ea-c741-4f66-b048-380c5503c779.blade.php b/resources/views/form/rapport-arise/1781013730-b9b988ea-c741-4f66-b048-380c5503c779.blade.php new file mode 100644 index 00000000..a8fcbff8 --- /dev/null +++ b/resources/views/form/rapport-arise/1781013730-b9b988ea-c741-4f66-b048-380c5503c779.blade.php @@ -0,0 +1,641 @@ + + + + + @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 Meetings Plan & Exe

+
+ @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 DoneExecution DateCamp Execution DateType of meetOther type 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->other_type_of_meet) ? $sub->formdata->other_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') + + + + + +