<?xml version="1.0"?>
<t t-name="website_sale.billing_address_row">
        <div id="billing_address_row" class="mb-3">
            <p t-attf-class="{{only_services and 'h4 mb-3' or 'h5'}}">
                Billing address
            </p>
            <t t-set="has_delivery" t-value="order._has_deliverable_products()"/>
            <div t-if="has_delivery" 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 and has_delivery else ''}}">
                <t t-call="website_sale.address_row">
                    <t t-set="address_type" t-value="'billing'"/>
                    <t t-set="addresses" t-value="billing_addresses"/>
                    <t t-set="selected_address" t-value="order.partner_invoice_id"/>
                </t>
            </div>
        </div>
    </t>

    