diff --git a/resources/views/form/rapport-lifemankind/1796280405-f814aac4-b0d7-4379-93e6-eff7f7293807.blade.php b/resources/views/form/rapport-lifemankind/1796280405-f814aac4-b0d7-4379-93e6-eff7f7293807.blade.php new file mode 100644 index 00000000..bcd8b9b6 --- /dev/null +++ b/resources/views/form/rapport-lifemankind/1796280405-f814aac4-b0d7-4379-93e6-eff7f7293807.blade.php @@ -0,0 +1,429 @@ + + + + + @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + + +
+ processing... +
+@php +$brandData = [ + +['brand'=>'GUDCEF', 'slug'=>'gudcef_pob_units','pseudoId'=>'gudcef_pob_value'], +['brand'=>'ASTHAKIND', 'slug'=>'asthakind_pob_units','pseudoId'=>'asthakind_pob_value'], +['brand'=>'VENTIDOX', 'slug'=>'ventidox_pob_units','pseudoId'=>'ventidox_pob_value'], +['brand'=>'LEVOKAST', 'slug'=>'levokast_pob_units','pseudoId'=>'levokast_pob_value'], +['brand'=>'NUCORT', 'slug'=>'nucort_pob_units','pseudoId'=>'nucort_pob_value'], +['brand'=>'DYDROBOON', 'slug'=>'dydroboon_pob_units','pseudoId'=>'dydroboon_pob_value'], +['brand'=>'BIOPREG LMF', 'slug'=>'biopreg_lmf_pob_units','pseudoId'=>'biopreg_lmf_pob_value'], +['brand'=>'ARGIPREG', 'slug'=>'argipreg_pob_units','pseudoId'=>'argipreg_pob_value'], +['brand'=>'OVABLESS', 'slug'=>'ovabless_pob_units','pseudoId'=>'ovabless_pob_value'], + + + + +]; + +@endphp + +@php + $submissions = Formhelper::getMultiformData($form->partition, $form_id, $form->user_id); + + + $formdata = null; + +if (!empty($submissions->data->submissions)) { + foreach ($submissions->data->submissions as $submission) { + if ($submission->id == $id) { + $formdata = $submission->formdata ?? null; + break; + } + } +} + +@endphp + + + +
+
+
+
+
+
+ + @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 +
+ + + @csrf + @if($id) + + @endif + @if(isset($form->manager_can_submit) && $form->manager_can_submit == true) +
+ + + +
+ @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 + @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($brandData as $brand) + + + + + + + + @endforeach + +
BrandRx (Prescription)POB (value)
{{ $brand['brand'] }} + + + +
+
+ + +
+ @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