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 @@
+