a
This commit is contained in:
parent
b8043011a8
commit
75ec36ab2a
|
|
@ -335,8 +335,17 @@
|
||||||
$consommationGlobaleBenefOut = $this->nettoyer($college['consommation_individuOut']);
|
$consommationGlobaleBenefOut = $this->nettoyer($college['consommation_individuOut']);
|
||||||
$niveauGlobalConsoBenefOut = ($consommationGlobaleBenefOut*100)/$plafondGlobalFamilleOut;
|
$niveauGlobalConsoBenefOut = ($consommationGlobaleBenefOut*100)/$plafondGlobalFamilleOut;
|
||||||
|
|
||||||
|
$plafondGlobalFamilleInp = $this->nettoyer($police['plafondInp']);
|
||||||
|
$consommationGlobaleFamilleInp = $this->nettoyer($police['consommationInp']);
|
||||||
|
$niveauGlobalConsoFamilleInp = ($consommationGlobaleFamilleInp*100)/$plafondGlobalFamilleInp;
|
||||||
|
$soldeConsommationInp = $this->nettoyer($police['soldeConsommationInp']);
|
||||||
|
|
||||||
|
$consommationGlobaleBenefInp = $this->nettoyer($college['consommation_individuInp']);
|
||||||
|
$niveauGlobalConsoBenefInp = ($consommationGlobaleBenefInp*100)/$plafondGlobalFamilleInp;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<!-- OUTPATIENT -->
|
||||||
<div class="row mb-2 mt-2">
|
<div class="row mb-2 mt-2">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<div class="rounded p-2 border border-primary">
|
<div class="rounded p-2 border border-primary">
|
||||||
|
|
@ -367,11 +376,49 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if($police['soldeConsommationOut']<="0") :?>
|
<?php if($police['soldeConsommationOut']<="0") :?>
|
||||||
<div class="alert alert-danger py-1 mb-0">
|
<div class="alert alert-danger py-1 mb-0">
|
||||||
<i class="fas fa-exclamation-triangle me-1"></i>
|
<i class="fas fa-exclamation-triangle me-1"></i>
|
||||||
<?= _("Plafond familial atteint!") ?>
|
<?= _("Plafond familial atteint!") ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<!-- INPATIENT -->
|
||||||
|
<div class="row mb-2 mt-2">
|
||||||
|
<div class="col-4">
|
||||||
|
<div class="rounded p-2 border border-primary">
|
||||||
|
<small class="text-muted d-block"><?= _("Dépense") ?></small>
|
||||||
|
<h4 class="text-primary mb-0"><?= format_N($consommationGlobaleFamilleInp) ?></h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-4">
|
||||||
|
<div class="rounded p-2 border border-success">
|
||||||
|
<small class="text-muted d-block"><?= _("Plafond") ?></small>
|
||||||
|
<h4 class="text-success mb-0"><?= format_N($plafondGlobalFamilleInp) ?></h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-4">
|
||||||
|
<div class="rounded p-2 border border-danger">
|
||||||
|
<small class="text-muted d-block"><?= _("Solde") ?></small>
|
||||||
|
<h4 class="text-danger mb-0"><?= format_N($soldeConsommationInp) ?></h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="progress mb-3" >
|
||||||
|
<div class="progress-bar <?= $niveauGlobalConsoFamilleInp >= 80 ? 'bg-danger' : ($niveauGlobalConsoFamilleInp >= 50 ? 'bg-warning' : 'bg-success') ?>"
|
||||||
|
style="width: <?= min($niveauGlobalConsoFamilleInp, 100) ?>%">
|
||||||
|
<?= number_format($niveauGlobalConsoFamilleInp, 1) ?>%
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if($police['soldeConsommationInp']<="0") :?>
|
||||||
|
<div class="alert alert-danger py-1 mb-0">
|
||||||
|
<i class="fas fa-exclamation-triangle me-1"></i>
|
||||||
|
<?= _("Plafond familial atteint!") ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user