diff --git a/Controleur/ControleurAccueil.php b/Controleur/ControleurAccueil.php index 74656b1..fbce523 100755 --- a/Controleur/ControleurAccueil.php +++ b/Controleur/ControleurAccueil.php @@ -5,15 +5,61 @@ require_once 'Modele/Menuvueutilisateur.php'; class ControleurAccueil extends Controleur { private $menuvue; - public function __construct() { $this->menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Accueil'); } public function index() { + // KPIs + $kpis = [ + "assures" => 1256, + "sinistres_count" => 78, + "sinistres_amount" => 42300, + "cotisations" => 125600, + "solde" => 8750 + ]; + + // Activité récente + $activities = [ + ["icon" => "fas fa-user-plus", "label" => "Nouveaux salariés ajoutés", "time" => "Il y a 1 heure"], + ["icon" => "fas fa-sign-out-alt", "label" => "5 départs validés", "time" => "Il y a 2 heures"], + ["icon" => "fas fa-pause-circle", "label" => "3 contrats suspendus", "time" => "Il y a 3 jours"], + ["icon" => "fas fa-file-invoice", "label" => "Facture de février réglée", "time" => "Il y a 3 jours"] + ]; + + // Alertes + $alerts = [ + "Plafond de remboursement atteint", + "Paiement en retard de 4 520 €", + "Documents manquants pour 2 dossiers" + ]; + + // Répartition sinistres + $claimsBreakdown = [ + "Hospitalisation" => 35, + "Dentaire" => 25, + "Optique" => 20, + "Consultations" => 20 + ]; + + // Évolution cotisations + $monthlyContributions = [ + "Janv" => 115000, + "Fév" => 120000, + "Mars" => 129000, + "Avril"=> 135000 + ]; - - $this->genererVue(); + $this->genererVue( + array + ( + 'kpis' => $kpis, + 'activities' => $activities, + 'alerts' => $alerts, + 'claimsBreakdown' => $claimsBreakdown, + 'monthlyContributions' => $monthlyContributions + ) + ); } } diff --git a/Vue/Accueil/index.php b/Vue/Accueil/index.php index e69de29..28a9ed9 100644 --- a/Vue/Accueil/index.php +++ b/Vue/Accueil/index.php @@ -0,0 +1,68 @@ +