rd
This commit is contained in:
parent
fc0b0a4584
commit
d1efec103b
|
|
@ -1,33 +1,59 @@
|
||||||
<div id="div_gar_exo">
|
<div id="div_gar_exo">
|
||||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
<div class="card shadow-sm border-0">
|
||||||
<thead>
|
<div class="table-responsive">
|
||||||
<tr>
|
<table class="table table-hover align-middle mb-0">
|
||||||
<th style="text-align:center"> <?= _("Exercice") ?> </th>
|
<thead class="table-dark">
|
||||||
<th style="text-align:center"> <?= _("Garantie") ?> </th>
|
<tr>
|
||||||
<th style="text-align:center"> <?= _("Limites Contrat") ?> </th>
|
<th class="ps-3 fw-normal small text-uppercase"><?= _("Garantie") ?></th>
|
||||||
<th style="text-align:center"> <?= _("Taux Incorporation (%)") ?> </th>
|
<th class="text-center fw-normal small text-uppercase"><?= _("Contrat (Annuel)") ?></th>
|
||||||
<th style="text-align:center"> <?= _("Limites en vigeur") ?> </th>
|
<th class="text-center fw-normal small text-uppercase"><?= _("Taux Inc.") ?></th>
|
||||||
<th style="text-align:center"> <?= _("Consommations") ?> </th>
|
<th class="text-center fw-normal small text-uppercase"><?= _("Limite en vigueur") ?></th>
|
||||||
<th style="text-align:center"> <?= _("Solde") ?> </th>
|
<th class="text-center fw-normal small text-uppercase"><?= _("Consommé") ?></th>
|
||||||
</tr>
|
<th class="text-end pe-4 fw-normal small text-uppercase"><?= _("Solde Disponible") ?></th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody>
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($garantieadherents as $garantieadherent):
|
||||||
|
$solde = $this->nettoyer($garantieadherent['solde']);
|
||||||
|
$statusClass = ($solde <= 0) ? 'text-danger fw-bold' : 'text-success fw-bold';
|
||||||
|
$rowClass = ($solde <= 0) ? 'table-danger' : '';
|
||||||
|
?>
|
||||||
|
<tr class="<?= $rowClass ?>">
|
||||||
|
<td class="ps-3 fw-bold text-secondary">
|
||||||
|
<?= $this->nettoyer($garantieadherent['garantie']) ?>
|
||||||
|
<div class="text-muted extra-small" style="font-size: 0.75rem;">
|
||||||
|
Réf: <?= $this->nettoyer($garantieadherent['exercieReference']) ?>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="text-center text-monospace">
|
||||||
|
<?= format_N($this->nettoyer($garantieadherent['plafondAnnuel'])) ?>
|
||||||
|
</td>
|
||||||
|
<td class="text-center">
|
||||||
|
<span class="badge rounded-pill bg-info text-dark">
|
||||||
|
<?= $this->nettoyer($garantieadherent['tauxAvenant']) ?> %
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-center fw-bold">
|
||||||
|
<?= format_N($this->nettoyer($garantieadherent['plafond'])) ?>
|
||||||
|
</td>
|
||||||
|
<td class="text-center text-primary">
|
||||||
|
<?= format_N($this->nettoyer($garantieadherent['consommation'])) ?>
|
||||||
|
</td>
|
||||||
|
<td class="text-end pe-4 <?= $statusClass ?>">
|
||||||
|
<?php if($solde <= 0): ?>
|
||||||
|
<i class="fa-solid fa-circle-exclamation me-1"></i>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?= format_N($solde) ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php foreach ($garantieadherents as $garantieadherent):?>
|
<div class="card-footer bg-light py-3">
|
||||||
<tr valign="top">
|
<div id="div_export_a" class="d-flex justify-content-end gap-2">
|
||||||
<td align='center'> <?= $this->nettoyer($garantieadherent['exercieReference'])?> </td>
|
</div>
|
||||||
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
|
</div>
|
||||||
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafondAnnuel'])) ?></td>
|
</div>
|
||||||
<td align='center'><?= $this->nettoyer($garantieadherent['tauxAvenant']) ?></td>
|
</div>
|
||||||
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
|
|
||||||
<td align='center'><?= format_N($this->nettoyer($garantieadherent['consommation'])) ?></td>
|
|
||||||
<td align='center'><?= format_N($this->nettoyer($garantieadherent['solde'])) ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div id="div_export_a">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user