<div class="shipment-method card">
    <header class="card-header" id="sylius-shipping-method" {{ sylius_test_html_attribute('shipping-method') }}>
        {{ 'app.ui.cart.delivery_title'|trans }}
    </header>

    <div class="card-body">
        {% set state = order.shippingState %}
        {% if state != 'cart' %}
            {% include "@SyliusShop/Common/Order/Label/ShipmentState/orderShipmentState.html.twig" %}
        {% endif %}

        <table class="table mt-3">
            <tbody>
                {% for shipment in order.shipments %}
                    {% set state = shipment.state %}
                    <tr>
                        <td>
                            {% if state != 'cart' %}
                                <span id="shipment-status" {{ sylius_test_html_attribute('shipment-state') }}>
                                    {% include "@SyliusShop/Common/Order/Label/ShipmentState/singleShipmentState.html.twig" with { 'state': state } %}
                                </span>
                            {% endif %}
                            {{ shipment.method }}
                        </td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>
