331 lines
16 KiB
PHP
331 lines
16 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Demande de crédit</title>
|
|
<!--[if mso]>
|
|
<xml>
|
|
<o:OfficeDocumentSettings>
|
|
<o:AllowPNG/>
|
|
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
</o:OfficeDocumentSettings>
|
|
</xml>
|
|
<![endif]-->
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #ecf0f1;
|
|
/* background-color: #001954; */
|
|
font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
|
|
-webkit-text-size-adjust: 100%;
|
|
-ms-text-size-adjust: 100%;
|
|
}
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 40px auto;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 16px 0 rgba(0,0,0,0.08);
|
|
padding: 0 0 24px 0;
|
|
}
|
|
.content-table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 10px;
|
|
color: #333;
|
|
}
|
|
.content-table td {
|
|
padding: 8px 0;
|
|
}
|
|
.header {
|
|
text-align: center;
|
|
background: #fff;
|
|
border-radius: 12px 12px 0 0;
|
|
}
|
|
.header img {
|
|
display: block;
|
|
margin: 0 auto;
|
|
width: 600px;
|
|
height: 120px;
|
|
border-radius: 12px 12px 0 0;
|
|
}
|
|
.section-title {
|
|
color: #001954;
|
|
font-size: 24px;
|
|
margin: 0;
|
|
padding-bottom: 12px;
|
|
}
|
|
.subsection-title {
|
|
color: #001954;
|
|
font-size: 20px;
|
|
margin: 0;
|
|
padding-top: 24px;
|
|
padding-bottom: 12px;
|
|
}
|
|
.footer {
|
|
padding: 24px 24px 0 24px;
|
|
text-align: center;
|
|
color: #888;
|
|
font-size: 13px;
|
|
}
|
|
.footer hr {
|
|
border: none;
|
|
border-top: 1px solid #eee;
|
|
margin: 24px 0 16px 0;
|
|
}
|
|
@media only screen and (max-width: 600px) {
|
|
.container {
|
|
width: 100% !important;
|
|
margin: 0 !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
.header img {
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!--[if mso]>
|
|
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
|
|
<v:fill type="solid" color="#001954"/>
|
|
</v:background>
|
|
<![endif]-->
|
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px; margin: 40px auto;">
|
|
<tr>
|
|
<td>
|
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" class="container">
|
|
<tr>
|
|
<td class="header">
|
|
<img src="<?php echo $this->main->asset('img/cred_banniere.jpg'); ?>" alt="Crédit Direct" width="600" height="120">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 32px 24px 0 24px;">
|
|
<?php
|
|
$map_habitation_type = [
|
|
'tenant' => 'Locataire',
|
|
'owner' => 'Proprietaire',
|
|
'withoutrentalcharge' => 'Sans charge locative'
|
|
];
|
|
|
|
$map_credit_hypothecaire_en_cours = [
|
|
'withmortgageloan' => 'Avec credit hypothecaire',
|
|
'mortgagechargeiber' => 'Libre de charge hypothecaire'
|
|
];
|
|
|
|
$map_sans_charge_locative = [
|
|
'other' => 'Autre',
|
|
'withparents' => 'Chez les parents',
|
|
'cohabitant' => 'Cohabitant',
|
|
'family' => 'Famille'
|
|
]
|
|
?>
|
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" class="content-table">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2" style="text-align:left; padding-bottom:12px;">
|
|
<h2 style="color:#001954; font-size:24px; margin:0;">Demande de crédit</h2>
|
|
|
|
<p style="margin: 0 0 24px 0; color: #333; line-height: 1.5; mso-line-height-rule: exactly;">
|
|
Cher(e) <?php echo $borrower->prenom ?>,<br><br>
|
|
Nous avons bien reçu votre demande de crédit et nous vous en remercions. Votre dossier est actuellement en cours d'analyse par nos services.<br><br>
|
|
Voici un récapitulatif des informations que vous nous avez fournies :
|
|
</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td style="max-width: 50%"><strong>Type de crédit:</strong></td>
|
|
<td style="max-width: 50%"><?php echo array_key_exists($currentCredit->type_credit, $map_credit_type) ? $map_credit_type[$currentCredit->type_credit] : 'Type de crédit inconnu' ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Capital:</strong></td>
|
|
<td><?php echo $currentCredit->capital ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Durée:</strong></td>
|
|
<td><?php echo $currentCredit->duree ?> <?php if ($currentCredit->type_credit === 'am'): ?>ans<?php else: ?>mois<?php endif ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Coût total:</strong></td>
|
|
<td><?php echo $currentCredit->cout_total ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Mensualité:</strong></td>
|
|
<td><?php echo $currentCredit->mensualite ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Taux nominal annuel:</strong></td>
|
|
<td><?php echo $currentCredit->taux_nominal_annuel ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>TAEG:</strong></td>
|
|
<td><?php echo $currentCredit->taux_nominal_annuel ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Commentaire:</strong></td>
|
|
<td><?php echo $currentCredit->commentaire ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php if ($is_credit_auto) : ?>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2" style="text-align:left; padding-top:24px; padding-bottom:12px;">
|
|
<h3 style="color:#001954; font-size:20px; margin:0;">Financement véhicule</h3>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>Marque + Modèle:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->marque ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Date 1ère immatriculation:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->date_immatriculation ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Nom du vendeur:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->nom_vendeur ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Adresse du vendeur:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->adresse_vendeur ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Prix d'achat du véhicule:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->prix_vehicule ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Montant de l'acompte:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->montant_accompte ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Montant de la reprise:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->montant_reprise ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Montant à emprunter:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->montant_emprunt ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Durée:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_auto->duree ?> mois</td>
|
|
</tr>
|
|
</tbody>
|
|
<?php endif ?>
|
|
<?php if ($is_one_step_credit) : ?>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2" style="text-align:left; padding-top:24px; padding-bottom:12px;">
|
|
<h3 style="color:#001954; font-size:20px; margin:0;">Crédit hypothécaire</h3>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>Type de crédit:</strong></td>
|
|
<td><?php echo array_key_exists($currentCredit->options_credit_hypothecaire->type_credit, $mapHouseCreditTypes) ? $mapHouseCreditTypes[$currentCredit->options_credit_hypothecaire->type_credit] : 'Type de crédit inconnu' ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Prix d'achat:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_hypothecaire->prix_achat ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Prix de la construction TVAC:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_hypothecaire->prix_construction_tvac ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Valeur du bâtiment:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_hypothecaire->valeur_batiment ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Fonds propres:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_hypothecaire->fonds_propre ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Compromis de vente signé:</strong></td>
|
|
<td>
|
|
<?php
|
|
if ($currentCredit->options_credit_hypothecaire->compromis_signe == '0') {
|
|
echo 'non';
|
|
} elseif ($currentCredit->options_credit_hypothecaire->compromis_signe == '1') {
|
|
echo 'oui';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Montant du revenu cadastral:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_hypothecaire->montant_revenu_cadastral ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Montant à emprunter:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_hypothecaire->montant_a_emprunter ?> €</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Durée:</strong></td>
|
|
<td><?php echo $currentCredit->options_credit_hypothecaire->duree ?> ans</td>
|
|
</tr>
|
|
</tbody>
|
|
<?php endif ?>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2" style="text-align:left; padding-top:24px; padding-bottom:12px;">
|
|
<h2 style="color:#001954; font-size:20px; margin:0;">Emprunteur</h2>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>Nom:</strong></td>
|
|
<td><?php echo $borrower->nom ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Prénom:</strong></td>
|
|
<td><?php echo $borrower->prenom ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Téléphone:</strong></td>
|
|
<td><?php echo $borrower->telephone ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Email:</strong></td>
|
|
<td><?php echo $borrower->email ?></td>
|
|
</tr>
|
|
<!-- <tr>
|
|
<td>Agence:</td>
|
|
<td><?php echo array_key_exists($borrower->FK_agence, $agencies) ? $agencies[$borrower->FK_agence]->Nom_agence : 'Agence inconnue' ?></td>
|
|
</tr> -->
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 32px 24px 0 24px;">
|
|
<p style="margin: 0 0 24px 0; color: #333; line-height: 1.5; mso-line-height-rule: exactly;">
|
|
Pour la suite des formalités vous allez être prochainement contacté par un de nos conseillers.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="footer">
|
|
<hr>
|
|
Cet email a été envoyé automatiquement, merci de ne pas y répondre.<br>
|
|
© <?php echo date('Y'); ?> Crédit Direct. Tous droits réservés.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|