{% extends 'base.html.twig' %} {% set titre ='Réservation' %} {% block title %}{% endblock %} {% block body %}

{{ titre }} {{ booking.numdossier }}

{% set i = 0 %} {% for passager in passagers %} {% set i = i + 1 %} {% endfor %}
{{ i }} - {{ passager.lastname }} {{ passager.firstname }}
{{ booking.schedule.company }}
{% if booking.schedule.company.image is null %} {% else %} {% endif %}
{% for conf in booking.schedule.bus.conforts %} {{conf.description}} {% endfor %}
{{ booking.schedule.scheduleDate ? booking.schedule.scheduleDate|format_datetime('full', 'none', locale='fr') }}
{{ booking.schedule.departureTime ? booking.schedule.departureTime|date('H:i') : '' }} {# #} {{ booking.schedule.depart }} - {{ booking.agenceDepart }}
{{ booking.schedule.estimatedArrivalTime ? booking.schedule.estimatedArrivalTime|date('H:i') : '' }} {# #} {{ booking.schedule.arrivee }} - {{ booking.agenceArrivee }}
{% if booking.status %} {% else %} {% endif %}
Montant : {{ booking.totalAmount }} {{ booking.status.currency }} - Transaction : {{ booking.status.financialTransactionId }}
Status de la transaction Non payée
{% if not(booking.user) and (booking.status) %} {{ form_start(form) }}
{{ form_row(form.email) }} {{ form_row(form.password) }} {{ form_row(form.send) }} {{ form_end(form) }} {% endif %}
{% endblock %} {% block footer %} {{ include('footer.html.twig') }} {% endblock %}