{!! view_render_event('bagisto.shop.checkout.onepage.address.before') !!}

<!-- Accordian Blade Component -->
<x-yas_member::accordion class="mb-7 mt-8 overflow-hidden !border-b-0 max-md:mb-0 max-md:mt-0  max-md:!border-none max-md:!bg-gray-100">
    <!-- Accordian Header Component Slot -->
    <x-slot:header class="!p-0 max-md:!mb-0 max-md:rounded-t-md max-md:!p-3 max-md:text-sm max-md:font-medium max-sm:!p-2">
        <div class="flex items-center justify-between">
            <h2 class="text-2xl font-medium max-md:text-base">
                @lang('yas_theme::app.checkout.onepage.address.title')
            </h2>
        </div>
    </x-slot>

    <!-- Accordian Content Component Slot -->
    <x-slot:content class="mt-8 !p-0 max-md:mt-0 max-md:rounded-t-none max-md:border max-md:border-t-0 max-md:!p-4">
        <!-- If the customer is guest -->
        <template v-if="cart.is_guest">
            @include('yas_member::checkout.onepage.address.guest')
        </template>

        <!-- If the customer is logged in -->
        <template v-else>
            @include('yas_member::checkout.onepage.address.customer')
        </template>
    </x-slot:content>
</x-yas_member::accordion>

{!! view_render_event('bagisto.shop.checkout.onepage.address.after') !!}