This commit is contained in:
KONE SOREL 2025-12-24 19:12:38 +00:00
parent e034ca2c26
commit 1d1b268ab8

View File

@ -5,7 +5,7 @@
<div class="kpis">
<div class="card">
<h3><?= _('Total Contrats')?></h3>
<div class="value text-danger"><?= format_N($kpis["nbPolice"]) ?> </div>
<div class="value"><?= format_N($kpis["nbPolice"]) ?> </div>
</div>
<div class="card">
@ -41,7 +41,13 @@
</div>
<div class="sub-item">
<span><?= _('Sinistralité') ?> :</span>
<strong><?= $kpis["rapportSp"].'%' ?></strong>
<?php if($kpis["rapportSp"] > 65):?>
<strong text-warning><?= $kpis["rapportSp"].'%' ?></strong>
<?php elseif($kpis["rapportSp"] > 80 && $kpis["rapportSp"] <= 100):?>
<strong text-danger><?= $kpis["rapportSp"].'%' ?></strong>
<?php else:?>
<strong text-primary><?= $kpis["rapportSp"].'%' ?></strong>
<?php endif;?>
</div>
</div>
</div>