{% extends "base.html.twig" %} {% block title %}Vos commandes{% endblock %} {% block body %}
{#
#}

Mon espace personnel

{#
#}

Détails de vos commandes

Gérer vos commandes ici
{% for order in orders %}
Commande numéro : {{ order.id }}
Date de commande
Total
Status
Envoyé le
{{ order.createdAt|date("d / m / Y") }}
{{ order.total/100 }} €
{% if order.status == 'sent' %} Envoyé {% endif %}
{% if order.sentAt is not null %}
{{ order.sentAt|date("d / m / Y") }}
{% endif %}
{% for product in order.orderProducts | slice(0,3) %} {% endfor %}
{% endfor %}
{% endblock %}