From 1f3f1bccea49f10276af1d4bb12853b9332c9e83 Mon Sep 17 00:00:00 2001 From: zeeshan Date: Fri, 4 Dec 2026 15:40:02 +0530 Subject: [PATCH] Mesalo (Mesalo Premier League) --- ...b944-635e-4c94-8821-e482612d4f92.blade.php | 466 ++++++++++++++++++ 1 file changed, 466 insertions(+) create mode 100644 resources/views/form/rapport-mesalo/1796371833-3e8ab944-635e-4c94-8821-e482612d4f92.blade.php diff --git a/resources/views/form/rapport-mesalo/1796371833-3e8ab944-635e-4c94-8821-e482612d4f92.blade.php b/resources/views/form/rapport-mesalo/1796371833-3e8ab944-635e-4c94-8821-e482612d4f92.blade.php new file mode 100644 index 00000000..37e08d5b --- /dev/null +++ b/resources/views/form/rapport-mesalo/1796371833-3e8ab944-635e-4c94-8821-e482612d4f92.blade.php @@ -0,0 +1,466 @@ + + + + + @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) + + + +
+ processing... +
+@php +$brandData = [ + +['brand'=>"Mesalo OD POB Units", 'slug'=>'mesalo_od_pob_units','pseudoId'=>'mesalo_od_pob_value'], +['brand'=>"Mesalo Foam POB Units", 'slug'=>'mesalo_foam_pob_units','pseudoId'=>'mesalo_foam_pob_value'], +['brand'=>"Total", 'slug'=>'total_units','pseudoId'=>'total_value'], + + +]; + +@endphp + +@php + $submissions = Formhelper::getMultiformData($form->partition, $form_id, $form->user_id); + /* $submission = null; + if(isset($submissions->data->submissions) && count($submissions->data->submissions) > 0) { + $submission = $submissions->data->submissions[1]; + $formdata = $submission->formdata ?? (object)[]; + } else { + $formdata = []; + } */ + + +$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 + +
BrandUnitsValue
{{ $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