{% extends 'admin/base_admin.html.twig' %} {% block title %}Gestion des Commandes - Administration{% endblock %} {% block content %} {# SECTION FILTRES #}
🔍 Filtres
{# Filtres par statut #}
{# Barre de recherche #}
{# TABLEAU DES COMMANDES #}
{% if commandes|length > 0 %}
{% for commande in commandes %} {% endfor %}
Référence Client Date Pack Bénéficiaires Montant TTC Statut Actions
{{ commande.reference }} {% if commande.isPaid %} âś“ {% endif %}
{{ commande.clientNom }}
{{ commande.clientEmail }}
{{ 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 }} {% if not b.isActive %} â›” {% endif %}
{% endfor %} {% else %} — {% endif %}
{{ commande.totalTTC|number_format(2, ',', ' ') }} € {{ commande.statusLabel }} Détail →
{{ commandes|length }} commande{% if commandes|length > 1 %}s{% endif %} trouvée{% if commandes|length > 1 %}s{% endif %}
{% else %}
📦
Aucune commande trouvée

{% if search or currentStatus %} Aucune commande ne correspond à vos critères de recherche. {% else %} Il n'y a pas encore de commandes dans le système. {% endif %}

{% if search or currentStatus %} Réinitialiser les filtres {% endif %}
{% endif %}
{# LÉGENDE DES STATUTS #}
ℹ️ Légende des statuts
Brouillon Non finalisée
En attente Attente paiement
Payée Paiement reçu
En traitement En préparation
Complétée Terminée
Annulée Annulée
{% endblock %}