diff --git a/resources/views/form/rapport-team4/1788175239-76b9a95a-2dd2-42ce-8686-72dfe2cd37f7.blade.php b/resources/views/form/rapport-team4/1788175239-76b9a95a-2dd2-42ce-8686-72dfe2cd37f7.blade.php new file mode 100644 index 00000000..9b873578 --- /dev/null +++ b/resources/views/form/rapport-team4/1788175239-76b9a95a-2dd2-42ce-8686-72dfe2cd37f7.blade.php @@ -0,0 +1,574 @@ + + + + + @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);
+                            echo "
"; */ + + $existingCount = count($submissions); + + $targetLimit = 20; // नवीन लिमिट २० + + $historyDoctorIds = []; + + foreach ($submissions as $sub) { + if (isset($sub->formdata->cont_id) && $sub->formdata->cont_id != '') { + $historyDoctorIds[] = (string) $sub->formdata->cont_id; + } + } + + $historyDoctorIds = array_unique($historyDoctorIds); + + @endphp + + @if($existingCount<20 || $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_rxber_type"] ) ) + @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 + @endswitch +
+ @endforeach + @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) ) +
+ +
+ @endif +
+ @elseif(!$id) +

You have already submitted the 20 Chemist & Dr Tagging.

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