credit-direct/templates/email/credit-step1-mail.php
2025-12-18 09:44:42 +01:00

112 lines
5.0 KiB
PHP

<html>
<head>
<meta charset="UTF-8">
<title>Demande de crédit</title>
</head>
<!-- <body style="margin:0; padding:0; background:#001954; font-family:'Plus Jakarta Sans', Arial, Helvetica, sans-serif;"> -->
<body style="margin:0; padding:0; background:#ecf0f1; font-family:'Plus Jakarta Sans', Arial, Helvetica, sans-serif;">
<div style="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; font-family:'Plus Jakarta Sans', Arial, Helvetica, sans-serif;">
<div style="text-align:center; background:#fff; border-radius:12px 12px 0 0;">
<img src="<?php echo $this->main->asset('img/cred_banniere.jpg'); ?>" alt="Crédit Direct" width="600" height="120" style="display:block; margin:0 auto; width:600px; height:120px; border-radius:12px 12px 0 0;">
</div>
<div 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'
];
$show_all_mail = false;
if($currentCredit->type_credit == 'pat')
$show_all_mail = true;
/* $taeg = str_replace('%', '', $currentCredit->taux_nominal_annuel);
$taux_debiteur = number_format(($taeg * 0.11) + $taeg, 2); */
?>
<table style="border-collapse: separate; border-spacing: 10px; width:100%; color:#333;">
<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>
</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>
</tbody>
<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>
</div>
<div style="padding:24px 24px 0 24px; text-align:center; color:#888; font-size:13px;">
<hr style="border:none; border-top:1px solid #eee; margin:24px 0 16px 0;">
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.
</div>
</div>
</body>
</html>