diff --git a/resources/views/form/rapport-team3/1774866189-e645a43b-8be4-418a-ab42-cbb1dcae232e.blade.php b/resources/views/form/rapport-team3/1774866189-e645a43b-8be4-418a-ab42-cbb1dcae232e.blade.php index 387d67b0..2c771f21 100644 --- a/resources/views/form/rapport-team3/1774866189-e645a43b-8be4-418a-ab42-cbb1dcae232e.blade.php +++ b/resources/views/form/rapport-team3/1774866189-e645a43b-8be4-418a-ab42-cbb1dcae232e.blade.php @@ -1,55 +1,13 @@ -
- @include('layouts.shared/title-meta', ['title' => 'Form']) - @include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? '']) - + @include('layouts.shared/title-meta', ['title' => "Form"]) + @include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? '']) +
+
";
- // print_r($form);
- // exit;
-
- $data = DB::table('team3_tripleimpact')->where('hierarchy_id', $form->hierarchy_id)->get();
- // echo "";
- // print_r($data);
- // exit;
-
- $history = Formhelper::getMultiformData($form->partition, $form->form_id, $form->user_id);
- // echo '';
- // print_r($history);
- // echo '
';
- // exit
-
- $existingCounts = [
- 'chest' => 0,
- 'pedia' => 0,
- 'gp' => 0,
- ];
-
- if (!empty($history->data->submissions)) {
- foreach ($history->data->submissions as $sub) {
- $spec = strtolower($sub->formdata->speciality ?? '');
-
- if ($spec === 'chest') {
- $existingCounts['chest']++;
- }
- if ($spec === 'pedia') {
- $existingCounts['pedia']++;
- }
- if ($spec === 'gp') {
- $existingCounts['gp']++;
- }
- }
- }
-
-@endphp
-
@@ -58,202 +16,139 @@
- @if (Session::has('error'))
- {{ Session::get('error') }}
-
- @endif
- @if (session('success'))
- {{ session('success') }}
-
-
- @endif
-
- {{ $form->title }}
+ @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
- @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 }}
-
+ @if(isset($form->user_info))
+
+ Submitted By: {{$form->user_info->name}}
+
@endif