{% extends "base.html.twig" %} {% block body %} {% block nav %}{{ parent() }}{% endblock nav %}
{# Photo avant passage #}

{{ 'prestation.photos.before'|trans }}

{% for key, pic in beforePicture %} {% endfor %}
{% if not beforePicture or beforePicture|length < 3 %} {% endif %}
{% if prestation.date < date() %} {# Photo après passage #}

{{ 'prestation.photos.after'|trans }}

{% for key, pic in afterPicture %} {% endfor %}
{% if not afterPicture or afterPicture|length < 3 %} {% endif %}
{% endif %}

{{ ux_icon('material-symbols:star',{width:64,height:64}) }}

{{ prestation.date|format_datetime('full', 'short', locale: app.session.get('_locale')) }}

{% if isDateValid and prestation.date > date() %} {% else %} {% if prestation.status.value == "PAID" %} {% if prestation.date < date() %} {% else %}

{{ 'prestation.alert.too_late_to_cancel'|trans }}

{% endif %} {% else %}

{{ 'prestation.status.refunded'|trans }}

{% endif %} {% endif %} {# #} {% for product in prestation.products %} {# #} {% endfor %}
NomDescriptionDurée Prix
{{ product.name|trans }}{{ product.description|trans }}{{ product.duree }} min {{ (product.price / 100)|number_format(2, '.', ',') }} €
{% if prestation.coupon %}

{{ ux_icon('mingcute:coin-line', { width: 32, height: 32}) }} {{ 'payment.token'|trans }}

{% endif %}

{{ prestation.totalTime }} min - {{ (prestation.total / 100)|number_format(2, '.', ',') }} €

n°{{prestation.invoiceNumber}} | {{ prestation.invoiceDate|format_datetime('medium', 'none', locale: app.session.get('_locale')) }}

{% if prestation.stripePaiementIntent and prestation.status.value == 'PAID' and isDateValid and prestation.date > date() %} {% endif %}
{% endblock %}