From fe339e78b5b21a59f7f24b7a96dcd7ce5c55121d Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Mon, 6 Jul 2026 17:23:06 +0530 Subject: [PATCH] Titans : Novel Invite made all form fileds hidden in HO View 3 --- ...60bf-f07c-465e-9ea1-e8ff0c0b89dd.blade.php | 527 ++++++++++-------- 1 file changed, 307 insertions(+), 220 deletions(-) diff --git a/resources/views/form/rapport-titans/personalization-1782118020-9c6160bf-f07c-465e-9ea1-e8ff0c0b89dd.blade.php b/resources/views/form/rapport-titans/personalization-1782118020-9c6160bf-f07c-465e-9ea1-e8ff0c0b89dd.blade.php index 26c08fd3..bd7115ef 100644 --- a/resources/views/form/rapport-titans/personalization-1782118020-9c6160bf-f07c-465e-9ea1-e8ff0c0b89dd.blade.php +++ b/resources/views/form/rapport-titans/personalization-1782118020-9c6160bf-f07c-465e-9ea1-e8ff0c0b89dd.blade.php @@ -1,4 +1,5 @@ + @include('layouts.shared/title-meta', ['title' => "Form"]) @@ -12,60 +13,54 @@ @php -$history = Formhelper::getMultiformData( - $form->partition, - $form_id, - $form->user_id -); +$history = Formhelper::getMultiformData($form->partition,$form_id,$form->user_id); $historyData = []; if(isset($history->data->submissions) && is_iterable($history->data->submissions)){ - foreach($history->data->submissions as $sub){ +foreach($history->data->submissions as $sub){ - $formdata = $sub->formdata ?? null; + $formdata = $sub->formdata ?? null; - if(!$formdata){ - continue; - } - - // Doctor Name - $doctorName = ''; - - if(!empty($formdata->doctor_name)){ - if(is_array($formdata->doctor_name) || $formdata->doctor_name instanceof \Traversable){ - $doctorName = trim((string)(array_values((array)$formdata->doctor_name)[0] ?? '')); - }else{ - $doctorName = trim((string)$formdata->doctor_name); - } - } - - // Date - $recordDate = ''; - - if(!empty($formdata->record_date)){ - if(is_array($formdata->record_date) || $formdata->record_date instanceof \Traversable){ - $recordDate = trim((string)(array_values((array)$formdata->record_date)[0] ?? '')); - }else{ - $recordDate = trim((string)$formdata->record_date); - } - } - - $historyData[] = [ - 'submission_id' => $sub->id, - 'date' => $recordDate, - 'doctor' => $doctorName, - 'status' => ucfirst($sub->workflow_status ?? ''), - ]; + if(!$formdata){ + continue; } -} + // Doctor Name + $doctorName = ''; + + if(!empty($formdata->doctor_name)){ + if(is_array($formdata->doctor_name) || $formdata->doctor_name instanceof \Traversable){ + $doctorName = trim((string)(array_values((array)$formdata->doctor_name)[0] ?? '')); + }else{ + $doctorName = trim((string)$formdata->doctor_name); + } + } + + // Date + $recordDate = ''; + + if(!empty($formdata->record_date)){ + if(is_array($formdata->record_date) || $formdata->record_date instanceof \Traversable){ + $recordDate = trim((string)(array_values((array)$formdata->record_date)[0] ?? '')); + }else{ + $recordDate = trim((string)$formdata->record_date); + } + } + + + $historyData[] = [ +'submission_id' => $sub->id, +'date' => $recordDate, +'doctor' => $doctorName, +'status' => ucfirst($sub->workflow_status ?? ''), +'submission' => $sub, + +];}} + +@endphp{{--
{{ print_r($history->data->submissions[0], true) }}
--}} -@endphp -{{--
-{{ print_r($history->data->submissions[0], true) }}
-
--}}
@@ -74,199 +69,209 @@ if(isset($history->data->submissions) && is_iterable($history->data->submissions
- @if(Session::has('error'))
{{Session::get('error')}}
-
@endif - @if(session('success'))
{{ session('success') }} + @if(Session::has('error'))
{{Session::get('error')}}
+
@endif + @if(session('success'))
{{ session('success') }} +
+
@endif +
+

{{$form->title}}

+
+
+ + + +
+
+
Select any one of the templates
+ @foreach($personalizations as $pers) +
+
+ {{$pers->title}}
-
@endif -
-

{{$form->title}}

-
-
+ @endforeach +
- - -
-
-
Select any one of the templates
- @foreach($personalizations as $pers) -
-
- {{$pers->title}} -
- @endforeach -
- -
-
- - - @csrf -
-
- -
-
- -
-
- @foreach($questions as $question) -
- - @switch($question->type) - @case('hidden') - - @break - @case('text') - @case('email') - @case('tel') - @case('date') - - @break - @case('number') - - @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') - -

500MB Max File size

- @break - @case('multitextbox') -
- @foreach($question->options as $option) -
{{$option->display}}
-
- -
- @endforeach -
+
+ + + + + @csrf +
+
+ +
+
+ +
+
+ @foreach($questions as $question) +
+ + @switch($question->type) + @case('hidden') + @break - @endswitch + @case('text') + @case('email') + @case('tel') + @case('date') + + @break + @case('number') + + @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') + +

500MB Max File size

+ @break + @case('multitextbox') +
+ @foreach($question->options as $option) +
{{$option->display}}
+
+ +
+ @endforeach
- @endforeach - @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) ) -
- + @break + @endswitch
+ @endforeach + @if(!isset($form->is_approval) || (isset($form->is_approval) && $form->is_approval != 'yes' ) ) +
+ +
+ @endif +
+ + +
+
+
+ + @csrf +
+
+ +
+
+ {{-- --}} + +
+
+
+ +
+
+ @if(count($historyData)) + +
+ +
History
+ +
+ + + + + + + + + + + + + {{--
+                            {{ print_r($historyData, true) }}
+                            
--}} + + @foreach($historyData as $row) + + + + + + + + + + -
History
+ -
-
DateDoctor NameStatusAction
{{ $row['date'] }}{{ $row['doctor'] }}{{ ucfirst($row['status']) }} + + @if(strtolower($row['status']) == 'approved') + + + Download + + + @elseif(strtolower($row['status']) == 'rejected') + + + @endif - - - - -
-
- - @csrf -
-
- -
-
- {{-- --}} - -
-
-
- -
-
- @if(count($historyData)) -
+
+ @endforeach - - - - - - - - + - - {{--
-                                {{ print_r($historyData, true) }}
-                                
--}} +
DateDoctor NameStatusAction
+
- @foreach($historyData as $row) + @endif +
- +
+
+ - {{ $row['date'] }} + - {{ $row['doctor'] }} - - {{ ucfirst($row['status']) }} - - - - @if(strtolower($row['status']) == 'approved') - - - Download - - - @endif - - - - - - @endforeach - - - - -
- - @endif -
- -
-
- - - - -
-
- +
- + - + + + + + @include('layouts.shared/footer-script') + + + + + \ No newline at end of file