{% extends 'base_admin.html.twig' %} {% block body %} {% if order.cancel %} Cette commande a été annulée {% endif %}

Commande de {{ order.user.fullName }}

Retour
{# Bloc Info Commande #}

Information de la commande

Référence :
{{ order.reference }}

Moyen de paiement :
{{ order.paymentMethod.name }}

Total :
{{ order.total }} €

Reste à payer :
{{ order.outstandingBalance ?? 0 }} €

Statut du paiement :
{{ order.isPaid ? 'Payée' : 'Impayée' }}

{# Bloc par enfant #} {% for profilId, profilData in groupedStages %}

{{ profilData.profil.lastname|upper }} {{ profilData.profil.firstname|capitalize }}

Éditer le profil
{% if profilData.profil.mimePicture in ["image/jpeg", "image/png", "application/pdf"] %} {{ profilData.profil.fullname }} {% endif %}

Nom :
{{ profilData.profil.lastname|capitalize }}

Prénom :
{{ profilData.profil.firstname|capitalize }}

Date de naissance :
{{ profilData.profil.birthday|date('d/m/Y') }}

Lieu de naissance :
{{ profilData.profil.placeBirth }}


Stages réservés :

{% for stageItem in profilData.stages %} {% endfor %}
Nom Date Prix
{{ stageItem.stageDay.name }} {{ stageItem.stageDay.date|date('d/m/Y') }} {{ stageItem.price }} €

Documents

{# Modal Documents #} {{ include('admin/order/stage/_docs_block.html.twig', { profil: profilData.profil }) }}
{% endfor %}
{# Actions #}

Actions

{% if order.cancel == false %} {# Paiement #} {% if order.isPaid == false %} Valider le paiement {% endif %} {# Facture #}
{# Communication #}
{# Annulation #} Annuler la commande {% else %} Cette commande a été annulée {% endif %}
{# Infos utilisateur #}

Parent

Nom :
{{ order.user.fullName }}

Email :
{{ order.user.email }}

Téléphone :
{{ order.user.phone }}

Adresse :
{{ order.user.fullAddress }}

{# Rappels #}

Rappels

{% if order.reminders is empty %}

Aucun rappel

{% else %} {% for reminder in order.reminders %}

{{ reminder.name }}

{{ reminder.dateReminder|date('d/m/Y') }}


{% endfor %} {% endif %}
{# Logs #}

Historique

{% if order.logs is empty %}

Aucun log

{% else %} {% for log in order.logs|reverse|slice(0, 5) %}

{{ log.name }}

{{ log.createdAt|date('d/m/Y') }}


{% endfor %} {% endif %}
Un mail vous sera envoyé à la date du rappel {{ include('admin/order/_common/_reminder.html.twig') }} {{ include('admin/order/_common/_email.html.twig') }} {{ include('admin/order/_common/_payments.html.twig') }} {{ include('admin/order/_common/_add_payment.html.twig') }} {{ include('admin/order/_common/_logs.html.twig') }}
{% endblock %} {% block javascripts_end %} {% endblock %}