{% extends 'account/base_account.html.twig' %} {% block page_title %}Mes commandes{% endblock %} {% block content %}
Retrouvez l'historique de toutes vos commandes
| Référence | Date | Pack | Cartes | Montant TTC | Statut | |
|---|---|---|---|---|---|---|
| {{ commande.reference }} {% if commande.isPaid %} âś“ {% endif %} |
{{ commande.createdAt|date('d/m/Y') }}
{{ commande.createdAt|date('H:i') }} |
Pack {{ commande.packType|capitalize }} |
{% if commande.beneficiaires|length > 0 %}
{% for b in commande.beneficiaires %}
{{ b.prenom|slice(0,1)|upper }}{{ b.nom|slice(0,1)|upper }}
{{ b.prenom }} {{ b.nom }}
|
{{ commande.totalTTC|number_format(2, ',', ' ') }} € | {% set statusClass = { 'draft': 'badge-draft', 'pending': 'badge-pending', 'paid': 'badge-paid', 'processing': 'badge-processing', 'completed': 'badge-completed', 'cancelled': 'badge-cancelled' } %} {% set statusLabel = { 'draft': 'Brouillon', 'pending': 'En attente', 'paid': 'Payée', 'processing': 'En cours', 'completed': 'Terminée', 'cancelled': 'Annulée' } %} {{ statusLabel[commande.status] ?? commande.status }} | Détails → |