{% import "@SyliusShop/Common/Macro/money.html.twig" as money %}

{% if cart.empty %}
    {{ 'sylius.ui.your_cart_is_empty'|trans }}.
{% else %}
    {% for item in cart.items %}
        <div class="dropdown-item">{{ item.quantity }} x <strong>{{ item.product }}</strong> {{ money.convertAndFormat(item.unitPrice) }}</div>
    {% endfor %}
    <div class="dropdown-item"><strong>{{ 'sylius.ui.subtotal'|trans }}</strong>: {{ money.convertAndFormat(cart.itemsTotal) }}</div>

    <div class="dropdown-item-text text-center">
        <a href="{{ path('sylius_shop_cart_summary') }}" class="btn btn-outline-secondary">{{ 'sylius.ui.view_and_edit_cart'|trans }}</a>
    </div>

    <div class="dropdown-divider"></div>

    <div class="dropdown-item-text text-center">
        <a href="{{ path('sylius_shop_checkout_start') }}" class="btn btn-primary">{{ 'sylius.ui.checkout'|trans }}</a>
    </div>
{% endif %}
