diff --git a/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php b/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php new file mode 100644 index 00000000..3c94a4b8 --- /dev/null +++ b/resources/views/form/rapport-copd/1780297253-4b6e680c-f3a0-47f3-9375-04f5bdf52dd4.blade.php @@ -0,0 +1,881 @@ + + + + + @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 + @if(isset($form->user_info)) +
+
Submitted By: {{$form->user_info->name}}
+
+ @endif + + @php + $submissions = Formhelper::getMultiformData( $form->partition, $form_id, $form->user_id); + $submissions = $submissions->data->submissions; + + /* echo'
';
+                            print_r($submissions[0]);
+
+                            echo'
';*/ + + $submissions = Formhelper::getMultiformData( + $form->partition, + $form_id, + $form->user_id + ); + + $submissions = $submissions->data->submissions; + + $submittedDoctors = collect($submissions)->map(function ($item) { + + return $item->formdata->cont_id ?? null; + + })->filter()->unique()->values()->toArray(); + + + + + @endphp + + @if(count($submissions)===0 || $id) +
+ + @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, + ["record_date","select_week","select_month"] ) ) + @continue; + @endif +
+ + @switch($question->type) + @case('hidden') + + @break + @case('text') + code,['legacy_code','speciality']) ? 'readonly' : '' }}> + @break + + @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 + @endswitch +
+ @endforeach + @php + $wrapperCount = $id ? 1 : 10; + @endphp + + @for($i = 0; $i < $wrapperCount; $i++) +
+ + @if($id) +
Edit Doctor
+ @else +
Doctor {{ $i + 1 }}
+ @endif + + @foreach($questions as $question) + + @if(in_array($question->code, + ["record_date"])) + @continue + @endif +
+ + @switch($question->type) + @case('hidden') + + @break + @case('text') + code,['legacy_code','speciality']) ? 'readonly' : '' }}> + @break + @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') + @if ($question->code == 'contact_id') + + @else + + @endif + @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 + @endswitch +
+ + {{-- Added this Heading/label for brands --}} + @if($question->code == 'total_monthly_prescriptions_vilanterol_fluticasone') +
Enter Monthly Rx of Competition Brand
+ @endif + + @endforeach +
+ @endfor + + @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != + 'yes' ) ) +
+ @if(!$id) + + @endif + +
+ @endif +
+ @elseif(!$id) +

You have already submitted 10 Doctors, go to View History to Edit if required

+ @endif + +
+
+ + + + +
+
+ +
+ +
+ + + @include('layouts.shared/footer-script') + + + + + +