dfg
This commit is contained in:
parent
6efe5ba9c4
commit
0e64acfd23
|
|
@ -1,3 +1,9 @@
|
|||
<?php
|
||||
$this->titre = "INTER SANTE - Fiche Garant";
|
||||
$_SESSION['codeGcAssureur_C'] = $this->nettoyer($gc['codeGcAssureur']);
|
||||
$nbreTotal = count($polices);
|
||||
?>
|
||||
|
||||
<div class="page-content animate__animated animate__fadeIn">
|
||||
|
||||
<div class="header-section mb-4">
|
||||
|
|
@ -6,173 +12,211 @@
|
|||
<i class="fas fa-shield-alt fs-4"></i>
|
||||
</div>
|
||||
<div class="flex-grow-1">
|
||||
<h4 class="mb-0 fw-bold text-uppercase"><?= $this->nettoyer($gc['libelle']) ?></h4>
|
||||
<p class="text-muted small mb-0"><?= _("Code :") ?> <span class="fw-bold text-primary"><?= $this->nettoyer($gc['codeGcAssureur']) ?></span></p>
|
||||
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= $this->nettoyer($gc['libelle']) ?></h4>
|
||||
<p class="text-muted small mb-0"><?= _("Code :") ?> <span class="badge bg-light text-primary border"><?= $this->nettoyer($gc['codeGcAssureur']) ?></span></p>
|
||||
</div>
|
||||
<div class="text-end border-start ps-3">
|
||||
<div class="small text-muted text-uppercase fw-bold"><?= _("Logo Actuel") ?></div>
|
||||
<div class="mt-1">
|
||||
<?php if ($this->nettoyer($gc['logo_garant']) > " "): ?>
|
||||
<img src="<?= $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Tarifs/Img/garants/'.$_SESSION['logoGarant'] ?>"
|
||||
class="rounded border shadow-sm" style="height: 50px; cursor:pointer;" data-bs-toggle="modal" data-bs-target="#pop_photo">
|
||||
<?php else: ?>
|
||||
<span class="badge bg-light text-muted border"><?= _("Aucun logo") ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="text-end">
|
||||
<span class="badge bg-primary-ghost text-primary rounded-pill px-3 py-2 fw-bold">
|
||||
<?= $nbreTotal ?> <?= _("Polices actives") ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row g-4">
|
||||
<ul class="nav nav-tabs border-0 gap-2 mb-4" id="ficheGarantTabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<button class="nav-link active rounded-pill px-4 fw-bold shadow-xs" data-bs-toggle="tab" data-bs-target="#tab-polices" type="button">
|
||||
<i class="fas fa-list-ul me-2"></i><?= _("Polices") ?>
|
||||
</button>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<button class="nav-link rounded-pill px-4 fw-bold shadow-xs" data-bs-toggle="tab" data-bs-target="#tab-infos" type="button">
|
||||
<i class="fas fa-id-card me-2"></i><?= _("Identité & Contacts") ?>
|
||||
</button>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<button class="nav-link rounded-pill px-4 fw-bold shadow-xs" data-bs-toggle="tab" data-bs-target="#tab-finance" type="button">
|
||||
<i class="fas fa-percentage me-2"></i><?= _("Taux & Frais") ?>
|
||||
</button>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<button class="nav-link rounded-pill px-4 fw-bold shadow-xs" data-bs-toggle="tab" data-bs-target="#tab-gestion" type="button">
|
||||
<i class="fas fa-cogs me-2"></i><?= _("Gestion des Fonds") ?>
|
||||
</button>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<button class="nav-link rounded-pill px-4 fw-bold shadow-xs" data-bs-toggle="tab" data-bs-target="#tab-compta" type="button">
|
||||
<i class="fas fa-file-invoice-dollar me-2"></i><?= _("Comptabilité") ?>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content border-0">
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card border-0 shadow-sm h-100">
|
||||
<div class="card-header bg-white py-3 border-bottom border-primary-light">
|
||||
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-info-circle me-2"></i><?= _("Informations Générales") ?></h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Type Garant") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold shadow-none" value="<?= $this->nettoyer($gc['typegc']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Représentant") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold shadow-none" value="<?= $this->nettoyer($gc['representant']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Téléphone") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold shadow-none" value="<?= $this->nettoyer($gc['telephoneGarant']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("E-mail") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold shadow-none" value="<?= $this->nettoyer($gc['email']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Tél. Représentant") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold shadow-none" value="<?= $this->nettoyer($gc['telephonerepresentant']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Sigle Représentant") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold shadow-none" value="<?= $this->nettoyer($gc['siglerepresentant']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Adresse Géographique") ?></label>
|
||||
<input class="form-control bg-light border-0 shadow-none" value="<?= $this->nettoyer($gc['adresseGeographique']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Adresse Postale") ?></label>
|
||||
<input class="form-control bg-light border-0 shadow-none" value="<?= $this->nettoyer($gc['adressePostale']) ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card border-0 shadow-sm h-100">
|
||||
<div class="card-header bg-white py-3 border-bottom border-primary-light">
|
||||
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-percentage me-2"></i><?= _("Taux & Commissions") ?></h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row g-3">
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Comm. Primes (%)") ?></label>
|
||||
<div class="h5 fw-bold text-dark"><?= $this->nettoyer($gc['gcTauxCommissionGerant']) ?>%</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Taux Ristourne (%)") ?></label>
|
||||
<div class="h5 fw-bold text-dark"><?= $this->nettoyer($gc['gcTauxRistourne']) ?>%</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("TVA (%)") ?></label>
|
||||
<div class="h5 fw-bold text-dark"><?= $this->nettoyer($gc['gcTauxTva']) ?>%</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Comm. Sinistres (%)") ?></label>
|
||||
<div class="h5 fw-bold text-primary"><?= $this->nettoyer($gc['gcTauxFraisReel']) ?>%</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Redressement (%)") ?></label>
|
||||
<div class="h5 fw-bold text-dark"><?= $this->nettoyer($gc['gcTauxRedressement']) ?>%</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Suspension (%)") ?></label>
|
||||
<div class="h5 fw-bold text-danger"><?= $this->nettoyer($gc['gcLimiteConsommation']) ?>%</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 border-top pt-3 mt-2">
|
||||
<div class="row">
|
||||
<div class="col-md-4 text-center border-end">
|
||||
<label class="small text-muted d-block fw-bold"><?= _("Nouvelle Carte") ?></label>
|
||||
<span class="fw-bold fs-6"><?= format_N($gc['fraisCarteAfn']) ?></span>
|
||||
</div>
|
||||
<div class="col-md-4 text-center border-end">
|
||||
<label class="small text-muted d-block fw-bold"><?= _("Renouvellement") ?></label>
|
||||
<span class="fw-bold fs-6"><?= format_N($gc['fraisCarteRen']) ?></span>
|
||||
</div>
|
||||
<div class="col-md-4 text-center">
|
||||
<label class="small text-muted d-block fw-bold"><?= _("Ré-impression") ?></label>
|
||||
<span class="fw-bold fs-6"><?= format_N($gc['fraisCarteImp']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="tab-pane fade show active" id="tab-polices" role="tabpanel">
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-header bg-light py-3">
|
||||
<h6 class="mb-0 fw-bold text-muted small text-uppercase"><i class="fas fa-hand-holding-usd me-2"></i><?= _("Configuration des Fonds Sinistres & Honoraires") ?></h6>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0 datatable-inter" style="font-size: 9pt; width:100%;">
|
||||
<thead class="bg-light text-muted fw-bold">
|
||||
<tr>
|
||||
<th class="text-center py-3"><?= _("No Police") ?></th>
|
||||
<th class="py-3"><?= _("Souscripteur / Libellé") ?></th>
|
||||
<th class="text-center py-3"><?= _("Effet") ?></th>
|
||||
<th class="text-center py-3"><?= _("Echéance") ?></th>
|
||||
<th class="text-center py-3"><?= _("Etat") ?></th>
|
||||
<th class="text-center py-3"><?= _("No Devis") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($polices as $p):
|
||||
$libelleP = ($this->nettoyer($p['libellePolice']) == $this->nettoyer($p['souscripteur']))
|
||||
? $this->nettoyer($p['souscripteur'])
|
||||
: $this->nettoyer($p['souscripteur']).' / '.$this->nettoyer($p['libellePolice']);
|
||||
?>
|
||||
<tr onclick="selectionner_police(<?= $p['id'] ?>,'<?= $p['numeroPolice'] ?>');" class="cursor-pointer">
|
||||
<td class="text-center fw-bold text-primary"><?= $p['numeroPolice'] ?></td>
|
||||
<td><?= $libelleP ?></td>
|
||||
<td class="text-center"><?= dateLang($p['dateEffet']) ?></td>
|
||||
<td class="text-center"><?= dateLang($p['dateEcheance']) ?></td>
|
||||
<td class="text-center">
|
||||
<span class="badge rounded-pill <?= ($p['etatPolice'] == 'ACTIF') ? 'bg-success-light text-success' : 'bg-warning-light text-warning' ?>">
|
||||
<?= $p['etatPolice'] ?>
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center text-muted"><?= $p['numeroDevis'] ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row g-4">
|
||||
<div class="col-md-6 border-end">
|
||||
<h6 class="small fw-bold text-primary mb-3 text-uppercase"><?= _("Fonds Sinistres") ?></h6>
|
||||
<div class="row g-2">
|
||||
<div class="col-6"><label class="small text-muted fw-bold"><?= _("Source") ?></label>
|
||||
<select class="form-select form-select-sm" disabled><?php liste_options($sourcefonds,$gc['codeSourceFondGarantAppelFond'],true); ?></select>
|
||||
</div>
|
||||
<div class="col-6"><label class="small text-muted fw-bold"><?= _("Assiette") ?></label>
|
||||
<select class="form-select form-select-sm" disabled><?php liste_options($assiettefonds,$gc['codeAssietteFacturationGarantAppelFond'],true); ?></select>
|
||||
</div>
|
||||
<div class="col-6"><label class="small text-muted fw-bold"><?= _("Périodicité Fond") ?></label>
|
||||
<select class="form-select form-select-sm" disabled><?php liste_options($periodicitesappelfond,$gc['codePeriodiciteAppelFond'],false); ?></select>
|
||||
</div>
|
||||
<div class="col-6"><label class="small text-muted fw-bold"><?= _("Périodicité Déficit") ?></label>
|
||||
<select class="form-select form-select-sm" disabled><?php liste_options($periodicitesfactDeficit,$gc['codePeriodiciteFacturationDeficit'],false); ?></select>
|
||||
</div>
|
||||
<div class="col-12 mt-3">
|
||||
<div class="bg-primary-ghost p-2 rounded d-flex justify-content-between">
|
||||
<span class="small fw-bold text-muted"><?= _("Provision Garant (HT)") ?></span>
|
||||
<span class="fw-bold text-primary"><?= format_N($gc['montantBudget']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="tab-infos" role="tabpanel">
|
||||
<div class="row g-4">
|
||||
<div class="col-md-8">
|
||||
<div class="card border-0 shadow-sm p-4">
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase"><?= _("Nom Complet") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold" value="<?= $this->nettoyer($gc['libelle']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase"><?= _("Type de Garant") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold" value="<?= $this->nettoyer($gc['typegc']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase"><?= _("Représentant") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold" value="<?= $this->nettoyer($gc['representant']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase"><?= _("Tél. Représentant") ?></label>
|
||||
<input class="form-control bg-light border-0" value="<?= $this->nettoyer($gc['telephonerepresentant']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase"><?= _("Téléphone Garant") ?></label>
|
||||
<input class="form-control bg-light border-0" value="<?= $this->nettoyer($gc['telephoneGarant']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase"><?= _("E-mail") ?></label>
|
||||
<input class="form-control bg-light border-0" value="<?= $this->nettoyer($gc['email']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase"><?= _("Adresse Géo.") ?></label>
|
||||
<input class="form-control bg-light border-0" value="<?= $this->nettoyer($gc['adresseGeographique']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase"><?= _("Adresse Postale") ?></label>
|
||||
<input class="form-control bg-light border-0" value="<?= $this->nettoyer($gc['adressePostale']) ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h6 class="small fw-bold text-primary mb-3 text-uppercase"><?= _("Fonds Honoraires") ?></h6>
|
||||
<div class="row g-2">
|
||||
<div class="col-6"><label class="small text-muted fw-bold"><?= _("Source") ?></label>
|
||||
<select class="form-select form-select-sm" disabled><?php liste_options($sourcehonoraire,$gc['codeSourceFondGarantHonoraire'],true); ?></select>
|
||||
</div>
|
||||
<div class="col-6"><label class="small text-muted fw-bold"><?= _("Assiette") ?></label>
|
||||
<select class="form-select form-select-sm" disabled><?php liste_options($assiettehonoraire,$gc['codeAssietteFacturationGarantHonoraire'],true); ?></select>
|
||||
</div>
|
||||
<div class="col-6"><label class="small text-muted fw-bold"><?= _("Périodicité") ?></label>
|
||||
<select class="form-select form-select-sm" disabled><?php liste_options($periodicites,$gc['codePeriodiciteHonoraire'],false); ?></select>
|
||||
</div>
|
||||
<div class="col-6"><label class="small text-muted fw-bold"><?= _("Forfait (HT)") ?></label>
|
||||
<input class="form-control form-control-sm bg-light border-0 fw-bold" value="<?= format_N($gc['forfaitHonoraire']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-12 mt-3">
|
||||
<div class="bg-primary-ghost p-2 rounded d-flex justify-content-between">
|
||||
<span class="small fw-bold text-muted"><?= _("Caution Permanente (HT)") ?></span>
|
||||
<span class="fw-bold text-primary"><?= format_N($gc['forfaitCautionPermanant']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card border-0 shadow-sm p-4 text-center">
|
||||
<label class="form-label small text-muted fw-bold text-uppercase mb-3"><?= _("Identité Visuelle") ?></label>
|
||||
<div class="p-3 bg-light rounded-3 mb-3">
|
||||
<?php if ($gc['logo_garant'] > " "): ?>
|
||||
<img src="<?= $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Tarifs/Img/garants/'.$_SESSION['logoGarant'] ?>" class="img-fluid rounded border shadow-sm" style="max-height:120px;">
|
||||
<?php else: ?>
|
||||
<i class="fas fa-image fa-4x text-muted opacity-25 py-4"></i>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<form enctype="multipart/form-data" action="Fichegcassureur/<?= $gc['id'] ?>/" method="post">
|
||||
<input type="file" name="fichier_image_a_uploader" class="form-control form-control-sm mb-2 shadow-none border-2">
|
||||
<button type="submit" name="submit" class="btn btn-primary btn-sm w-100 rounded-pill fw-bold"><?= _("Mettre à jour le logo") ?></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="tab-finance" role="tabpanel">
|
||||
<div class="card border-0 shadow-sm p-4">
|
||||
<div class="row g-4">
|
||||
<div class="col-md-3 border-end">
|
||||
<label class="small text-muted fw-bold text-uppercase d-block mb-3"><?= _("Commissions") ?></label>
|
||||
<div class="mb-3">
|
||||
<div class="text-muted small"><?= _("Sur Primes") ?></div>
|
||||
<div class="h5 fw-bold text-primary"><?= $gc['gcTauxCommissionGerant'] ?> %</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-muted small"><?= _("Sur Sinistres") ?></div>
|
||||
<div class="h5 fw-bold text-primary"><?= $gc['gcTauxFraisReel'] ?> %</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 border-end">
|
||||
<label class="small text-muted fw-bold text-uppercase d-block mb-3"><?= _("Taxes & Taux") ?></label>
|
||||
<div class="mb-3"><div class="text-muted small"><?= _("TVA") ?></div><div class="h6 fw-bold"><?= $gc['gcTauxTva'] ?> %</div></div>
|
||||
<div class="mb-3"><div class="text-muted small"><?= _("Ristourne") ?></div><div class="h6 fw-bold"><?= $gc['gcTauxRistourne'] ?> %</div></div>
|
||||
<div><div class="text-muted small"><?= _("Redressement") ?></div><div class="h6 fw-bold"><?= $gc['gcTauxRedressement'] ?> %</div></div>
|
||||
</div>
|
||||
<div class="col-md-3 border-end">
|
||||
<label class="small text-muted fw-bold text-uppercase d-block mb-3"><?= _("Frais de Cartes") ?></label>
|
||||
<div class="mb-2 d-flex justify-content-between"><span><?= _("Nouvelle") ?></span><span class="fw-bold"><?= format_N($gc['fraisCarteAfn']) ?></span></div>
|
||||
<div class="mb-2 d-flex justify-content-between"><span><?= _("Renouvel.") ?></span><span class="fw-bold"><?= format_N($gc['fraisCarteRen']) ?></span></div>
|
||||
<div class="d-flex justify-content-between"><span><?= _("Ré-impres.") ?></span><span class="fw-bold"><?= format_N($gc['fraisCarteImp']) ?></span></div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="small text-muted fw-bold text-uppercase d-block mb-3"><?= _("Alertes & Seuils") ?></label>
|
||||
<div class="mb-3"><div class="text-muted small"><?= _("Seuil RD") ?></div><div class="h6 fw-bold"><?= $gc['seuilRdGarant'] ?> %</div></div>
|
||||
<div class="mb-3"><div class="text-muted small"><?= _("Taux Suspension") ?></div><div class="h6 fw-bold text-danger"><?= $gc['gcLimiteConsommation'] ?> %</div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="tab-gestion" role="tabpanel">
|
||||
<div class="row g-4">
|
||||
<div class="col-md-6">
|
||||
<div class="card border-0 shadow-sm h-100">
|
||||
<div class="card-header bg-primary text-white py-2"><h6 class="mb-0 small text-uppercase fw-bold"><?= _("Fonds Sinistres") ?></h6></div>
|
||||
<div class="card-body">
|
||||
<div class="row g-2 small">
|
||||
<div class="col-6 text-muted"><?= _("Source Fond") ?></div><div class="col-6 fw-bold border-bottom"><?php liste_options($sourcefonds,$gc['codeSourceFondGarantAppelFond'],true); ?></div>
|
||||
<div class="col-6 text-muted"><?= _("Assiette Fact.") ?></div><div class="col-6 fw-bold border-bottom"><?php liste_options($assiettefonds,$gc['codeAssietteFacturationGarantAppelFond'],true); ?></div>
|
||||
<div class="col-6 text-muted"><?= _("Périodicité Fond") ?></div><div class="col-6 fw-bold border-bottom"><?php liste_options($periodicitesappelfond,$gc['codePeriodiciteAppelFond'],false); ?></div>
|
||||
<div class="col-6 text-muted"><?= _("Périodicité Déficit") ?></div><div class="col-6 fw-bold"><?php liste_options($periodicitesfactDeficit,$gc['codePeriodiciteFacturationDeficit'],false); ?></div>
|
||||
</div>
|
||||
<div class="mt-4 p-2 bg-primary-ghost rounded text-center">
|
||||
<div class="small text-muted"><?= _("Provision Garant (HT)") ?></div>
|
||||
<div class="fw-bold fs-5 text-primary"><?= format_N($gc['montantBudget']) ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="card border-0 shadow-sm h-100">
|
||||
<div class="card-header bg-info text-white py-2"><h6 class="mb-0 small text-uppercase fw-bold"><?= _("Fonds Honoraires & Caution") ?></h6></div>
|
||||
<div class="card-body">
|
||||
<div class="row g-2 small">
|
||||
<div class="col-6 text-muted"><?= _("Source Fond") ?></div><div class="col-6 fw-bold border-bottom"><?php liste_options($sourcehonoraire,$gc['codeSourceFondGarantHonoraire'],true); ?></div>
|
||||
<div class="col-6 text-muted"><?= _("Assiette Fact.") ?></div><div class="col-6 fw-bold border-bottom"><?php liste_options($assiettehonoraire,$gc['codeAssietteFacturationGarantHonoraire'],true); ?></div>
|
||||
<div class="col-6 text-muted"><?= _("Périodicité") ?></div><div class="col-6 fw-bold"><?php liste_options($periodicites,$gc['codePeriodiciteHonoraire'],false); ?></div>
|
||||
</div>
|
||||
<div class="row mt-3 g-2">
|
||||
<div class="col-6 bg-light p-2 rounded"><small class="text-muted d-block"><?= _("Caution Perm. (HT)") ?></small><span class="fw-bold"><?= format_N($gc['forfaitCautionPermanant']) ?></span></div>
|
||||
<div class="col-6 bg-light p-2 rounded"><small class="text-muted d-block"><?= _("Forfait Honoraire") ?></small><span class="fw-bold"><?= format_N($gc['forfaitHonoraire']) ?></span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -180,73 +224,36 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-header bg-white py-3 border-bottom border-primary-light">
|
||||
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-file-invoice-dollar me-2"></i><?= _("Comptabilité, Caution & Convention") ?></h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row g-3">
|
||||
<div class="col-md-3">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Compte TP") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold" value="<?= $this->nettoyer($gc['numerodeCompteComptableTP']) ?>" disabled>
|
||||
<div class="tab-pane fade" id="tab-compta" role="tabpanel">
|
||||
<div class="card border-0 shadow-sm p-4">
|
||||
<div class="row g-4">
|
||||
<div class="col-md-4">
|
||||
<label class="small text-muted fw-bold text-uppercase d-block mb-3"><?= _("Comptes Comptables") ?></label>
|
||||
<div class="p-2 bg-light border-start border-3 border-primary mb-2">
|
||||
<small class="text-muted d-block">N° Compte TP</small><span class="fw-bold"><?= $gc['numerodeCompteComptableTP'] ?></span>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Compte RD") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold" value="<?= $this->nettoyer($gc['numerodeCompteComptableRD']) ?>" disabled>
|
||||
<div class="p-2 bg-light border-start border-3 border-warning mb-2">
|
||||
<small class="text-muted d-block">N° Compte RD</small><span class="fw-bold"><?= $gc['numerodeCompteComptableRD'] ?></span>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Mode Paiement") ?></label>
|
||||
<select class="form-select bg-light" disabled><?= liste_options($modepaiement,$gc['codeModePaiementDemande'],false) ?></select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("No Contribuable") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold" value="<?= $this->nettoyer($gc['numeroCompteContribuable']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Convention") ?></label>
|
||||
<select class="form-select bg-light fw-bold" disabled><?php liste_options($conventions,$gc['codeConvention'],false); ?></select>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Fraction Caution (Nb mois)") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold" value="<?= format_N($gc['nbMoisCaution']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Seuil Complément Caution (%)") ?></label>
|
||||
<input class="form-control bg-light border-0 fw-bold" value="<?= format_N($gc['seuilComplementCaution']) ?>" disabled>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small text-muted fw-bold"><?= _("Tarif Actes") ?></label>
|
||||
<select class="form-select bg-light fw-bold" disabled><?= liste_options($tarifActe,$gc['codeTarifActe'],true) ?></select>
|
||||
</div>
|
||||
<div class="col-md-4 text-center d-flex align-items-end justify-content-center">
|
||||
<div class="p-2 rounded w-100 <?= ($gc['encaissementExige'] == "1") ? 'bg-danger text-white' : 'bg-success text-white' ?> fw-bold small text-uppercase">
|
||||
<i class="fas <?= ($gc['encaissementExige'] == "1") ? 'fa-ban' : 'fa-check-circle' ?> me-2"></i>
|
||||
<?= ($gc['encaissementExige'] == "1") ? _("Impayé = Prestation interdite") : _("Prestation autorisée") ?>
|
||||
</div>
|
||||
<div class="p-2 bg-light border-start border-3 border-info">
|
||||
<small class="text-muted d-block">No Contribuable</small><span class="fw-bold"><?= $gc['numeroCompteContribuable'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 mb-5">
|
||||
<div class="card border-0 shadow-sm bg-primary-ghost text-primary border-primary border-start border-4">
|
||||
<div class="card-body">
|
||||
<form enctype="multipart/form-data" action="Fichegcassureur/<?= $gc['id'] ?>/" method="post">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-8">
|
||||
<h6 class="fw-bold text-uppercase mb-2"><i class="fas fa-upload me-2"></i><?= _("Mise à jour du logo") ?></h6>
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
|
||||
<input class="form-control form-control-sm shadow-sm" name="fichier_image_a_uploader" type="file" id="fichier_image_a_uploader" />
|
||||
</div>
|
||||
<div class="col-md-4 text-end">
|
||||
<button type="submit" name="submit" class="btn btn-primary rounded-pill px-4 fw-bold shadow-sm">
|
||||
<i class="fas fa-sync-alt me-2"></i><?= _("Actualiser l'image") ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="small text-muted fw-bold text-uppercase d-block mb-3"><?= _("Règlement & Convention") ?></label>
|
||||
<div class="mb-3"><small class="text-muted d-block"><?= _("Mode Paiement") ?></small><span class="fw-bold text-primary"><?php liste_options($modepaiement,$gc['codeModePaiementDemande'],false); ?></span></div>
|
||||
<div class="mb-3"><small class="text-muted d-block"><?= _("Convention") ?></small><span class="fw-bold"><?php liste_options($conventions,$gc['codeConvention'],false); ?></span></div>
|
||||
<div class="mb-3"><small class="text-muted d-block"><?= _("Tarif Actes") ?></small><span class="fw-bold"><?php liste_options($tarifActe,$gc['codeTarifActe'],true); ?></span></div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="small text-muted fw-bold text-uppercase d-block mb-3"><?= _("Complément Caution") ?></label>
|
||||
<div class="mb-3"><small class="text-muted d-block"><?= _("Nb Mois Caution (/12)") ?></small><span class="fw-bold fs-6"><?= format_N($gc['nbMoisCaution']) ?></span></div>
|
||||
<div class="mb-3"><small class="text-muted d-block"><?= _("Seuil Complément (%)") ?></small><span class="fw-bold fs-6"><?= format_N($gc['seuilComplementCaution']) ?> %</span></div>
|
||||
<div class="p-2 rounded <?= ($gc['encaissementExige'] == "1") ? 'bg-danger text-white' : 'bg-success text-white' ?> fw-bold small text-center">
|
||||
<i class="fas <?= ($gc['encaissementExige'] == "1") ? 'fa-lock' : 'fa-unlock' ?> me-2"></i>
|
||||
<?= ($gc['encaissementExige'] == "1") ? _("Impayé = Blocage") : _("Prestation autorisée") ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -255,7 +262,23 @@
|
|||
</div>
|
||||
|
||||
<style>
|
||||
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
|
||||
.border-primary-light { border-color: rgba(33, 46, 83, 0.1) !important; }
|
||||
.form-control:disabled, .form-select:disabled { opacity: 1; color: #212e53; cursor: default; }
|
||||
</style>
|
||||
.nav-tabs .nav-link { color: #6c757d; border: 1px solid transparent; background: #fff; transition: 0.3s; margin-bottom: 5px; }
|
||||
.nav-tabs .nav-link.active { background-color: var(--bs-primary) !important; color: white !important; }
|
||||
.bg-success-light { background-color: rgba(25, 135, 84, 0.1); }
|
||||
.bg-warning-light { background-color: rgba(255, 193, 7, 0.1); }
|
||||
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08); }
|
||||
.cursor-pointer { cursor: pointer; }
|
||||
.form-select:disabled { opacity: 1; border: none; background: transparent; padding: 0; font-weight: bold; color: #212e53; }
|
||||
</style>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
if(typeof initSmartTable === 'function') {
|
||||
initSmartTable('.datatable-inter', 'Polices_Garant', false);
|
||||
}
|
||||
// Ajustement des colonnes lors du changement d'onglet
|
||||
$('button[data-bs-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
$($.fn.dataTable.tables(true)).DataTable().columns.adjust();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user