{% set state = order.shippingState %}
{% if state != 'cart' %}
    {% include "@SyliusShop/Common/Order/Label/ShipmentState/orderShipmentState.html.twig" %}
    <hr>
{% endif %}
{% for shipment in order.shipments %}
    {% set state = shipment.state %}

    <div class="shipment-method card">
        <header class="card-header" id="sylius-shipping-method" {{ sylius_test_html_attribute('shipping-method') }}>
            {{ shipment.method }}
        </header>

        <div class="card-body">
            {% if state != 'cart' %}
                <p id="shipment-status" class="card-text" {{ sylius_test_html_attribute('shipment-state') }}>
                    {% include "@SyliusShop/Common/Order/Label/ShipmentState/singleShipmentState.html.twig" with { 'state': state } %}
                </p>
            {% endif %}
        </div>
    </div>
{% endfor %}
