From b78f73ff9a1b380e878e3b45fd26e12646fb9c1e Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Thu, 5 Nov 2026 17:50:51 +0530 Subject: [PATCH] =?UTF-8?q?Team3=20New=20Form=20-=20Children=E2=80=99s=20D?= =?UTF-8?q?ay=20Activity=202026?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...bc1e-0b56-4bb7-881d-314831ece6ef.blade.php | 338 ++++++++++++++++++ 1 file changed, 338 insertions(+) create mode 100644 resources/views/form/rapport-team3/1793879076-f7d0bc1e-0b56-4bb7-881d-314831ece6ef.blade.php diff --git a/resources/views/form/rapport-team3/1793879076-f7d0bc1e-0b56-4bb7-881d-314831ece6ef.blade.php b/resources/views/form/rapport-team3/1793879076-f7d0bc1e-0b56-4bb7-881d-314831ece6ef.blade.php new file mode 100644 index 00000000..e6370f97 --- /dev/null +++ b/resources/views/form/rapport-team3/1793879076-f7d0bc1e-0b56-4bb7-881d-314831ece6ef.blade.php @@ -0,0 +1,338 @@ + + + + @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 +
+ + @csrf + @if($id) + + @endif + @if(isset($form->manager_can_submit) && $form->manager_can_submit == true) +
+ + + +
+ @endif + + @foreach($questions as $question) +
code == 'upload_bunting_and_awareness_poster_photo') + id="upload_bunting_and_awareness_poster_photo" style="display:none;" + @elseif($question->code == 'upload_drawing_activity_photo') + id="upload_drawing_activity_photo" style="display:none;" + @endif + > + + @switch($question->type) + @case('hidden') + + @break + @case('text') + required == 'yes' ? 'required' : ''}} + value="{{isset($question->value) ? $question->value : ''}}" + @if($question->question == 'Doctor Name') + oninput="this.value = this.value.replace(/[^a-zA-Z ]/g, '')" + @endif + > + @break + @case('email') + @case('tel') + @case('date') + required == 'yes' ? 'required' : ''}} + value="{{isset($question->value) ? $question->value : ''}}" + min="2026-11-01" + max="{{date('Y-m-d')}}"> + @break + @case('number') + required == 'yes'?'required':'' }} value="{{isset($question->value)?$question->value:0}}"> + @break + @case('textarea') + + @break + @case('dropdown') + + @break + @case('radio') + @foreach($question->options as $option) +
+ + +
+ @endforeach + @break + @case('radiometrix') + @php + // Decode the first option's value to use as heading labels + $headings = + count($question->options) > 0 + ? json_decode($question->options[0]->value) + : []; + @endphp + + {{-- Matrix Wrapper with Horizontal Scroll on Small Screens --}} +
+
+ {{-- Table Headers --}} +
+
+ {{-- Placeholder for row labels --}} + @foreach ($headings as $head) +
{{ $head }} +
+ @endforeach +
+ + {{-- Table Rows --}} + @foreach ($question->options as $option) + @php $nn = json_decode($option->value); @endphp +
+
+ {{ $option->display }} +
+ + @foreach ($nn as $value) +
+ display) && $option->display != $option->display ? 'checked' : '' }}> + +
+ @endforeach +
+ @endforeach +
+
+ @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 +
+ @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