a
This commit is contained in:
parent
2f3bb89764
commit
971e2efd95
|
|
@ -308,603 +308,7 @@
|
|||
|
||||
</a>
|
||||
|
||||
<div class="password-requirements mt-2 alert alert-info mt-3">
|
||||
<small>
|
||||
<i class="fas fa-info-circle me-2"></i>
|
||||
<?= _("Cliquer sur chaque section ci-dessous pour afficher/masquer ses détails.") ?>
|
||||
</small>
|
||||
</div>
|
||||
<div class="inter-sante-container mb-4">
|
||||
<!-- Section des garanties et dépenses de la famille -->
|
||||
<section class="accordion-section">
|
||||
<h2 class="accordion-header">
|
||||
<i class="fas fa-file-medical text-primary"></i>
|
||||
<span class="accordion-title"><?= _("Barème des garanties")?></span>
|
||||
<i class="accordion-icon bi bi-chevron-down"></i>
|
||||
</h2>
|
||||
|
||||
|
||||
<div class="accordion-content">
|
||||
<div class="legend-container d-none d-lg-inline">
|
||||
<table class="legend-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-cell"><?= _('Légende').':'?></td>
|
||||
<td class="text-cell"><?= _('Consommation').' >= 50%'?></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="color-cell color-1"></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="text-cell"><?= _('Consommation').' >= 80%'?></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="color-cell color-2"></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="text-cell"><?= _('Consommation').' = 100% / '._('Transaction').' = 100%'?></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="color-cell color-3"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tab-container">
|
||||
<fieldset>
|
||||
<!-- Tableau desktop (affiché sur les écrans moyens et grands) -->
|
||||
<div class="d-none d-md-block">
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt; white-space:nowrap;">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th rowspan="2" width="5%" style="text-align:center"> <?= _("Exercice") ?> </th>
|
||||
<th rowspan="2" width="20%" style="text-align:center"> <?= _("Garantie") ?> </th>
|
||||
<th rowspan="2" style='border-right:1px solid #ddd !important; text-align:center' width="5%"> <?= _("Taux") ?> </th>
|
||||
|
||||
<th colspan="4" style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Consommations") ?> </th>
|
||||
<th colspan="4" style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Prestations") ?> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Plafond") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Périodicité") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Dépenses") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Solde") ?> </th>
|
||||
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Nb Transaction") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Périodicité") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Nbre Prestation") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Solde") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($garantieadherents as $v):
|
||||
$champApplication = $this->nettoyer($v['champApplication']);
|
||||
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
|
||||
$transactionFamille = $this->nettoyer($v['transactionFamille']);
|
||||
$soldeTransactionFamille = $this->nettoyer($v['soldeTransactionFamille']);
|
||||
$idAdherent = $this->nettoyer($v['idAdherent']);
|
||||
$codeGarantie = $this->nettoyer($v['codeGarantie']);
|
||||
$exercieReference = $this->nettoyer($v['exercieReference']);
|
||||
$plafondFamille = format_N($this->nettoyer($v['plafondFamille']));
|
||||
$nbreTransactionFamille = $this->nettoyer($v['nbreTransactionFamille']);
|
||||
?>
|
||||
<?php if($pourcentConsoFamille>='50' && $pourcentConsoFamille<'80'): ?>
|
||||
<tr class="color-1" valign="top">
|
||||
<?php elseif($pourcentConsoFamille>='80' && $pourcentConsoFamille <'100'): ?>
|
||||
<tr class="color-2" valign="top">
|
||||
<?php elseif($pourcentConsoFamille >='100' || $transactionFamille=="1"): ?>
|
||||
<tr class="color-3"valign="top">
|
||||
<?php else: ?>
|
||||
<tr valign="top">
|
||||
<?php endif; ?>
|
||||
<td align='center'> <?= $this->nettoyer($v['exercieReference'])?> </td>
|
||||
<td align='center'>
|
||||
<?php if($pourcentConsoFamille >='95' || $transactionFamille=="1"): ?>
|
||||
<a title="<?= _("Plafond ou nombre de transaction atteint pour cette garantie.")?>" href="javascript:alert('Plafond ou nombre de transaction atteint pour cette garantie!');">
|
||||
<span style="color:blue; background-color:#eeeeee; border:1px solid #000; border-radius:3px;">
|
||||
<?= $this->nettoyer($v['garantie'])?>
|
||||
</span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?= $this->nettoyer($v['garantie'])?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td align='center'><?= $this->nettoyer($v['tauxPlafond']).'%'; ?></td>
|
||||
|
||||
<td align='center' ><?= $plafondFamille ?></td>
|
||||
<td align='center'><?= $v['periodicitePlafondFamille'] ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
|
||||
<td align='center' ><?= format_N($this->nettoyer($v['soldeGarantieFamille'])) ?></td>
|
||||
|
||||
<td align='center'><?= $this->nettoyer($v['nbreTransactionFamille']) ?></td>
|
||||
<td align='center'><?= $v['periodiciteFamille'] ?></td>
|
||||
<td align='center'><?= $this->nettoyer($v['comptePrestationFamille']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($v['soldeTransactionFamille']) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Affichage mobile (cartes) -->
|
||||
<div class="d-md-none">
|
||||
<div class="card-header bg-light mt-0 mb-1">
|
||||
<h4 class="mb-0 text-secondary">
|
||||
<i class="fas fa-layer-group me-2"></i>
|
||||
<?= _("Section des garanties") ?>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<?php foreach ($garantieadherents as $v):
|
||||
$champApplication = $this->nettoyer($v['champApplication']);
|
||||
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
|
||||
$transactionFamille = $this->nettoyer($v['transactionFamille']);
|
||||
$soldeTransactionFamille = $this->nettoyer($v['soldeTransactionFamille']);
|
||||
$idAdherent = $this->nettoyer($v['idAdherent']);
|
||||
$codeGarantie = $this->nettoyer($v['codeGarantie']);
|
||||
$exercieReference = $this->nettoyer($v['exercieReference']);
|
||||
$plafondFamille = format_N($this->nettoyer($v['plafondFamille']));
|
||||
$nbreTransactionFamille = $this->nettoyer($v['nbreTransactionFamille']);
|
||||
|
||||
$garantie = $this->nettoyer($v['garantie']);
|
||||
$exercice = $this->nettoyer($v['exercieReference']);
|
||||
$taux = $this->nettoyer($v['tauxPlafond']).'%';
|
||||
?>
|
||||
<div class="container mt-5">
|
||||
|
||||
<div class="card mb-3 shadow-sm">
|
||||
<div class="card-header bg-light py-2">
|
||||
<div class="align-same-line">
|
||||
<div class="left-content">
|
||||
<?php if($pourcentConsoFamille>='50' && $pourcentConsoFamille<'80'): ?>
|
||||
<span class="badge me-2 color-1"><?= $garantie ?></span>
|
||||
<?php elseif($pourcentConsoFamille>='80' && $pourcentConsoFamille <'100'): ?>
|
||||
<span class="badge me-2 color-2"><?= $garantie ?></span>
|
||||
<?php elseif($pourcentConsoFamille >='100' || $transactionFamille=="1"): ?>
|
||||
<a title="<?= _("Plafond ou nombre de transaction atteint pour cette garantie.")?>" href="javascript:alert_limite('G');">
|
||||
<span class="badge me-2 color-3"><?= $garantie ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="badge bg-success me-2 text-truncate" style="max-width: 195px;" ><?= $garantie ?></span>
|
||||
<?php endif; ?>
|
||||
<strong style="font-size:1.8rem !important;"><?= $taux ?></strong>
|
||||
</div>
|
||||
<small class="text-muted exercice"><?= $exercice ?></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Plafond") ?></span>
|
||||
<span class="fw-bold text-truncate" style="max-width: 100px;"><?= $plafondFamille ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Période") ?></span>
|
||||
<span class="fw-bold"><?= $v['periodicitePlafondFamille'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Dépenses") ?></span>
|
||||
<span class="fw-bold text-success"><?= format_N($this->nettoyer($v['consommationFamille'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Solde") ?></span>
|
||||
<span class="fw-bold text-danger text-truncate" style="max-width: 100px;"><?= format_N($this->nettoyer($v['soldeGarantieFamille'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Détails supplémentaires (accordéon) -->
|
||||
<!-- Dans la section mobile des garanties -->
|
||||
|
||||
<div class="accordion" id="accordionGarantie<?= $codeGarantie ?>">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header" id="heading<?= $codeGarantie ?>">
|
||||
<button class="accordion-button collapsed py-2" type="button" data-bs-toggle="collapse"
|
||||
data-bs-target="#collapse<?= $codeGarantie ?>" aria-expanded="false"
|
||||
aria-controls="collapse<?= $codeGarantie ?>" style="font-size: 1.5rem !important;">
|
||||
<i class="bi bi-chevron-down me-2"></i><?= _("Plus de détails...") ?>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapse<?= $codeGarantie ?>" class="accordion-collapse collapse"
|
||||
aria-labelledby="heading<?= $codeGarantie ?>" data-bs-parent="#accordionGarantie<?= $codeGarantie ?>">
|
||||
<div class="accordion-body">
|
||||
<!-- Contenu détaillé -->
|
||||
<div class="row">
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Transaction") ?></span>
|
||||
<span><?= $this->nettoyer($v['nbreTransactionFamille']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Période") ?></span>
|
||||
<span><?= $v['periodiciteFamille'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Prestation") ?></span>
|
||||
<span><?= $this->nettoyer($v['comptePrestationFamille']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Solde") ?></span>
|
||||
<span><?= $this->nettoyer($v['soldeTransactionFamille']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
|
||||
|
||||
<!-- Section des actes médicaux plafonnés -->
|
||||
<section class="accordion-section">
|
||||
<h2 class="accordion-header">
|
||||
<i class="fas fa-tachometer-alt text-danger"></i>
|
||||
<span class="accordion-title text-truncate" style="max-width: 230px;"><?= _("Barème des actes plafonnés")?></span>
|
||||
<i class="accordion-icon bi bi-chevron-down"></i>
|
||||
</h2>
|
||||
|
||||
<div class="accordion-content">
|
||||
<div class="tab-container">
|
||||
<?php if (empty($actes)): ?>
|
||||
<div class="alert alert-info text-center">
|
||||
<small>
|
||||
<i class="bi bi-info-circle me-2"></i>
|
||||
<?= _("Aucun acte plafonné pour la famille!") ?>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<!-- Tableau desktop (affiché sur les écrans moyens et grands) -->
|
||||
<div class="d-none d-md-block">
|
||||
<div class="legend-container">
|
||||
<table class="legend-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-cell"><?= _('Légende').':'?></td>
|
||||
<td class="text-cell"><?= _('Consommation').' >= 50%'?></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="color-cell color-1"></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="text-cell"><?= _('Consommation').' >= 80%'?></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="color-cell color-2"></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="text-cell"><?= _('Consommation').' = 100% / '._('Transaction').' = 100%'?></td>
|
||||
<td class="spacer-cell"></td>
|
||||
<td class="color-cell color-3"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt; white-space: nowrap;" >
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th rowspan="2" style='text-align:center' > <?= _("Actes "); ?> </th>
|
||||
<th rowspan="2" style='text-align:center'> <?= _("Taux") ?> </th>
|
||||
<th rowspan="2" style='border-right:1px solid #ddd !important; text-align:center' width="8%"> <?= _("Autorisé à"); ?> </th>
|
||||
|
||||
<th colspan="8" style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Famille") ?> </th>
|
||||
<th colspan="8" style='border-right:1px solid #ddd !important;' class="bg-secondary text-center">
|
||||
<?= _("Bénéficiaire") ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Plafond") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Période") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Dépenses") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Solde") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Transaction") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Période") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Prestation") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Solde") ?> </th>
|
||||
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Plafond") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Période") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Dépenses") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Solde") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Transaction") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Période") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Prestation") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Solde") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="overflow:auto;">
|
||||
<?php foreach ($actes as $v):
|
||||
$libelle = $this->nettoyer($v['libelle']);
|
||||
$garantie = $this->nettoyer($v['garantie']);
|
||||
$codeGarantie = $this->nettoyer($v['codeGarantie']);
|
||||
$codePeriodicite = $this->nettoyer($v['codePeriodicite']);
|
||||
|
||||
|
||||
$periodicitePlafondFamille = $this->nettoyer($v['periodicitePlafondFamille']);
|
||||
$periodiciteFamille = $this->nettoyer($v['periodiciteFamille']);
|
||||
$periodicitePlafond = $this->nettoyer($v['periodicitePlafond']);
|
||||
$periodicite = $this->nettoyer($v['periodicite']);
|
||||
|
||||
$codeLienParente = $this->nettoyer($v['codeLienParente']);
|
||||
|
||||
$lienParente = $this->nettoyer($v['lienparente']);
|
||||
|
||||
if (est_anglophone())
|
||||
{
|
||||
$libelle = $this->nettoyer($v['libelleEng']);
|
||||
$garantie = $this->nettoyer($v['garantieEng']);
|
||||
$lienParente = $this->nettoyer($v['lienparenteEng']);
|
||||
|
||||
$periodicitePlafondFamille = $this->nettoyer($v['periodicitePlafondFamilleEng']);
|
||||
$periodiciteFamille = $this->nettoyer($v['periodiciteFamilleEng']);
|
||||
$periodicitePlafond = $this->nettoyer($v['periodicitePlafondEng']);
|
||||
$periodicite = $this->nettoyer($v['periodiciteEng']);
|
||||
}
|
||||
|
||||
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
|
||||
$pourcentConso = $this->nettoyer($v['pourcentConso']);
|
||||
$transactionFamille = $this->nettoyer($v['transactionFamille']);
|
||||
$transactionBeneficiaire = $this->nettoyer($v['transactionBeneficiaire']);
|
||||
$idBeneficiaire = $this->nettoyer($v['idBeneficiaire']);
|
||||
$codeActe = $this->nettoyer($v['codeActe']);
|
||||
$exercieReference = $this->nettoyer($v['exercieReference']);
|
||||
|
||||
$taux = $this->nettoyer($v['tauxPlafond']);
|
||||
$plafondFamille = format_N($this->nettoyer($v['plafondFamille']));
|
||||
$plafond = format_N($this->nettoyer($v['forfaitPlafond']));
|
||||
?>
|
||||
<?php if($pourcentConso>='50' && $pourcentConso<'80'): ?>
|
||||
<tr class="color-1" valign="top">
|
||||
<?php elseif($pourcentConso>='80' && $pourcentConso <'100'): ?>
|
||||
<tr class="color-2" valign="top">
|
||||
<?php elseif($pourcentConso >='100' || $transactionBeneficiaire=="1"): ?>
|
||||
<tr class="color-3" valign="top">
|
||||
<?php else: ?>
|
||||
<tr valign="top">
|
||||
<?php endif; ?>
|
||||
<td ><?= $libelle ?></td>
|
||||
<td align='center'><?= $taux ?></td>
|
||||
<td align='center'><?= $lienParente ?></td>
|
||||
|
||||
<td align='center'><?= $plafondFamille ?></td>
|
||||
<td align='center'><?= $periodicitePlafondFamille ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['soldeActeFamille'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['nbreTransactionFamille'])) ?></td>
|
||||
<td align='center'><?= $periodiciteFamille ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['soldeTransactionFamille'])) ?></td>
|
||||
|
||||
<td align='center'><?= $plafond ?></td>
|
||||
<td align='center'><?= $periodicitePlafond ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['consommation'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['soldeActe'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['nbreTransaction'])) ?></td>
|
||||
<td align='center'><?= $periodiciteFamille ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['comptePrestation'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['soldeTransaction'])) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="d-md-none">
|
||||
<div class="card-header bg-light mt-0 mb-1">
|
||||
<h4 class="mb-0 text-secondary">
|
||||
<i class="fas fa-layer-group me-2"></i>
|
||||
<?= _("Section des actes plafonnés") ?>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<?php foreach ($actes as $v):
|
||||
$libelle = substr($this->nettoyer($v['libelle']),0,25);
|
||||
$garantie = $this->nettoyer($v['garantie']);
|
||||
$codeGarantie = $this->nettoyer($v['codeGarantie']);
|
||||
$codePeriodicite = $this->nettoyer($v['codePeriodicite']);
|
||||
|
||||
|
||||
$periodicitePlafondFamille = $this->nettoyer($v['periodicitePlafondFamille']);
|
||||
$periodiciteFamille = $this->nettoyer($v['periodiciteFamille']);
|
||||
$periodicitePlafond = $this->nettoyer($v['periodicitePlafond']);
|
||||
$periodicite = $this->nettoyer($v['periodicite']);
|
||||
|
||||
$codeLienParente = $this->nettoyer($v['codeLienParente']);
|
||||
$lienParente = $this->nettoyer($v['lienparente']);
|
||||
|
||||
if (est_anglophone())
|
||||
{
|
||||
$libelle = substr($this->nettoyer($v['libelleEng']),0,25);
|
||||
$garantie = $this->nettoyer($v['garantieEng']);
|
||||
$lienParente = $this->nettoyer($v['lienparenteEng']);
|
||||
|
||||
$periodicitePlafondFamille = $this->nettoyer($v['periodicitePlafondFamilleEng']);
|
||||
$periodiciteFamille = $this->nettoyer($v['periodiciteFamilleEng']);
|
||||
$periodicitePlafond = $this->nettoyer($v['periodicitePlafondEng']);
|
||||
$periodicite = $this->nettoyer($v['periodiciteEng']);
|
||||
}
|
||||
|
||||
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
|
||||
$pourcentConso = $this->nettoyer($v['pourcentConso']);
|
||||
$transactionFamille = $this->nettoyer($v['transactionFamille']);
|
||||
$transactionBeneficiaire = $this->nettoyer($v['transactionBeneficiaire']);
|
||||
$idBeneficiaire = $this->nettoyer($v['idBeneficiaire']);
|
||||
$codeActe = $this->nettoyer($v['codeActe']);
|
||||
$exercieReference = $this->nettoyer($v['exercieReference']);
|
||||
$taux = $this->nettoyer($v['tauxPlafond']);
|
||||
$plafondFamille = format_N($this->nettoyer($v['plafondFamille']));
|
||||
$plafond = format_N($this->nettoyer($v['forfaitPlafond']));
|
||||
?>
|
||||
<div class="container mt-2">
|
||||
<div class="card mb-1 shadow-sm">
|
||||
<div class="card-header bg-light py-2">
|
||||
<div class="align-same-line">
|
||||
<div class="left-content">
|
||||
<?php if($pourcentConsoFamille>='50' && $pourcentConsoFamille<'80'): ?>
|
||||
<span class="badge me-2 color-1 text-truncate" style="max-width: 250px;"><?= $libelle ?></span>
|
||||
<?php elseif($pourcentConsoFamille>='80' && $pourcentConsoFamille <'100'): ?>
|
||||
<span class="badge me-2 color-2 text-truncate" style="max-width: 250px;"><?= $libelle ?></span>
|
||||
<?php elseif($pourcentConsoFamille >='100' || $transactionFamille=="1"): ?>
|
||||
<a title="<?= _("Plafond ou nombre de transaction atteint pour cet acte.")?>" href="javascript:alert_limite('A');">
|
||||
<span class="badge me-2 color-3 text-truncate" style="max-width: 250px;"><?= $libelle ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="badge bg-primary me-2 text-truncate" style="max-width: 250px;" ><?= $libelle ?></span>
|
||||
<?php endif; ?>
|
||||
<strong style="font-size:1.8rem !important;"><?= $taux ?></strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 class="text-center mb-1 bg-success text-light"><?= _("Famille")?></h3>
|
||||
<div class="row mb-2">
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Plafond") ?></span>
|
||||
<span class="fw-bold text-truncate" style="max-width: 100px;"><?= $plafondFamille ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Période") ?></span>
|
||||
<span class="fw-bold text-success text-truncate" style="max-width: 100px;"><?= $periodicitePlafondFamille ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Dépenses") ?></span>
|
||||
<span class="fw-bold"><?= format_N($this->nettoyer($v['consommationFamille'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Solde") ?></span>
|
||||
<span class="fw-bold text-danger text-truncate" style="max-width: 100px;"><?= format_N($this->nettoyer($v['soldeActeFamille'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-2">
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Transaction") ?></span>
|
||||
<span><?= format_N($this->nettoyer($v['nbreTransactionFamille'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Période") ?></span>
|
||||
<span class="text-truncate" style="max-width: 100px;"><?= $periodiciteFamille ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Prestation") ?></span>
|
||||
<span><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Solde") ?></span>
|
||||
<span><?= format_N($this->nettoyer($v['soldeTransactionFamille'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 class="text-center mb-1 bg-dark text-light">
|
||||
<?php if(strlen($lienParente) > 4) :?>
|
||||
<?= $lienParente ?>
|
||||
<?php else :?>
|
||||
<?= _("Bénéficiaire")?>
|
||||
<?php endif;?>
|
||||
</h3>
|
||||
<div class="row mb-2">
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Plafond") ?></span>
|
||||
<span class="fw-bold text-truncate" style="max-width: 100px;"><?= $plafond ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Période") ?></span>
|
||||
<span class="fw-bold text-success text-truncate" style="max-width: 100px;"><?= $periodicitePlafond ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Dépenses") ?></span>
|
||||
<span class="fw-bold"><?= format_N($this->nettoyer($v['consommation'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Solde") ?></span>
|
||||
<span class="fw-bold text-danger text-truncate" style="max-width: 100px;"><?= format_N($this->nettoyer($v['soldeActe'])) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-2">
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Transaction") ?></span>
|
||||
<span><?= $this->nettoyer($v['nbreTransaction']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Période") ?></span>
|
||||
<span class="text-truncate" style="max-width: 100px;"><?= $v['periodicite'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Prestation") ?></span>
|
||||
<span><?= $this->nettoyer($v['comptePrestation']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Solde") ?></span>
|
||||
<span><?= $this->nettoyer($v['soldeTransaction']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
-->
|
||||
|
||||
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
|
||||
|
||||
<!-- Section historique des prestations -->
|
||||
<section class="accordion-section">
|
||||
<h2 class="accordion-header">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user