<x-guest-layout>
    @if (session('result'))
    <x-slot name="header">
            {{ __('Goodbye')}}
    </x-slot>

    <div class="py-6">
        <div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
            <div class="overflow-hidden bg-white shadow-xl sm:rounded-lg">
                <div class="border-b border-gray-200 bg-white p-6 sm:px-20">

                    <div class="mt-12">
                        <!-- TODO: insert goodbye image here -->
                        <div class="mt-8 text-xl lg:text-3xl font-bold text-theme-text-primary">
                            {{ __('Your profile has been deleted') }}
                        </div>
                    </div>
                    <div class="mb-12 mt-6 flex justify-between">
                        <p class="text-base lg:text-lg text-theme-text-primary">{{ __('Your profile has been deleted on:') }} {{ session('result')['time'] }}</p>
                    </div>
                    <div class="mb-12 mt-6 flex justify-between">
                        <p class="text-base lg:text-lg text-theme-text-primary">{{ trans_with_platform(__('On behalf of the @PLATFORM_NAME@ team, good bye!')) }}</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @else
    <!-- No session('deleted_at') present --> 
    <script>
        window.location.href = "{{ route('main') }}";
    </script>
    @endif
</x-guest-layout>