File: /home/lesanew/anestetues2/web/app/cache/acorn/framework/views/c745cf9d8583853e6ad8625abf987bdb.php
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Vos réservations - <?php echo e($site_name); ?></title>
</head>
<body style="font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background-color:#f5f5f5; padding:20px;">
<div style="max-width:640px; margin:0 auto; background:#ffffff; border-radius:8px; overflow:hidden; border:1px solid #e5e5e5;">
<div style="padding:20px 24px; border-bottom:1px solid #eeeeee; background:#111827; color:#ffffff;">
<h1 style="margin:0; font-size:20px;">
<?php echo e($site_name); ?> – Récapitulatif de vos réservations
</h1>
</div>
<div style="padding:20px 24px; color:#111827; font-size:14px; line-height:1.5;">
<?php if(!empty($customer_name)): ?>
<p>Bonjour <?php echo e($customer_name); ?>,</p>
<?php else: ?>
<p>Bonjour,</p>
<?php endif; ?>
<p>
Merci pour votre commande sur <strong><?php echo e($site_name); ?></strong>.
Voici le récapitulatif de vos <strong>réservations chez les créateurs locaux</strong>.
</p>
<p style="margin-top:16px; margin-bottom:8px;">
<strong>Numéro de commande :</strong>
<?php echo e($order->get_order_number()); ?>
</p>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse; margin-top:12px; font-size:13px;">
<thead>
<tr>
<th align="left" style="padding:8px; border-bottom:1px solid #e5e7eb;">Produit</th>
<th align="left" style="padding:8px; border-bottom:1px solid #e5e7eb;">Créateur</th>
<th align="center" style="padding:8px; border-bottom:1px solid #e5e7eb;">Quantité</th>
<th align="right" style="padding:8px; border-bottom:1px solid #e5e7eb;">Prix unitaire</th>
</tr>
</thead>
<tbody>
<?php
$total = 0.0;
$creators = [];
?>
<?php $__currentLoopData = $reservations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$titre = $item['produit_createur_titre'] ?? '';
$qte = isset($item['quantity']) ? (int) $item['quantity'] : 1;
$qte = $qte > 0 ? $qte : 1;
$prix = isset($item['produit_createur_prix']) ? (float) $item['produit_createur_prix'] : null;
$createur = $item['createur_nom'] ?? '';
$creatorId = $item['createur_id'] ?? null;
if ($prix !== null) {
$total += $prix * $qte;
}
// On prépare aussi une liste des créateurs avec leurs coordonnées
if ($creatorId && ! isset($creators[$creatorId])) {
$creatorName = $createur !== '' ? $createur : get_the_title($creatorId);
$infos = get_field('informations', $creatorId);
$creatorAddress = '';
$creatorEmail = $item['creator_email'] ?? '';
$creatorPhone = '';
if (is_array($infos)) {
if (! empty($infos['adresse'])) {
$creatorAddress = (string) $infos['adresse'];
}
if ($creatorEmail === '' && ! empty($infos['mail'])) {
$creatorEmail = (string) $infos['mail'];
}
if (! empty($infos['telephone'])) {
$creatorPhone = (string) $infos['telephone'];
}
}
$creators[$creatorId] = [
'name' => $creatorName,
'address' => $creatorAddress,
'email' => $creatorEmail,
'phone' => $creatorPhone,
];
}
?>
<tr>
<td style="padding:8px; border-bottom:1px solid #f3f4f6;">
<?php echo e($titre); ?>
</td>
<td style="padding:8px; border-bottom:1px solid #f3f4f6;">
<?php echo e($createur); ?>
</td>
<td align="center" style="padding:8px; border-bottom:1px solid #f3f4f6;">
<?php echo e($qte); ?>
</td>
<td align="right" style="padding:8px; border-bottom:1px solid #f3f4f6;">
<?php if($prix !== null): ?>
<?php
$formatted = number_format($prix, 2, ',', ' ') . ' €';
?>
<?php echo e($formatted); ?>
<?php else: ?>
—
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<p style="margin-top:16px;">
<strong>Total estimatif des réservations :</strong>
<?php
$formattedTotal = number_format($total, 2, ',', ' ') . ' €';
?>
<strong><?php echo e($formattedTotal); ?></strong>
</p>
<p style="margin-top:16px; font-size:13px; color:#4b5563;">
Attention : ces réservations sont gérées directement avec chaque créateur.
<br>
<strong>Aucun paiement ni aucune livraison ne sont assurés en ligne pour ces réservations.</strong><br>
Le retrait et le paiement se font <strong>en boutique du créateur</strong>, selon les modalités habituelles.
</p>
<?php if(!empty($creators)): ?>
<div style="margin-top:24px; font-size:13px;">
<h2 style="font-size:15px; margin:0 0 8px 0;">Informations des créateurs</h2>
<?php $__currentLoopData = $creators; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $creator): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div style="margin-bottom:12px;">
<strong><?php echo e($creator['name']); ?></strong><br>
<?php if(!empty($creator['address'])): ?>
<span>
<?php echo nl2br(e($creator['address'])); ?>
</span><br>
<?php endif; ?>
<?php if(!empty($creator['phone'])): ?>
<span>Téléphone : <?php echo e($creator['phone']); ?></span><br>
<?php endif; ?>
<?php if(!empty($creator['email'])): ?>
<span>
Email :
<a href="mailto:<?php echo e($creator['email']); ?>" style="color:#2563eb;">
<?php echo e($creator['email']); ?>
</a>
</span>
<?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php endif; ?>
<p style="margin-top:20px;">
Merci pour votre soutien aux créateurs locaux !
</p>
</div>
<div style="padding:12px 24px; font-size:11px; color:#6b7280; border-top:1px solid #e5e7eb; background:#f9fafb;">
<p style="margin:0;">
Cet email vous a été envoyé par <?php echo e($site_name); ?> à la suite d'une commande sur le site.
</p>
</div>
</div>
</body>
</html>
<?php /**PATH /home/gaetan/www/les-anes-tetus-2.0/web/app/themes/anes-tetues/resources/views/emails/reservations-customer.blade.php ENDPATH**/ ?>