From f824e025585c8154ea923f58793f7968ddee57a0 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 23 Dec 2025 15:51:55 +0000 Subject: [PATCH] tras --- Controleur/ControleurAccueil.php | 49 +++++++++++++++++--------- Vue/Accueil/index.php | 59 +++++++++++++++++++++++++++----- 2 files changed, 83 insertions(+), 25 deletions(-) diff --git a/Controleur/ControleurAccueil.php b/Controleur/ControleurAccueil.php index fbce523..f8342b2 100755 --- a/Controleur/ControleurAccueil.php +++ b/Controleur/ControleurAccueil.php @@ -13,13 +13,14 @@ class ControleurAccueil extends Controleur { public function index() { // KPIs $kpis = [ - "assures" => 1256, - "sinistres_count" => 78, - "sinistres_amount" => 42300, - "cotisations" => 125600, - "solde" => 8750 + "assures" => 1248, + "sinistres_count" => 92, + "sinistres_amount" => 48750000, + "cotisations" => 162300000, + "solde" => 12500000 ]; + // Activité récente $activities = [ ["icon" => "fas fa-user-plus", "label" => "Nouveaux salariés ajoutés", "time" => "Il y a 1 heure"], @@ -36,19 +37,31 @@ class ControleurAccueil extends Controleur { ]; // Répartition sinistres - $claimsBreakdown = [ - "Hospitalisation" => 35, - "Dentaire" => 25, - "Optique" => 20, - "Consultations" => 20 + $claimsLabels = [ + "Consultations", + "Pharmacie", + "Hospitalisation", + "Imagerie", + "Dentaire" + ]; + + $claimsValues = [ + 22, + 28, + 30, + 12, + 8 ]; // Évolution cotisations - $monthlyContributions = [ - "Janv" => 115000, - "Fév" => 120000, - "Mars" => 129000, - "Avril"=> 135000 + $months = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin"]; + $monthlyCotisations = [ + 24500000, + 25800000, + 26200000, + 27500000, + 28900000, + 30000000 ]; $this->genererVue( @@ -57,8 +70,10 @@ class ControleurAccueil extends Controleur { 'kpis' => $kpis, 'activities' => $activities, 'alerts' => $alerts, - 'claimsBreakdown' => $claimsBreakdown, - 'monthlyContributions' => $monthlyContributions + 'claimsLabels' => $claimsLabels, + 'claimsValues' => $claimsValues, + 'months' => $months, + 'monthlyCotisations' => $monthlyCotisations ) ); } diff --git a/Vue/Accueil/index.php b/Vue/Accueil/index.php index 08b7c76..63a449b 100644 --- a/Vue/Accueil/index.php +++ b/Vue/Accueil/index.php @@ -9,18 +9,20 @@
-

-
/
+

+
-

-
+

+
/
+ +

-
+
@@ -56,13 +58,54 @@

-
+
+ +
-

Évolution des cotisations') ?>

-
Graphique courbe
+

+
+ +
+ +