320 lines
11 KiB
PHP
320 lines
11 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Fiche Garant Gestion Confiée";
|
|
$_SESSION['codeGcAssureur_C'] = $this->nettoyer($gc['codeGcAssureur']) ;
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<input class="sr-only" type="text" id="idGc" name="idGc" value="<?= $this->nettoyer($gc['id']);?>" >
|
|
|
|
<div class="container mx-auto p-4">
|
|
<!-- Header -->
|
|
<header class="mb-4">
|
|
<h1 class="text-3xl font-bold text-center">
|
|
<?= $_SESSION['GcAssureur_C'].' ('.$_SESSION['codeGcAssureur_C'].")"; ?>
|
|
</h1>
|
|
</header>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- Taux de couverture -->
|
|
<div class="col-xl-3 col-md-6 mb-4">
|
|
<div class="card border-left-warning shadow h-100 py-2">
|
|
<div class="card-body">
|
|
<div class="row no-gutters align-items-center">
|
|
<div class="col mr-2">
|
|
<div class="text-xs font-weight-bold text-warning text-uppercase mb-1">
|
|
<?= _("Souscripteurs") ?>
|
|
</div>
|
|
<!-- Utilisation de classes pour agrandir le texte -->
|
|
<div class="h1 mb-0 font-weight-bold text-gray-800">
|
|
<?=$this->nettoyer($nombre_souscripteurs)?>
|
|
</div>
|
|
</div>
|
|
<div class="col-auto">
|
|
<!-- Espace pour du contenu supplémentaire si nécessaire -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Plafond annuel -->
|
|
<div class="col-xl-3 col-md-6 mb-4">
|
|
<div class="card border-left-primary shadow h-100 py-2">
|
|
<div class="card-body">
|
|
<div class="row no-gutters align-items-center">
|
|
<div class="col mr-2">
|
|
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
|
|
<?= _("Polices") ?>
|
|
</div>
|
|
<div class="h1 mb-0 font-weight-bold text-gray-800">
|
|
<?= format_N($nombre_polices) ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-auto">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Consommation Annuelle -->
|
|
<div class="col-xl-3 col-md-6 mb-4">
|
|
<div class="card border-left-info shadow h-100 py-2">
|
|
<div class="card-body">
|
|
<div class="row no-gutters align-items-center">
|
|
<div class="col mr-2">
|
|
<div class="text-xs font-weight-bold text-info text-uppercase mb-1">
|
|
<?= _("Adherents") ?>
|
|
</div>
|
|
<div class="row no-gutters align-items-center">
|
|
<div class="col-auto">
|
|
<div class="h1 mb-0 font-weight-bold text-gray-800">
|
|
<?= format_N($nombre_adherents) ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-auto">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Solde Annuel -->
|
|
<div class="col-xl-3 col-md-6 mb-4">
|
|
<div class="card border-left-success shadow h-100 py-2">
|
|
<div class="card-body">
|
|
<div class="row no-gutters align-items-center">
|
|
<div class="col mr-2">
|
|
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">
|
|
<?= _("Bénéficiaires") ?>
|
|
</div>
|
|
<div class="h1 mb-0 font-weight-bold text-gray-800">
|
|
<?= format_N($nombre_beneficiaires) ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-auto">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Content Row -->
|
|
|
|
|
|
<div class="row">
|
|
<!-- Customers Card -->
|
|
<div class="col-xxl-4 col-xl-4">
|
|
<div class="card info-card customers-card">
|
|
<div class="card-body">
|
|
<h5 class="card-title"><?= _("Sinistres Validés") ?></h5>
|
|
<div class="d-flex align-items-center">
|
|
<div class="card-icon rounded-circle d-flex align-items-center justify-content-center">
|
|
<i class="fas fa-check-circle text-success"></i> <!-- Icon for validated claims -->
|
|
</div>
|
|
<div class="ps-3">
|
|
<h1><?= $nombre_sinistresvalides ?></h1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- End Customers Card -->
|
|
|
|
<!-- Revenue Card -->
|
|
<div class="col-xxl-4 col-xl-4">
|
|
<div class="card info-card revenue-card">
|
|
<div class="card-body">
|
|
<h5 class="card-title"><?= _("Bénéficiaires traités") ?></h5>
|
|
<div class="d-flex align-items-center">
|
|
<div class="card-icon rounded-circle d-flex align-items-center justify-content-center">
|
|
<i class="fas fa-user-check text-primary"></i> <!-- Icon for treated beneficiaries -->
|
|
</div>
|
|
<div class="ps-3">
|
|
<h1><?= $nombre_beneficiairestraites ?></h1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- End Revenue Card -->
|
|
|
|
<!-- Example Third Card -->
|
|
<div class="col-xxl-4 col-xl-4">
|
|
<div class="card info-card third-card">
|
|
<div class="card-body">
|
|
<h5 class="card-title"><?= _("Sinistres Provisoires") ?></h5>
|
|
<div class="d-flex align-items-center">
|
|
<div class="card-icon rounded-circle d-flex align-items-center justify-content-center">
|
|
<i class="fas fa-exclamation-circle text-warning"></i> <!-- Icon for provisional claims -->
|
|
</div>
|
|
<div class="ps-3">
|
|
<h1><?= $nombre_sinistresprovisoires ?></h1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- End Third Card -->
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Reports -->
|
|
<div class="col-12">
|
|
<div class="card shadow-sm">
|
|
|
|
<!-- Card Header avec le Titre et le Filtre -->
|
|
<div class="card-header d-flex justify-content-between align-items-center">
|
|
<h5 class="card-title m-0">Rapports <span class="text-muted">/ Aujourd'hui</span></h5>
|
|
<div class="dropdown">
|
|
<a class="text-secondary" href="#" data-bs-toggle="dropdown" aria-expanded="false">
|
|
<i class="bi bi-three-dots"></i>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
|
<li class="dropdown-header text-start"><h6>Filtrer</h6></li>
|
|
<li><a class="dropdown-item" href="#">Aujourd'hui</a></li>
|
|
<li><a class="dropdown-item" href="#">Ce mois</a></li>
|
|
<li><a class="dropdown-item" href="#">Cette année</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Card Body avec le graphique -->
|
|
<div class="card-body">
|
|
<div id="reportsChart"></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
new ApexCharts(document.querySelector("#reportsChart"), {
|
|
series: [
|
|
{ name: 'Ventes', data: [31, 40, 28, 51, 42, 82, 56] },
|
|
{ name: 'Revenus', data: [11, 32, 45, 32, 34, 52, 41] },
|
|
{ name: 'Clients', data: [15, 11, 32, 18, 9, 24, 11] }
|
|
],
|
|
chart: {
|
|
height: 350,
|
|
type: 'area',
|
|
toolbar: { show: false }
|
|
},
|
|
markers: { size: 4 },
|
|
colors: ['#4154f1', '#2eca6a', '#ff771d'],
|
|
fill: {
|
|
type: "gradient",
|
|
gradient: {
|
|
shadeIntensity: 1,
|
|
opacityFrom: 0.3,
|
|
opacityTo: 0.4,
|
|
stops: [0, 90, 100]
|
|
}
|
|
},
|
|
dataLabels: { enabled: false },
|
|
stroke: { curve: 'smooth', width: 2 },
|
|
xaxis: {
|
|
type: 'datetime',
|
|
categories: [
|
|
"2018-09-19T00:00:00.000Z", "2018-09-19T01:30:00.000Z",
|
|
"2018-09-19T02:30:00.000Z", "2018-09-19T03:30:00.000Z",
|
|
"2018-09-19T04:30:00.000Z", "2018-09-19T05:30:00.000Z",
|
|
"2018-09-19T06:30:00.000Z"
|
|
]
|
|
},
|
|
tooltip: { x: { format: 'dd/MM/yy HH:mm' } }
|
|
}).render();
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<fieldset>
|
|
<?php
|
|
$nbreTotal = count($polices);
|
|
if($nbreTotal < 10){
|
|
$nbreTotal = '0'.$nbreTotal;
|
|
}
|
|
?>
|
|
<legend><?= _("Liste des Polices") ?></legend>
|
|
<input type="hidden" id="total" value="<?= htmlspecialchars($nbreTotal); ?>">
|
|
|
|
<!-- Encapsulez la table dans une div avec class "table-responsive" -->
|
|
<div class="table-responsive">
|
|
<table class="table" style="margin: auto;">
|
|
<tr>
|
|
<td>
|
|
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="Total enregistré : <?= htmlspecialchars($nbreTotal); ?>" readonly>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'><?= _("No Police") ?></th>
|
|
<th style='text-align:center'><?= _("Libellé") ?></th>
|
|
<th style='text-align:center'><?= _("No Interne") ?></th>
|
|
<th style='text-align:center'><?= _("Effet") ?></th>
|
|
<th style='text-align:center'><?= _("Echéance") ?></th>
|
|
<th style='text-align:center'><?= _("Nbre Jours") ?></th>
|
|
<th style='text-align:center'><?= _("Primes Annuelles") ?></th>
|
|
<th style='text-align:center'><?= _("Primes Acquises") ?></th>
|
|
<th style='text-align:center'><?= _("Sinistres") ?></th>
|
|
<th style='text-align:center'><?= _("S/P") ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($polices as $police):
|
|
$id = htmlspecialchars($this->nettoyer($police['idPolice']));
|
|
$nopol = htmlspecialchars($this->nettoyer($police['numeroPolice']));
|
|
$prime = htmlspecialchars($this->nettoyer($police['primeAnnuelle']));
|
|
$sinistre = htmlspecialchars($this->nettoyer($police['montantApayer']));
|
|
?>
|
|
<tr onclick="selectionner_police(<?= $id ?>, '<?= $nopol ?>');" ondblclick="selectionner_police(<?= $id ?>, '<?= $nopol ?>', '<?= $prime ?>', '<?= $sinistre ?>'); afficher_police_id();" valign="top">
|
|
<td align="center">
|
|
<input type="button" value="<?= $nopol ?>" onclick="selectionner_police(<?= $id ?>, '<?= $nopol ?>', '<?= $prime ?>', '<?= $sinistre ?>'); afficher_police_id();">
|
|
</td>
|
|
<td><?= htmlspecialchars($this->nettoyer($police['souscripteur'])); ?></td>
|
|
<td align='center'><?= htmlspecialchars($this->nettoyer($police['numeroPoliceSociete'])) ?></td>
|
|
<td align='center'><?= htmlspecialchars(dateLang($this->nettoyer($police['dateEffet']))) ?></td>
|
|
<td align='center'><?= htmlspecialchars(dateLang($this->nettoyer($police['dateFin']))) ?></td>
|
|
<td align='center'><?= htmlspecialchars($this->nettoyer($police['d_acq'])) ?></td>
|
|
<td align='center'><?= htmlspecialchars(format_N($this->nettoyer($prime))) ?></td>
|
|
<td align='center'><?= htmlspecialchars(format_N($this->nettoyer($police['primeAnalyse']))) ?></td>
|
|
<td align='center'><?= htmlspecialchars(format_N($this->nettoyer($sinistre))) ?></td>
|
|
<td align='center'><?= htmlspecialchars($this->nettoyer($police['rapportSp'])) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
|
|
|