{% set layout = userData.role != 'ROLE_DISTRIBUTOR' ? 'base.html.twig' : 'layout-distributors.html.twig' %} {% extends layout %} {% block title %}Purchase{% endblock %} {% block stylesheets %} {{ parent() }} {{encore_entry_link_tags('mainCSS')}} {% endblock %} {% block body %} {% if userData.role == "ROLE_USER" or userData.role == "ROLE_ADMIN" %} {{ include("mx/nav_menu.twig", {option:'mx_homepage'}) }} {% else %} {{ include("distributors/nav_menu.twig",{option:'dist_homepage'}) }} {% endif %} {% set returnButton = "
Back To Profile
" %}
{{ returnButton|raw }}
The transaction has been successfully completed

{% if product == 'TravelMapfre' %} {% for code in authCode|split(',') %} Authoried operation code passenger # {{loop.index}}: {{ code }}
{% endfor %} {% else %} Authoried operation code: {{ authCode }} {% endif %}

Your order has been processed a confirmation email has been sent to {% if userData.role != "ROLE_DISTRIBUTOR" %} {{ email }}{% endif %} with the policy along with the "General Conditions" and "What to do in case of an accident" on PDF Format.

{% if product == 'TravelMapfre' %} You can now

{% else %} You can now Click here to Download the Document {# You can now Click here to Download the Document #} {% endif %}

{% endblock %} {% block javascripts %} {% if userData.role !='ROLE_DISTRIBUTOR' %} {% endif %} {% endblock %}