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

<header class="cart-header">
    {{ headers.default(header|trans, 'shopping-cart', 'sylius.ui.edit_your_items_apply_coupon_or_proceed_to_the_checkout'|trans) }}

    <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="btn btn-outline-danger">
            <i class="fa fa-times"></i>&nbsp;{{ 'sylius.ui.clear_cart'|trans }}
        </button>
    </form>
</header>
