newdesigngestionnaire/Vue/Autresparametresgeneraux/index.php
2026-02-27 18:20:03 +00:00

515 lines
28 KiB
PHP
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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-primary small mb-0"><?= _("Filtrez et gérez les paramètres métiers du centre de gestion") ?></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"><?= _("Part des honoraires prélevés par le centre de gestion par 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"><?= _("Seuil maximum du ratio S/P (spMax) appliqué au taux d'ajustement.") ?></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 d'émission de carte pour un nouvel assuré."), 'fraisCarteAN'],
['04', _("Frais de carte au renouvellement."), 'fraisCarteREN'],
['05', _("Frais de duplicata de carte (perte ou dommage)."), '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 S/P au-delà duquel une alerte de surconsommation est émise.") ?></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"><?= _("Taux appliqué à la prime non acquise pour le calcul 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"><?= _("Ratio S/P au-delà duquel la ristourne est annulée.") ?></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', _("Archivage automatique des primes dès import en base de gestion."), 'archivageAutomatiquePrime'],
['10', _("Envoie le numéro de carte à l'assuré via SMS/e-mail/WhatsApp."), 'notificationSmsNumeroAssure'],
['11', _("Envoie les numéros de carte familiaux à l'assuré principal via SMS/e-mail/WhatsApp."), 'notificationGroupeNumeroAssure'],
['12', _("Active la facturation par produit pour garant."), 'parametresFacturationGarantProduit'],
['13', _("Autorise l'assuré principal à uploader les photos d'authentification familiales sur son portail."), '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"><?= _("Écart maximal toléré à l'encaissement comptable des primes garants.") ?></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"><?= _("Automatise le lettrage lors des encaissements de primes 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><?= _("Règles du Médical : 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', _("Active la notification exclusivement par SMS."), 'envoismsactif'],
['02', _("Active la notification exclusivement par WhatsApp."), 'envoismswhatsappactif'],
['03', _("Active les notifications SMS/WhatsApp pour les assurés."), 'smsAssure'],
['04', _("Alerte l'assuré principal par SMS/WhatsApp après chaque facturation prestataire."), 'smsmParFacture'],
['05', _("Alerte l'assuré principal par e-mail après chaque facturation prestataire."), 'emailParFacture'],
['06', _("Partage avec l'assuré les échanges prestataire relatifs aux ententes et dérogations."), 'copieSmsPrestataireAssure'],
['07', _("Alerte l'assuré principal (SMS/WhatsApp/e-mail) dès que 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"><?= _("Déclenche automatiquement une entente préalable si le cumul des examens prescrits dépasse le seuil défini.") ?></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"><?= _("Déclenche automatiquement une entente préalable si le cumul des médicaments prescrits dépasse le seuil défini.") ?></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"><?= _("Autorise le médecin du souscripteur à recevoir et traiter les ententes 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"><?= _("Temps de réponse alloué 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"><?= _("Tout acte soumis à entente préalable entraîne la transmission globale de la prescription.") ?></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éclenche une entente préalable au dépassement du seuil d'actes par prescription.") ?></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"><?= _("Applique automatiquement le tarif négocié le plus bas.") ?></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 d-flex align-items-center justify-content-between">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-pills me-2"></i><?= _("Gestion des Pharmacies") ?>
</h6>
<span class="badge bg-white text-primary rounded-pill"><?= _("09 Paramètres") ?></span>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tbody>
<?php
$pharm_bool = [
['01', _("Autoriser les pharmaciens à créer un nouveau médicament, qui sera automatiquement soumis à entente préalable avant validation."), 'accesAjoutPh'],
['02', _("Autoriser les pharmaciens à compléter une prescription initiée par le médecin."), 'ajoutPrescription'],
['03', _("Autoriser lapplication dune marge entre le prix de référence du système et le prix pratiqué par la pharmacie, dans la limite des seuils définis."), 'appliquerMargePrixMedicament'],
['04', _("Autoriser lapplication dune marge entre le prix de référence du système et le prix pratiqué par la pharmacie pour un médicament de substitution, dans la limite des seuils définis."), 'appliquerMargePrixSubstitutMedicament'],
['05', _("Empêcher la délivrance partielle dun médicament en pharmacie: la quantité prescrite doit être fournie intégralement."), 'interdirVentePartielleMedicament'],
['06', _("Autoriser les pharmaciens à modifier le prix dun médicament par rapport au tarif de référence du système."), '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">07</span></td>
<td class="text-muted"><?= _("Spécifie le mode dapplication de la marge entre le prix dun médicament fourni par le système et celui de la pharmacie (% ou forfait).") ?></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">08</span></td>
<td class="text-muted"><?= _("Spécifie la marge maximale autorisée entre le prix de référence du système et le prix pratiqué par la 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">09</span></td>
<td class="text-muted"><?= _("Spécifie la marge maximale autorisée entre le prix de référence du système et le prix pratiqué par la pharmacie pour un médicament de 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 d-flex align-items-center justify-content-between">
<h6 class="mb-0 text-white fw-bold text-uppercase">
<i class="fas fa-microscope me-2"></i><?= _("Laboratoires & Imageries") ?>
</h6>
<span class="badge bg-white text-primary rounded-pill"><?= _("01 Paramètre") ?></span>
</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"><?= _("Autoriser les laboratoires à compléter une prescription initiée par le 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>