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

    {{ form_errors(form.method) }}

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