<div class="checkout-shipping-list">
    {% if loop.length>1 %}
        <p class="h5">{{ 'sylius.ui.shipment'|trans }} #{{ loop.index }}</p>
    {% endif %}

    <div {{ sylius_test_html_attribute('shipments') }}>
        {{ form_errors(form.method) }}

        <div class="selection-blocks">
            {% for key, choice_form in form.method %}
                {% set fee = form.method.vars.shipping_costs[choice_form.vars.value] %}
                {% set method = form.method.vars.choices[key].data %}
                {% include '@SyliusShop/Checkout/SelectShipping/_choice.html.twig' with {'form': choice_form, 'method': method, 'fee': fee} %}
            {% else %}
                {% include '@SyliusShop/Checkout/SelectShipping/_unavailable.html.twig' %}
            {% endfor %}
        </div>
    </div>
</div>
