- [
- 'label' => _("Soins Ambulatoires (OUTPATIENT)"),
- 'conso' => $this->nettoyer($police['consommationOut']),
- 'plafond' => $this->nettoyer($police['plafondOut']),
- 'solde' => $this->nettoyer($police['soldeConsommationOut']),
- 'percent' => ($police['plafondOut'] > 0) ? ($police['consommationOut'] * 100) / $police['plafondOut'] : 0
- ],
- 'INP' => [
- 'label' => _("Hospitalisation (INPATIENT)"),
- 'conso' => $this->nettoyer($police['consommationInp']),
- 'plafond' => $this->nettoyer($police['plafondInp']),
- 'solde' => $this->nettoyer($police['soldeConsommationInp']),
- 'percent' => ($police['plafondInp'] > 0) ? ($police['consommationInp'] * 100) / $police['plafondInp'] : 0
- ]
- ];
-
- foreach ($types as $key => $data):
- $colorClass = ($data['percent'] >= 90) ? 'danger' : (($data['percent'] >= 70) ? 'warning' : 'success');
- ?>
-
-
-
= $data['label'] ?>
- = number_format($data['percent'], 1) ?>%
-
-
-
-
-
-
-
- = _("Consommé") ?>
- = format_N($data['conso']) ?>
-
-
-
-
- = _("Plafond") ?>
- = format_N($data['plafond']) ?>
-
-
-
-
- = _("Solde") ?>
- = format_N($data['solde']) ?>
-
-
-
-
-
-
- = _("Plafond atteint pour ce poste") ?>
-
-
+
+ = 90) ? 'danger' : (($niveauGlobalConsoFamilleOut >= 70) ? 'warning' : 'success'); ?>
+
+
= _("Soins Ambulatoires (OUT)") ?>
+ = number_format((float)$niveauGlobalConsoFamilleOut, 1) ?>%
-
+
+
+
= _("Consommé") ?>= format_N($consommationGlobaleFamilleOut) ?>
+
= _("Plafond") ?>= format_N($plafondGlobalFamilleOut) ?>
+
= _("Solde") ?>= format_N($soldeConsommationOut) ?>
+
+
+
+
+ = 90) ? 'danger' : (($niveauGlobalConsoFamilleInp >= 70) ? 'warning' : 'success'); ?>
+
+
= _("Hospitalisation (INP)") ?>
+ = number_format((float)$niveauGlobalConsoFamilleInp, 1) ?>%
+
+
+
+
= _("Consommé") ?>= format_N($consommationGlobaleFamilleInp) ?>
+
= _("Plafond") ?>= format_N($plafondGlobalFamilleInp) ?>
+
= _("Solde") ?>= format_N($soldeConsommationInp) ?>
+
+