From 8a28d31e5f8f21c8ecad6e46b6506ea5bcd84fa8 Mon Sep 17 00:00:00 2001 From: Abdel LAMRANI Date: Thu, 24 Sep 2026 12:37:43 +0200 Subject: [PATCH] bug: :bug: fix filter and show objectives --- .../Fo/Pro/DashboardController.php | 10 +- .../ts/fo/components/ObjectivesComponent.vue | 92 +++++++++++-------- .../views/fo/pro/dashboard/index.blade.php | 46 ++++------ 3 files changed, 80 insertions(+), 68 deletions(-) diff --git a/app/Http/Controllers/Fo/Pro/DashboardController.php b/app/Http/Controllers/Fo/Pro/DashboardController.php index 7ff8a8f..9964178 100644 --- a/app/Http/Controllers/Fo/Pro/DashboardController.php +++ b/app/Http/Controllers/Fo/Pro/DashboardController.php @@ -92,15 +92,17 @@ class DashboardController extends Controller ['status', 1], ['category_id', 2] ])->orderBy('created_at', 'ASC')->paginate(4); - + $objectivesData = [ + 'dbobjectif' => $dbobjectif, + 'dbmyObjectives' => $dbmyObjectives, + 'formEnums' => $formEnums, + ]; return view( 'fo.pro.dashboard.index', compact( 'cotations', 'mps', - 'dbobjectif', - 'dbmyObjectives', - 'formEnums', + 'objectivesData', 'pdfsAnalyse', 'pdfsMarches', 'dateMajCotations', diff --git a/resources/ts/fo/components/ObjectivesComponent.vue b/resources/ts/fo/components/ObjectivesComponent.vue index a0b01e6..311b1cb 100644 --- a/resources/ts/fo/components/ObjectivesComponent.vue +++ b/resources/ts/fo/components/ObjectivesComponent.vue @@ -25,48 +25,66 @@
-
- +
+ - -
+ +
-
- -
-
+
+ + + +
+ +
+ + +
+ +
+ +
+ + }; + + select.value = 'All'; + filtrer(); + + select.addEventListener('change', filtrer); + }); + @endpush