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