{% extends "@EasyAdmin/page/content.html.twig" %} {% set titre ='Réservation' %} {% block content_title %} {{ titre }} pour {{ booking.schedule.company }} du {{ booking.schedule.scheduleDate|date('d/m/Y') }} {% endblock %} {% block header %} {{ parent() }} {% endblock %} {% block head_stylesheets %} {% endblock %} {% block main %}
{% set tarifs = booking.schedule.typeTarif.tarif %} {% set firstname ='' %} {% set lastname ='' %} {% set arrayTarifs = [] %} {% for tarif in tarifs %} {% if ((tarif.company == booking.schedule.company) and (tarif.depart == booking.schedule.depart) and (tarif.arrivee == booking.schedule.arrivee)) %} {% set arrayTarifs = arrayTarifs|merge([{ id: tarif.id, name: tarif.name, amount: tarif.amount }]) %} {% endif %} {% endfor %}
{{ form_start(form) }} {% for message in app.flashes('echec') %}
{{ message }}
{% endfor %} {% if booking.schedule.company.image is null %} {% else %} {% endif %}
{{ form_row(form.agenceDepart)}}
{{ form_row(form.agenceArrivee)}}
Départ > Arrivée {{ booking.schedule.departureTime|date('H:i') }} > {{ booking.schedule.estimatedArrivalTime|date('H:i') }}
Tarif {{ booking.schedule.typeTarif }}
Nb de places/Montant
{{ booking.numberOfSeats }}
 /  {% if (arrayTarifs is empty) %} {% set tarif0 = 0 %} {% else %} {% set tarif0 = arrayTarifs[0].amount %} {% endif %} {{ tarif0 }}  XAF
Coupon
{{ form_row(form.phone)}}
{{ form_row(form.send)}}
{{ form_end(form) }}
{% endblock %} {% block body_javascript %} {% endblock %}