{% import '@SyliusShop/Macro/buttons.html.twig' as buttons %}


<div class="default-address card" id="sylius-default-address" {{ sylius_test_html_attribute('default-address') }}>
    <div class="card-body" {{ sylius_test_html_attribute('address', "%s %s"|format(address.firstName, address.lastName)) }}>
        <div class="row">
            <div class="col-md default-address-title">
                    <span class="icon-pattern-wrapper">
                          {% include '@SyliusShop/Icons/address-book.html.twig' %}
                    </span>
                <h6 class="h6">{{ 'sylius.ui.your_default_address'|trans }} </h6>
            </div>
            <div class="col-md default-address-information">
                {% include '@SyliusShop/Common/_address.html.twig' with {'address': address} %}
                <div class="action-card">
                    <div><a class="link-secondary"
                          href="{{ path('sylius_shop_account_address_book_update', {'id': address.id}) }}">{{ 'sylius.ui.edit'|trans }}</a>
                    </div>
                    <div> {{ buttons.delete(path('sylius_shop_account_address_book_delete', {'id': address.id}), null, true, address.id) }}</div>
                </div>
            </div>
        </div>
    </div>
</div>
