{% extends '@SyliusShop/layout.html.twig' %}

{% form_theme form '@SyliusShop/Form/theme.html.twig' %}

{% import '@SyliusUi/Macro/messages.html.twig' as messages %}

{% set header = 'sylius.ui.your_shopping_cart' %}

{% block stylesheets %}
    {{ parent() }}
    {{ encore_entry_link_tags('process', null, 'dedi') }}
{% endblock %}

{% block content %}
    <div class="cart-container container">
        {% if not cart.empty %}
            {{ sylius_template_event('sylius.shop.cart.header', {'header': header, 'cart': cart}) }}
            <div class="row cart-content">
                <div class="col-lg-8">
                    {{ sylius_template_event('sylius.shop.cart.items', {'cart': cart, 'form': form}) }}
                </div>

                <div class="col-lg-4">
                    {{ sylius_template_event('sylius.shop.cart.summary', {'cart': cart}) }}
                </div>
            </div>

            {{ sylius_template_event('sylius.shop.cart.suggestions', {'cart': cart}) }}
        {% else %}
            {{ messages.info('sylius.ui.your_cart_is_empty') }}
        {% endif %}
    </div>
{% endblock %}
