diff --git a/Controleur/ControleurAccueil.php b/Controleur/ControleurAccueil.php index 531f187..4a9c329 100755 --- a/Controleur/ControleurAccueil.php +++ b/Controleur/ControleurAccueil.php @@ -15,22 +15,8 @@ class ControleurAccueil extends Controleur { public function index() { // KPIs - $kpis = $this->synthese->getKpis(); - /* - $kpis = [ - "assures" => 1248, - "nombre_salarie" => 405, - "nombre_ayant" => 843, - "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"], @@ -56,20 +42,11 @@ class ControleurAccueil extends Controleur { $dataTabClaims = json_encode($tabclaims, JSON_NUMERIC_CHECK); - // Évolution cotisations - $months = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin"]; - $monthlyCotisations = [ - 24500000, - 25800000, - 26200000, - 27500000, - 28900000, - 30000000 - ]; - // SINISTRALITÉ (manquante jusqu’ici) $lossRatioLabels = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin"]; $lossRatioValues = [62, 68, 71, 65, 73, 69]; // % + + // $this->genererVue( array @@ -77,8 +54,6 @@ class ControleurAccueil extends Controleur { 'kpis' => $kpis, 'activities' => $activities, 'alerts' => $alerts, - 'months' => $months, - 'monthlyCotisations' => $monthlyCotisations, 'lossRatioLabels' => $lossRatioLabels, 'lossRatioValues' => $lossRatioValues, 'dataTabClaims' => $dataTabClaims diff --git a/Vue/Accueil/index.php b/Vue/Accueil/index.php index 10f47e2..4f6de53 100644 --- a/Vue/Accueil/index.php +++ b/Vue/Accueil/index.php @@ -24,8 +24,15 @@