This commit is contained in:
KONE SOREL 2025-12-31 18:17:02 +00:00
parent 4244a4ab73
commit 81a0518a04

View File

@ -85,4 +85,88 @@
</div>
</div>
</fieldset>
<div id="div_garanties" class="mt-4">
<div class="row g-3">
<!-- Garanties de Base -->
<div id="div_garbase" class="col-sm-12 col-md-5">
<fieldset class="card">
<div class="card-header py-2">
<h5 class="fw-bold text-secondary mb-0"><?= _("Garanties de Base") ?></h5>
</div>
<div class="card-body p-0">
<table class="table table-sm table-striped table-bordered table-hover custom-table mb-0">
<thead class="text-center">
<tr>
<th class="w-50"><?= _("Garanties de Base") ?></th>
<th class="w-15"><?= _("Tx") ?></th>
<th class="w-25"><?= _("Plafond") ?></th>
<th class="w-10"><?= _("Bn") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):
$idGarbase=$this->nettoyer($garantiebase['id']);
$garantie = est_anglophone() ? $this->nettoyer($garantiebase['garantieEng']) : $this->nettoyer($garantiebase['garantie']);
?>
<tr class="align-middle text-center">
<td><?= $garantie ?></td>
<td><?= $this->nettoyer($garantiebase['tauxPlafond']) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($garantiebase['plafond'])) ?></td>
<td>
<div class="form-check d-flex justify-content-center">
<input class="form-check-input" type="checkbox"
<?= $garantiebase['champApplication']=='1' ? 'checked' : '' ?> disabled>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</fieldset>
</div>
<!-- Garanties Optionnelles Acquises -->
<div id="div_gar_opt_acquises" class="col-sm-12 col-md-7">
<fieldset class="card">
<div class="card-header py-2">
<h5 class="fw-bold text-secondary mb-0"><?= _("Garanties Optionnelles Acquises") ?></h5>
</div>
<div class="card-body p-0">
<table class="table table-sm table-striped table-bordered table-hover custom-table mb-0">
<thead class="text-center">
<tr>
<th class="w-5"><?= _("Bn") ?></th>
<th><?= _("Garanties Optionnelles Acquises") ?></th>
<th class="w-15"><?= _("Prime") ?></th>
<th class="w-20"><?= _("Plafond") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['id']);
$garantie = est_anglophone() ? $this->nettoyer($garoptacquise['garantieEng']) : $this->nettoyer($garoptacquise['garantie']);
?>
<tr class="align-middle text-center">
<td>
<div class="form-check d-flex justify-content-center">
<input class="form-check-input" type="checkbox"
<?= $garoptacquise['champApplication']=='1' ? 'checked' : '' ?> disabled>
</div>
</td>
<td><?= $garantie ?></td>
<td><?= format_N($this->nettoyer($garoptacquise['primeOption'])) ?></td>
<td class="text-danger"><?= format_N($this->nettoyer($garoptacquise['plafond'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</fieldset>
</div>
</div>
</div>
</div>