{# templates/commande/recap.html.twig #} {# Récapitulatif de commande NUM-ECARD #} {% extends 'base.html.twig' %} {% block title %}Récapitulatif de votre commande - {{ commande.reference }}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %}
{# Header #}

Commande enregistrée !

Voici le récapitulatif de votre commande

Référence : {{ commande.reference }}
{# Informations de la commande #}

📦 Détails de la commande

Pack choisi {{ commande.packLabel }}
Quantité {{ commande.quantity }}
Nombre de cartes {{ commande.totalCardsExpected }} carte{{ commande.totalCardsExpected > 1 ? 's' : '' }}
Mode de paiement {% if commande.paiementMode == 'comptant' %} 💳 Paiement comptant {% elseif commande.paiementMode == '3x' %} 📅 Paiement en 3x sans frais {% else %} 📅 Paiement en 4x sans frais {% endif %}
Date de création {{ commande.createdAt|date('d/m/Y à H:i') }}
Total à payer {{ commande.totalTTC|number_format(2, ',', ' ') }} € TTC
{# Informations client #}

👤 Vos informations

Nom {{ commande.clientNom }}
{% if commande.clientEntreprise %}
Entreprise {{ commande.clientEntreprise }}
{% endif %}
Email {{ commande.clientEmail }}
Téléphone {{ commande.clientTelephone }}
{% if commande.clientAdresse %}
Adresse {{ commande.clientAdresse }}
{% endif %}
{# Liste des bénéficiaires #}

🎴 Cartes de visite ({{ commande.beneficiaires|length }})

{% for beneficiaire in commande.beneficiaires %}
{{ loop.index }}

{{ beneficiaire.fullName }}

{{ beneficiaire.fonction }} - {{ beneficiaire.entreprise }}

Email
{{ beneficiaire.email }}
Téléphone
{{ beneficiaire.mobile }}
Adresse
{{ beneficiaire.adresse|nl2br }}
Charte graphique
{% if beneficiaire.charteType == 'template' %} Template n°{{ beneficiaire.charteTemplate }} {% else %} Personnalisée {% endif %}
{% if beneficiaire.services|length > 0 %}
Services
{{ beneficiaire.services|join(', ') }}
{% endif %}
{% endfor %}
{# Notes #} {% if commande.notes %}

📝 Notes

{{ commande.notes|nl2br }}

{% endif %} {# Actions #}
{% endblock %}