<?xml version="1.0"?>
<t t-name="portal.my_addresses">
        <t t-set="additional_title">My addresses</t>
        <t t-call="portal.portal_layout">
            <div class="o_portal_addresses">
                <h5 class="mt-4">Delivery address</h5>
                <t t-call="portal.address_row">
                    <t t-set="addresses" t-value="delivery_addresses"/>
                    <t t-set="address_type" t-valuef="delivery"/>
                </t>
                <h5 class="mt-4">Billing address</h5>
                <div class="form-check form-switch mt-2 mb-3">
                    <label id="use_delivery_as_billing_label">
                        <input type="checkbox" id="use_delivery_as_billing" class="form-check-input" t-att-checked="use_delivery_as_billing"/> Same as delivery address
                    </label>
                </div>
                <div id="billing_container" t-attf-class="{{'d-none' if use_delivery_as_billing else ''}}">
                    <t t-call="portal.address_row">
                        <t t-set="addresses" t-value="billing_addresses"/>
                        <t t-set="address_type" t-valuef="billing"/>
                    </t>
                </div>
            </div>
        </t>
    </t>

    