71 lines
3.8 KiB
PHP
71 lines
3.8 KiB
PHP
<?php $nbligne = 0; ?>
|
|
|
|
<div id="div_detail_requete" class="card border-0 shadow-sm animate__animated animate__fadeIn">
|
|
<div class="card-header bg-dark text-white p-3">
|
|
<div class="row align-items-center text-center">
|
|
<div class="col-md-6 border-end border-secondary">
|
|
<small class="text-uppercase opacity-75 d-block"><?= _("Volume Total") ?></small>
|
|
<span class="h5 fw-bold"><?= format_N($rpsinistres_total['nbLigne']) ?> <?= _("Lignes") ?></span>
|
|
</div>
|
|
<div class="col-md-6 border-end border-secondary">
|
|
<small class="text-uppercase opacity-75 d-block"><?= _("Montant Total") ?></small>
|
|
<span class="h5 fw-bold text-warning"><?= format_N($rpsinistres_total['montant_total']) ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered table-hover tabliste compact w-100" id="table_sinistres_detail" style="font-size:0.85rem; white-space:nowrap;">
|
|
<thead class="table-light border-bottom text-uppercase small fw-bold">
|
|
<tr>
|
|
<th class="text-center"><?= _("N° Bénéficiaire") ?></th>
|
|
<th><?= _("Bénéficiaire") ?></th>
|
|
<th class="text-center"><?= _("Date") ?></th>
|
|
<th class="text-center"><?= _("Prestataire") ?></th>
|
|
<th class="text-center"><?= _("Catégorie") ?></th>
|
|
<th class="text-center"><?= _("N° Facture") ?></th>
|
|
<th class="text-center"><?= _("Garantie") ?></th>
|
|
<th class="text-end px-3"><?= _("Montant") ?></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($rpsinistres as $rpsinistre):
|
|
$nbligne++;
|
|
$CategoriePrestataire = est_anglophone()
|
|
? $this->nettoyer($rpsinistre['CategoriePrestataireEng'])
|
|
: $this->nettoyer($rpsinistre['CategoriePrestataire']);
|
|
?>
|
|
<tr>
|
|
<td class="text-center fw-bold text-primary"><?= $this->nettoyer($rpsinistre['numeroBeneficiaire']) ?></td>
|
|
<td class="text-uppercase"><?= $this->nettoyer($rpsinistre['Beneficiaire']) ?></td>
|
|
<td class="text-center text-muted"><?= dateLang($this->nettoyer($rpsinistre['Date']), $_SESSION['lang']) ?></td>
|
|
<td><?= $this->nettoyer($rpsinistre['Prestataire']) ?></td>
|
|
<td class="text-center small"><?= $CategoriePrestataire ?></td>
|
|
<td class="text-center">#<?= $this->nettoyer($rpsinistre['idFacture']) ?></td>
|
|
<td class="text-center"><span class="badge bg-light text-dark border"><?= $this->nettoyer($rpsinistre['codeGarantie']) ?></span></td>
|
|
<td class="text-end fw-bold px-3"><?= format_N($this->nettoyer($rpsinistre['fraisReel'])); ?></td>
|
|
</tr>
|
|
|
|
<?php
|
|
/*
|
|
if ($nbligne == 200) {
|
|
$nbligne = "> " . $nbligne . " => " . _("Export Excel");
|
|
break;
|
|
}
|
|
*/
|
|
?>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="card-footer bg-white d-flex justify-content-between align-items-center py-2">
|
|
<span class="text-muted small italic">
|
|
<i class="fas fa-history me-1"></i><?= _("Généré le") ?> <?= date('d/m/Y H:i') ?>
|
|
</span>
|
|
<span class="badge bg-secondary opacity-75"><?= $_SESSION['numeroPolice_C'] ?></span>
|
|
</div>
|
|
|
|
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>">
|
|
</div>
|