<div class="cart-items">
    {{ form_start(form, {'action': path('sylius_shop_cart_save'), 'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate', 'id': form.vars.id}}) }}
    {{ form_errors(form) }}
    <input type="hidden" name="_method" value="PATCH"/>
    {{ form_row(form._token) }}
    {{ form_end(form, {'render_rest': false}) }}

    {{ sylius_template_event('sylius.shop.cart.summary.items', {'cart': cart, 'form': form}) }}

    <table id="sylius-cart-items" {{ sylius_test_html_attribute('cart-items') }} class="table table-bordered cart-items">
        <thead>
            <tr>
                <th>{{ 'sylius.ui.item'|trans }}</th>
                <th>{{ 'sylius.ui.unit_price'|trans }}</th>
                <th class="text-center">{{ 'sylius.ui.qty'|trans }}</th>
                <th class="text-right">{{ 'sylius.ui.total'|trans }}</th>
                <th></th>
            </tr>
        </thead>

        <tbody>
            {% for key, item in cart.items %}
                {% include '@SyliusShop/Cart/Summary/_item.html.twig' with {'item': item, 'form': form.items[key], 'main_form': form.vars.id, 'loop_index': loop.index, 'is_valid': form.vars.valid } %}
            {% endfor %}
        </tbody>

        {% if form.promotionCoupon is defined %}
            <tfoot>
                <tr>
                    <td colspan="5">
                        {{ sylius_template_event('sylius.shop.cart.coupon', {'cart': cart, 'form': form, 'main_form': form.vars.id}) }}
                    </td>
                </tr>
            </tfoot>
        {% endif %}
    </table>
</div>
