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

<header class="cart-header">
    <div class="row">
        <div class="col-md">
            {{ headers.shop(header|trans, 'cart', 'sylius.ui.edit_your_items_apply_coupon_or_proceed_to_the_checkout'|trans) }}
        </div>
        <div class="col-md-auto align-self-center text-right">
            <form method="post" action="{{ path('sylius_shop_cart_clear') }}" >
                <input type="hidden" name="_method" value="DELETE" />
                <input type="hidden" name="_csrf_token" value="{{ csrf_token(cart.id) }}" />

                <button type="submit" id="sylius-cart-clear" {{ sylius_test_html_attribute('cart-clear-button') }} class="link-secondary">
                    {{ 'sylius.ui.clear_cart'|trans }}
                </button>
            </form>
        </div>
    </div>
</header>
