{% extends 'base.html.twig' %} {% block title %} {{ 'points.title'|trans }} {% endblock %} {% block description %} {% endblock %} {% block body %} {% include "front/inc/breadcrumb.html.twig" with { 'current_page' : 'points.title'|trans, 'content_title': 'compte.title'|trans, 'content_lien' : path('app_account',{'_locale':app.request.locale}), 'image' : '' } %}

{{ 'points.title'|trans }}

{% if app.user.reservants.fidelite >= variable.minFedilite %} {{ 'points.convert'|trans }} {% endif %}
{% if mespoints|length > 0 %}
{{ 'points.table.reservation'|trans }}
{{ 'points.table.date'|trans }}
{{ 'points.table.reward'|trans }}
{{ 'points.table.status'|trans }}
{% for point in mespoints %}
{% if point.deduit == 0 %} {% endif %} N° {{point.reservations ? point.reservations.reference : point.vente.numeReservation }}
{% if app.request.locale == 'en' %} {{ point.dateCreation|format_datetime(locale='en',pattern="EEEE dd MMMM YYYY") }} {% else %} {{ point.dateCreation|format_datetime(locale='fr',pattern="EEEE dd MMMM YYYY") }} {% endif %}
{{point.points}}
{% if point.deduit == 0 %} {{ 'points.status.confirmed'|trans }} {% else %} {{ point.codePromo }} {% endif %}
{% endfor %}
{% else %}

{{ 'points.empty'|trans }}

{% endif %}
{% endblock %}