{% extends '@SyliusShop/layout.html.twig' %} {% block title %} {{ 'sylius.ui.thank_you'|trans }} | {{ parent() }} {% endblock %} {% block content %}
{% set last_payment = order.payments.last() %}

{{ 'sylius.ui.thank_you'|trans }}

{{ 'sylius.ui.placed_an_order'|trans }}

{{ sylius_template_event('sylius.shop.order.thank_you.after_message', {'order': order}) }} {% if last_payment != false and last_payment.method.instructions is not null %}
{{ last_payment.method.instructions }}
{% endif %}
{% if last_payment != false %} {{ 'sylius.ui.view_your_order_or_change_payment_method'|trans }} {% endif %} {% if order.customer.user is not null %} {{ 'sylius.ui.view_order'|trans }} {% else %} {{ 'sylius.ui.change_payment_method'|trans }} {{ 'sylius.ui.create_an_account'|trans }} {% endif %}
{% endblock %}