From c5a04e6f6a4646a6e13e6f2088dd9319f6224bcd Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Wed, 24 Dec 2025 13:35:46 +0000 Subject: [PATCH] debug --- Controleur/ControleurAccueil.php | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Controleur/ControleurAccueil.php b/Controleur/ControleurAccueil.php index ff4c8c6..40ee0b0 100755 --- a/Controleur/ControleurAccueil.php +++ b/Controleur/ControleurAccueil.php @@ -43,7 +43,27 @@ class ControleurAccueil extends Controleur { // Répartition sinistres $claims = $this->synthese->getClaims(); - var_dump($claims['claimsLabels']); exit(); + + $claimsLabels = array(); + $claimsLabelsEng = array(); + $claimsValues = array(); + + $tabclaims = [ + 'claimsLabels' => [], + 'claimsLabelsEng' => [], + 'claimsValues' => [] + ]; + + foreach ($claims as $v) { + $tabclaims['claimsLabels'][] = $v['claimsLabels']; + $tabclaims['claimsLabelsEng'][] = $v['claimsLabelsEng']; + $tabclaims['claimsValues'][] = $v['claimsValues']; + } + + $dataTabClaims = json_encode($tabclaims,JSON_NUMERIC_CHECK); + + var_dump($dataTabClaims); exit(); + $claimsLabels = [ "Consultations", @@ -53,6 +73,14 @@ class ControleurAccueil extends Controleur { "Dentaire" ]; + $claimsLabelsEng = [ + "Consultations", + "Pharmacie", + "Hospitalisation", + "Imagerie", + "Dentaire" + ]; + $claimsValues = [ 22, 28,