182 lines
9.4 KiB
PHP
Executable File
182 lines
9.4 KiB
PHP
Executable File
<?php
|
|
$this->titre = "Intersanté - Remboursement Direct";
|
|
|
|
$idDemandeRemboursement = $_SESSION['idDemandeRemboursement'] ?? "0";
|
|
|
|
if($idDemandeRemboursement > "0"){
|
|
$numeroDemandeRemboursement = $this->nettoyer($demande['numeroDemandeRemboursement']);
|
|
$codeEtatDemandeRemboursement = $this->nettoyer($demande['codeEtatDemandeRemboursement']);
|
|
$lien = $this->nettoyer($demande['lien']);
|
|
$numeroBeneficiaire = $this->nettoyer($demande['numeroBeneficiaire']);
|
|
$observation = $this->nettoyer($demande['observation']);
|
|
$codeStatutPaiement = $this->nettoyer($demande['codeStatutPaiement']);
|
|
$beneficiaire = $this->nettoyer($demande['beneficiaire']);
|
|
$adherent = $this->nettoyer($demande['adherent']);
|
|
$numeroAdherent = $this->nettoyer($demande['numeroAdherent']);
|
|
$idPolice = $this->nettoyer($demande['idPolice']);
|
|
$numeroPolice = $this->nettoyer($demande['numeroPolice']);
|
|
|
|
if (est_anglophone()){
|
|
$lien = $this->nettoyer($demande['lienEng']);
|
|
}
|
|
}
|
|
|
|
?>
|
|
<div id="div_liste" class="card shadow-lg border-0 mb-4" style="border-radius: 15px;">
|
|
|
|
<h1 class="text-primary"><i class="fas fa-file-invoice-dollar me-2"></i></i> <?= _('Détails du Remboursement') ?></h1>
|
|
|
|
<div class="card shadow-sm mb-0 border-0">
|
|
<div class="card-header d-flex justify-content-between align-items-center py-1">
|
|
<h5 class="mb-0 fw-bold">
|
|
<?= _("POLICE") ?> : <span class="text-secondary"><?= $numeroPolice; ?></span>
|
|
<span class="ms-3 badge bg-primary text-light small fw-normal">ID: <?= $idPolice; ?></span>
|
|
</h5>
|
|
<div class="text-end">
|
|
<small class="d-block opacity-75"><?= _("Demande N°") ?></small>
|
|
<span class="fw-bold h5 mb-0 badge bg-warning"><?= $numeroDemandeRemboursement; ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card-body p-2">
|
|
<div class="row g-4 mb-4">
|
|
<div class="col-md-7">
|
|
<div class="p-3 border rounded bg-light shadow-sm">
|
|
<h6 class="text-muted text-uppercase small fw-bold mb-3 border-bottom pb-2">
|
|
<i class="fas fa-id-card me-2 text-primary"></i><?= _("Identification du dossier") ?>
|
|
</h6>
|
|
|
|
<div class="row g-3">
|
|
<div class="col-12 mb-2">
|
|
<label class="form-label small text-muted mb-0"><?= _("Adhérent Principal (Titulaire)") ?></label>
|
|
<div class="d-flex align-items-center bg-white border rounded p-2">
|
|
<div class="flex-shrink-0">
|
|
<div class="bg-primary-subtle text-primary rounded-circle d-flex align-items-center justify-content-center" style="width: 35px; height: 35px;">
|
|
<i class="fas fa-user-shield"></i>
|
|
</div>
|
|
</div>
|
|
<div class="flex-grow-1 ms-3">
|
|
<div class="fw-bold text-dark fs-6">
|
|
<?= $adherent ?>
|
|
<span class="badge bg-secondary ms-2 small fw-normal"><?= $numeroAdherent ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
<label class="form-label small text-muted mb-0"><?= _("Bénéficiaire des soins (Patient)") ?></label>
|
|
<div class="flex-grow-1 ms-3">
|
|
<div class="fw-bold text-dark fs-6">
|
|
<?= $beneficiaire ?>
|
|
<span class="badge bg-secondary ms-2 small fw-normal"><?= $numeroBeneficiaire ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<label class="form-label small text-muted mb-0"><?= _("Lien Parenté") ?></label>
|
|
<div class="fw-bold py-2 px-2 bg-white border rounded text-center text-primary" id="div_lien">
|
|
<i class="fas fa-users me-1 small"></i> <?= $lien ?: '--' ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<label class="form-label small text-muted mb-0"><?= _("Commentaire du demandeur") ?></label>
|
|
<div class="p-2 bg-white border rounded-1 small text-dark min-vh-10" style="min-height: 80px;">
|
|
<?= $observation ?: '<span class="text-muted italic">' . _("Aucun commentaire fourni.") . '</span>' ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-5">
|
|
<div class="card h-100 border-0 shadow-sm overflow-hidden">
|
|
<div class="card-body p-0">
|
|
<?php
|
|
$bgStatus = ($codeEtatDemandeRemboursement == "1") ? "bg-success" : "bg-danger";
|
|
$iconStatus = ($codeEtatDemandeRemboursement == "1") ? "fa-check-double" : "fa-ban";
|
|
?>
|
|
<div class="<?= $bgStatus ?> text-white p-3 text-center">
|
|
<i class="fas <?= $iconStatus ?> fa-2x mb-2"></i>
|
|
<h5 class="mb-0 text-uppercase fw-bold"><?= ($codeEtatDemandeRemboursement == "1") ? _("Demande Accordée") : _("Demande Refusée") ?></h5>
|
|
<small class="opacity-75"><?= _("Répondu le") ?> <?= dateLang($demande['dateReponseDemandeRemboursement']) ?></small>
|
|
</div>
|
|
<div class="p-3 bg-white">
|
|
<label class="small text-muted d-block mb-1"><?= _("Justification de l'assureur") ?> :</label>
|
|
<div class="p-2 bg-light rounded small" style="min-height: 60px; border-left: 3px solid #ccc;">
|
|
<?= $this->nettoyer($demande['motifReponseDemandeRemboursement']) ?>
|
|
</div>
|
|
<?php if($codeEtatDemandeRemboursement == "1"): ?>
|
|
<div class="mt-3 pt-2 border-top">
|
|
<div class="d-flex justify-content-between">
|
|
<small class="text-muted"><?= _("Dossier n°") ?></small>
|
|
<span class="badge bg-primary"><?= $demande['idDossier'] ?></span>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php if($idDemandeRemboursement > 0): ?>
|
|
<div class="card border-0 shadow-sm mt-4">
|
|
<div class="card-header bg-dark text-white py-2 d-flex justify-content-between align-items-center">
|
|
<span class="small fw-bold"><i class="fas fa-file-pdf me-2"></i><?= _("PIÈCES JOINTES (Factures)") ?></span>
|
|
<span class="badge bg-secondary"><?= count($geds) ?></span>
|
|
</div>
|
|
<div class="card-body p-0">
|
|
<?php if($codeEtatDemandeRemboursement == "0"): ?>
|
|
<div class="p-3 bg-info bg-opacity-10 border-bottom">
|
|
<form enctype="multipart/form-data" action="Remboursement" method="post" class="row g-2 align-items-center">
|
|
<div class="col-sm-8">
|
|
<input class="form-control form-control-sm" name="fichier_upload" type="file" required />
|
|
</div>
|
|
<div class="col-sm-4 d-flex gap-1">
|
|
<button type="submit" name="submit" class="btn btn-sm btn-primary flex-grow-1">
|
|
<i class="fas fa-cloud-upload-alt me-1"></i><?= _("Ajouter") ?>
|
|
</button>
|
|
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="actualiser_remboursement();">
|
|
<i class="fas fa-sync"></i>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<table class="table table-hover table-sm mb-0">
|
|
<tbody class="small">
|
|
<?php foreach ($geds as $ged): ?>
|
|
<tr>
|
|
<td class="ps-3 py-2 text-muted" width="150"><?= dateheureLang($ged['dateSysteme']) ?></td>
|
|
<td class="py-2"><i class="far fa-file-image me-2 text-primary"></i><?= $this->nettoyer($ged['nomOrigine']) ?></td>
|
|
<td class="text-end pe-3 py-2">
|
|
<a href="<?= $ged['cheminFichier'] ?>" target="_blank" class="btn btn-xs btn-outline-danger">
|
|
<i class="fas fa-download"></i>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php if(empty($geds)): ?>
|
|
<tr><td colspan="3" class="text-center py-4 text-muted italic"><?= _("Aucune facture scannée pour cette demande.") ?></td></tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if($idDemandeRemboursement == "0"): ?>
|
|
<div class="mt-4 pt-3 border-top text-end">
|
|
<button class="btn btn-success px-5 shadow-sm rounded-pill" onClick="enregistrer_demande_remboursement();">
|
|
<i class="fas fa-check-circle me-2"></i><?= _("Soumettre ma demande") ?>
|
|
</button>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|