newdesigngestionnaire/Vue/Autresparametresgeneraux/index.php
2026-02-27 13:20:41 +00:00

513 lines
28 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="page-content">
<input class="sr-only" type="text" id="idSocieteuser" name="idSocieteuser" value="<?= $this->nettoyer($societeuser['idSocieteuser']) ?>">
<input class="sr-only" type="text" id="nomForm" name="nomForm" value="frmautreparametre">
<div class="header-section mb-4">
<div class="d-flex flex-column flex-md-row align-items-md-center justify-content-between bg-white p-3 shadow-sm border-start border-info border-4" style="border-radius: var(--radius-md);">
<div class="d-flex align-items-center">
<div class="icon-shape bg-info-ghost text-info rounded-circle me-3" style="width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-sliders-h fs-4"></i>
</div>
<div>
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= _("Règles Métiers") ?></h4>
<p class="text-muted small mb-0"><?= _("Filtrer et gérer les paramètres opérationnels du centre") ?></p>
</div>
</div>
<div class="position-relative mt-3 mt-md-0" style="min-width: 300px;">
<i class="fas fa-search position-absolute top-50 start-0 translate-middle-y ms-3 text-muted"></i>
<input type="text" id="globalSearch" class="form-control ps-5 border-2 rounded-pill shadow-none" style="font-size: 0.85rem;" placeholder="<?= _('Rechercher un paramètre...') ?>">
</div>
</div>
</div>
<ul class="nav nav-pills nav-fill mb-4 bg-light p-1 rounded-pill shadow-sm">
<li class="nav-item">
<button onclick="showHideElt('Generaux')" class="nav-link active rounded-pill fw-bold" id="btn-Generaux"><?= _("Commun") ?></button>
</li>
<li class="nav-item">
<button onclick="showHideElt('Production')" class="nav-link rounded-pill fw-bold" id="btn-Production"><?= _("Production & Comptabilité") ?></button>
</li>
<li class="nav-item">
<button onclick="showHideElt('Medical')" class="nav-link rounded-pill fw-bold" id="btn-Medical"><?= _("Médical") ?></button>
</li>
<li class="nav-item">
<button onclick="showHideElt('Prestation')" class="nav-link rounded-pill fw-bold" id="btn-Prestation"><?= _("Prestations") ?></button>
</li>
</ul>
<div id="Generaux" class="tab-custom-content">
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-dark py-3 d-flex align-items-center justify-content-between">
<h6 class="mb-0 text-white fw-bold">
<i class="fas fa-globe me-2"></i>
<?= _("LOCALISATION ET SYSTÈME") ?>
</h6>
<span class="badge bg-white text-primary rounded-pill"><?= _("03 Paramètres") ?></span>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr class="searchable-row">
<td width="8%" class="text-center fw-bold text-primary">01</td>
<td class="text-muted fw-bold"><?= _("Langue du centre de gestion") ?></td>
<td width="25%" class="text-center border-start bg-light">
<span class="badge bg-primary-ghost text-primary px-3 py-2 fw-bold text-uppercase">
<?= $this->nettoyer($societeuser['codeLangueSociete']) ?>
</span>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center fw-bold text-primary">02</td>
<td class="text-muted fw-bold"><?= _("Identifiant du fuseau horaire") ?></td>
<td class="text-center border-start bg-light fw-bold text-muted">
<i class="far fa-clock me-1 text-muted"></i> <?= $this->nettoyer($societeuser['code_timezone_identifier']) ?>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center fw-bold text-primary">03</td>
<td class="text-muted fw-bold"><?= _("Devise") ?></td>
<td class="text-center border-start bg-light fw-bold text-primary fs-5">
<?= $this->nettoyer($societeuser['devise']) ?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="Production" class="tab-custom-content" style="display:none;">
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-primary py-3 d-flex align-items-center justify-content-between">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-industry me-2"></i><?= _("Règles de Production") ?>
</h6>
<span class="badge bg-white text-primary rounded-pill"><?= _("13 Paramètres") ?></span>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<thead class="bg-light">
<tr>
<th width="8%" class="text-center border-0">#</th>
<th class="border-0"><?= _("Désignation du Paramètre") ?></th>
<th width="25%" class="text-center border-0"><?= _("Valeur de Configuration") ?></th>
</tr>
</thead>
<tbody>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">01</span></td>
<td class="text-muted fw-bold"><?= _("Pourcentage des honoraires ou commissions perçus par le gestionnaire sur chaque prime encaissée.") ?></td>
<td class="text-center border-start bg-light-info">
<span class="fw-bold text-primary fs-5"><?= $this->nettoyer($societeuser['tauxHonoraires']) ?> %</span>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">02</span></td>
<td class="text-muted fw-bold"><?= _("Plafond du ratio S/P (spMax) pour le calcul du taux dajustement.") ?></td>
<td class="text-center border-start bg-light-info">
<span class="fw-bold text-danger fs-5"><?= $this->nettoyer($societeuser['spMax']) ?> %</span>
</td>
</tr>
<?php
$cartes = [
['03', _("Frais liés à lémission dune nouvelle carte pour un assuré entrant."), 'fraisCarteAN'],
['04', _("Frais démission dune carte lors dun renouvellement."), 'fraisCarteREN'],
['05', _("Frais de réimpression dune carte déjà existante (ex. perte ou détérioration). "), 'fraisCarteImp']
];
foreach($cartes as $c): ?>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold"><?= $c[0] ?></span></td>
<td class="text-muted fw-bold"><?= $c[1] ?></td>
<td class="text-center border-start bg-light-info">
<span class="text-muted fw-bold"><?= format_N($this->nettoyer($societeuser[$c[2]])) ?></span>
<small class="text-muted"><?= $_SESSION['devise_C'] ?></small>
</td>
</tr>
<?php endforeach; ?>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">06</span></td>
<td class="text-muted fw-bold"><?= _("Seuil du ratio S/P déclenchant l'alerte de la surconsommation d'une famille.") ?></td>
<td class="text-center border-start bg-light-info">
<span class="fw-bold text-warning fs-5"><?= $this->nettoyer($societeuser['spAlertAdherent']) ?> %</span>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">07</span></td>
<td class="text-muted fw-bold"><?= _("Pourcentage appliqué à la portion de prime non acquise afin de déterminer le montant de la ristourne.") ?></td>
<td class="text-center border-start bg-light-info">
<span class="fw-bold text-muted"><?= $this->nettoyer($societeuser['tauxRistourne']) ?> %</span>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">08</span></td>
<td class="text-muted fw-bold"><?= _("Seuil du ratio S/P entraînant lannulation de la ristourne.") ?></td>
<td class="text-center border-start bg-light-info">
<span class="fw-bold text-danger"><?= $this->nettoyer($societeuser['seuilRistourne']) ?> %</span>
</td>
</tr>
<?php
$bools = [
['09', _("Activer larchivage automatique des primes dès leur intégration dans la base de gestion."), 'archivageAutomatiquePrime'],
['10', _("Notification individuelle du numéro dassuré (SMS/Mail/WhatsApp)."), 'notificationSmsNumeroAssure'],
['11', _("Notification groupée des numéros dassurés pour lassuré principal."), 'notificationGroupeNumeroAssure'],
['12', _("Activer la facturation spécifique dun garant, calculée séparément pour chaque produit dassurance."), 'parametresFacturationGarantProduit'],
['13', _("Activer la possibilité pour lassuré de téléverser ses photos sur son portail personnel (ex. photo d'authentification')."), 'assureAjoutPhoto']
];
foreach($bools as $b):
$val = ($societeuser[$b[2]] == "1"); ?>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold"><?= $b[0] ?></span></td>
<td class="text-muted fw-bold"><?= $b[1] ?></td>
<td class="text-center border-start bg-light-info">
<span class="badge rounded-pill px-3 py-2 <?= $val ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
<i class="fas <?= $val ? 'fa-check-circle' : 'fa-times-circle' ?> me-1"></i>
<?= $val ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-success py-3 d-flex align-items-center justify-content-between">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-calculator me-2"></i><?= _("Règles Comptables") ?>
</h6>
<span class="badge bg-white text-primary rounded-pill"><?= _("02 Paramètres") ?></span>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr class="searchable-row">
<td width="8%" class="text-center"><span class="badge bg-success-ghost text-success fw-bold">01</span></td>
<td class="text-muted fw-bold"><?= _("Montant de lécart toléré lors de lencaissement comptable des primes facturées au garant.") ?></td>
<td width="25%" class="text-center border-start bg-light-success">
<span class="fw-bold text-muted fs-5"><?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?></span>
<small class="text-muted"><?= $_SESSION['devise_C'] ?></small>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-success-ghost text-success fw-bold">02</span></td>
<td class="text-muted fw-bold"><?= _("Activer le lettrage automatique lors des encaissements des primes facturées aux garants.") ?></td>
<td class="text-center border-start bg-light-success">
<?php $lettrage = ($societeuser['lettrageAutoGarant'] == "1"); ?>
<span class="badge rounded-pill px-3 py-2 <?= $lettrage ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
<?= $lettrage ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="Medical" class="tab-custom-content" style="display:none;">
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-info py-3 d-flex align-items-center justify-content-between">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-comment-alt me-2"></i><?= _("Communication & Notifications") ?>
</h6>
<span class="badge bg-white text-primary rounded-pill"><?= _("14 Paramètres") ?></span>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<thead class="bg-light">
<tr>
<th width="8%" class="text-center border-0 small text-muted">#</th>
<th class="border-0 small text-muted"><?= _("PARAMÈTRE DE COMMUNICATION") ?></th>
<th width="20%" class="text-center border-0 small text-muted"><?= _("ÉTAT") ?></th>
</tr>
</thead>
<tbody>
<?php
$comms = [
['01', _("Activer ou désactiver lenvoi automatique de notifications aux assurés par SMS."), 'envoismsactif'],
['02', _("Activer ou désactiver lenvoi automatique de notifications aux assurés par WhatsApp."), 'envoismswhatsappactif'],
['03', _("Activer ou désactiver lenvoi automatique de notifications aux assurés par SMS ou WhatsApp."), 'smsAssure'],
['04', _("Activer lenvoi automatique dune notification par SMS ou WhatsApp à lassuré lors de chaque facturation."), 'smsmParFacture'],
['05', _("Activer lenvoi automatique dune notification par email à lassuré lors de chaque facturation."), 'emailParFacture'],
['06', _("Activer lenvoi automatique dune copie du SMS/WhatsApp transmis à lassureur ou au prestataire en cas de demande ou de réponse à une entente préalable ou une dérogation."), 'copieSmsPrestataireAssure'],
['07', _("Activer lenvoi automatique dune notification par SMS, WhatsApp ou email à lassuré lorsque son solde atteint le seuil défini."), 'seuilAlerteActif']
];
foreach($comms as $c):
$status = ($societeuser[$c[2]] == "1"); ?>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold"><?= $c[0] ?></span></td>
<td class="text-muted fw-bold"><?= $c[1] ?></td>
<td class="text-center border-start">
<span class="badge rounded-pill px-3 py-2 <?= $status ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
<i class="fas <?= $status ? 'fa-check-circle' : 'fa-times-circle' ?> me-1"></i>
<?= $status ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-dark py-3">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-file-medical-alt me-2"></i><?= _("Protocoles d'Entente Préalable") ?>
</h6>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr class="searchable-row">
<td width="8%" class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">08</span></td>
<td class="text-muted fw-bold"><?= _("Activer lenvoi automatique dune demande dentente préalable au gestionnaire lorsque le montant cumulé des examens prescrits dépasse le seuil fixé.") ?></td>
<td width="20%" class="text-center border-start bg-light">
<span class="fw-bold text-primary fs-5"><?= format_N($this->nettoyer($societeuser['montantTotalExamen'])) ?></span>
<small class="text-muted"><?= $_SESSION['devise_C'] ?></small>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">09</span></td>
<td class="text-muted fw-bold"><?= _("Activer lenvoi automatique dune demande dentente préalable au gestionnaire lorsque le montant cumulé des médicaments prescrits dépasse le seuil fixé.") ?></td>
<td class="text-center border-start bg-light">
<span class="fw-bold text-primary fs-5"><?= format_N($this->nettoyer($societeuser['montantTotalMedicament'])) ?></span>
<small class="text-muted"><?= $_SESSION['devise_C'] ?></small>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">10</span></td>
<td class="text-muted fw-bold"><?= _("Activer la possibilité pour le médecin du souscripteur de recevoir et de répondre aux demandes dententes préalables.") ?></td>
<td class="text-center border-start">
<?php $med = ($societeuser['accorderMedecinSouscripteur'] == "1"); ?>
<span class="badge rounded-pill px-3 py-2 <?= $med ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
<?= $med ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">11</span></td>
<td class="text-muted fw-bold"><?= _("Délai de réponse accordé au médecin du souscripteur.") ?></td>
<td class="text-center border-start bg-light">
<span class="fw-bold text-muted"><?= $this->nettoyer($societeuser['delaisReponseMedecinSouscripteur']) ?></span>
<span class="small text-muted text-uppercase ms-1"><?= _("Heure(s)") ?></span>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">12</span></td>
<td class="text-muted fw-bold"><?= _("Si un acte dune prescription est soumis à entente préalable, lensemble des actes de la prescription est automatiquement transmis en entente préalable.") ?></td>
<td class="text-center border-start">
<?php $tous = ($societeuser['tousActesSoumisEntentePrealable'] == "1"); ?>
<span class="badge rounded-pill px-3 py-2 <?= $tous ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
<?= $tous ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">13</span></td>
<td class="text-muted fw-bold"><?= _("Déclencher une alerte dentente préalable lorsque le nombre dactes dune prescription atteint le seuil défini.") ?></td>
<td class="text-center border-start bg-light fw-bold text-info fs-5">
<?= $this->nettoyer($societeuser['nombreActeEntentePrealable']) ?>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">14</span></td>
<td class="text-muted fw-bold"><?= _("Activer lapplication automatique du tarif le plus bas parmi les tarifs négociés.") ?></td>
<td class="text-center border-start">
<?php $tarif = ($societeuser['appliquerTarifBas'] == "1"); ?>
<span class="badge rounded-pill px-3 py-2 <?= $tarif ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
<?= $tarif ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="Prestation" class="tab-custom-content" style="display:none;">
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-primary py-3 d-flex align-items-center justify-content-between">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-hospital me-2"></i><?= _("Centres de Soins & Dentisteries") ?>
</h6>
<span class="badge bg-white text-primary rounded-pill"><?= _("13 Paramètres") ?></span>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<thead class="bg-light">
<tr>
<th width="8%" class="text-center border-0 small text-muted">#</th>
<th class="border-0 small text-muted"><?= _("RÈGLE DE PRESTATION") ?></th>
<th width="25%" class="text-center border-0 small text-muted"><?= _("CONFIGURATION") ?></th>
</tr>
</thead>
<tbody>
<?php
$centres_bool = [
['01', _("Restreindre la recherche des praticiens aux seuls enregistrés dans le centre de soins courant."), 'filtreMedecin'],
['02', _("Autoriser la prescription malgré un blocage indiqué dans le barème de prestations."), 'permettrePrescriptionSiCritereBareme'],
['03', _("Autoriser quun bon de consultation gratuite soit obligatoirement lié à un bon de consultation principal."), 'autoriserUnBonPrincipal'],
['04', _("Autoriser quun bon dhospitalisation généré après une proforma puisse être réalisé par le centre avant la date de début prévue."), 'autoriserBonHospitAvantDate'],
['05', _("Interdire la réalisation dune prestation en cas de prime impayée."), 'encaissementExige']
];
foreach($centres_bool as $b):
$val = ($societeuser[$b[2]] == "1"); ?>
<tr class="searchable-row">
<td class="text-center"><span class="badge-ghost bg-primary-ghost"><?= $b[0] ?></span></td>
<td class="text-muted"><?= $b[1] ?></td>
<td class="valeur-display">
<span class="badge-ghost <?= $val ? 'bg-success-ghost' : 'bg-danger-ghost' ?>">
<i class="fas <?= $val ? 'fa-check' : 'fa-times' ?> me-1"></i> <?= $val ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
<?php endforeach; ?>
<?php
$centres_num = [
['06', _("Défini le nombre maximum de médicaments pouvant être prescrits sur un bon de prise en charge."), 'nbMedicamentMax', ''],
['07', _("Défini le nombre maximum de consultations spécialistes autorisées en une journée."), 'nbConsultationSpecialisteJour', ''],
['08', _("Défini lâge maximum pour autoriser une consultation pédiatrique."), 'ageMaxiPediatrie', _('An(s)')],
['09', _("Défini le nombre maximum de consultations gratuites autorisées par jour."), 'nombreFeuilleGratuitJour', ''],
['10', _("Défini le nombre maximum de mauvaises tentatives biométriques avant de déclencher une alerte envoyée à lassuré principal et au gestionnaire."), 'nbTentativeBiometrie', ''],
['11', _("Défini la quantité maximale de boîtes autorisées pour un médicament prescrit sur un bon de prise en charge."), 'quantiteMedicamentPermise', '']
];
foreach($centres_num as $n): ?>
<tr class="searchable-row">
<td class="text-center"><span class="badge-ghost bg-primary-ghost"><?= $n[0] ?></span></td>
<td class="text-muted"><?= $n[1] ?></td>
<td class="valeur-display">
<span class="text-primary fs-5"><?= $this->nettoyer($societeuser[$n[2]]) ?></span>
<small class="text-muted ms-1"><?= $n[3] ?></small>
</td>
</tr>
<?php endforeach; ?>
<tr class="searchable-row">
<td class="text-center"><span class="badge-ghost bg-primary-ghost">12</span></td>
<td class="text-muted"><?= _("Spécifie le mode de biométrie activé pour lauthentification des assurés.") ?></td>
<td class="valeur-display text-muted fw-bold">
<?= est_anglophone() ? $this->nettoyer($societeuser['biometrieEng']) : $this->nettoyer($societeuser['biometrie']) ?>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge-ghost bg-primary-ghost">13</span></td>
<td class="text-muted"><?= _("Spécifie la désignation officielle de lacte de consultation gratuite.") ?></td>
<td class="valeur-display text-muted small">
<?= est_anglophone() ? $this->nettoyer($societeuser['acteConsultationGratuiteEng']) : $this->nettoyer($societeuser['acteConsultationGratuite']) ?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-success py-3 ">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-pills me-2"></i><?= _("Gestion des Pharmacies") ?>
</h6>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tbody>
<?php
$pharm_bool = [
['01', _("Autoriser création nouveau médicament (soumis à entente) ?"), 'accesAjoutPh'],
['02', _("Autoriser pharmacien à compléter la prescription ?"), 'ajoutPrescription'],
['04', _("Appliquer une marge entre prix système et prix pharmacie ?"), 'appliquerMargePrixMedicament'],
['06', _("Appliquer une marge sur le prix de substitution ?"), 'appliquerMargePrixSubstitutMedicament'],
['08', _("Interdire la vente partielle de médicaments ?"), 'interdirVentePartielleMedicament'],
['09', _("Permettre aux pharmaciens de modifier le prix ?"), 'prixMedicamentModifiable']
];
foreach($pharm_bool as $pb):
$status = ($societeuser[$pb[2]] == "1"); ?>
<tr class="searchable-row">
<td width="8%" class="text-center"><span class="badge-ghost bg-success-ghost"><?= $pb[0] ?></span></td>
<td class="text-muted"><?= $pb[1] ?></td>
<td width="25%" class="valeur-display">
<span class="badge-ghost <?= $status ? 'bg-success-ghost' : 'bg-danger-ghost' ?>">
<?= $status ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
<?php endforeach; ?>
<tr class="searchable-row">
<td class="text-center"><span class="badge-ghost bg-success-ghost">03</span></td>
<td class="text-muted"><?= _("Mode d'application de la marge (Forfait ou %)") ?></td>
<td class="valeur-display text-primary"><?= $this->nettoyer($societeuser['typeMargePrixMedicament']) ?></td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge-ghost bg-success-ghost">05</span></td>
<td class="text-muted"><?= _("Marge maximum acceptée (Système vs Pharmacie)") ?></td>
<td class="valeur-display text-muted">
<?= format_N($this->nettoyer($societeuser['margePrixMedicament'])) ?>
<?= ($societeuser['typeMargePrixMedicament'] == "Forfait") ? $_SESSION['devise_C'] : "%" ?>
</td>
</tr>
<tr class="searchable-row">
<td class="text-center"><span class="badge-ghost bg-success-ghost">07</span></td>
<td class="text-muted"><?= _("Marge maximum acceptée (Système vs Substitution)") ?></td>
<td class="valeur-display text-muted">
<?= format_N($this->nettoyer($societeuser['margePrixSubstitutMedicament'])) ?>
<?= ($societeuser['typeMargePrixMedicament'] == "Forfait") ? $_SESSION['devise_C'] : "%" ?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-dark py-3">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-microscope me-2"></i><?= _("Laboratoires & Imageries") ?>
</h6>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tr class="searchable-row">
<td width="8%" class="text-center"><span class="badge-ghost bg-primary-ghost">01</span></td>
<td class="text-muted"><?= _("Permettre aux LABO de compléter la prescription du médecin ?") ?></td>
<td width="25%" class="valeur-display">
<?php $labo = ($societeuser['ajoutPrescriptionExam'] == "1"); ?>
<span class="badge-ghost <?= $labo ? 'bg-success-ghost' : 'bg-danger-ghost' ?>">
<?= $labo ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>