@php
    $layout = Auth::check() ? 'app-layout' : 'guest-layout';
@endphp

<x-dynamic-component :component="$layout">
    <div class="mt-48 mb-36 flex flex-col items-center justify-center px-4">
        <div class="text-center leading-loose">
            <h3 class="text-lg font-medium text-theme-primary mb-4">
                {{ __($exception->getMessage() ?: 'Forbidden') }}
            </h3>
            <div class="text-sm text-theme-secondary">
                403
            </div>
        </div>

        <x-jetstream.button onclick="window.location.href='{{ Auth::check() ? route('main') : route('welcome') }}'" class="mt-12">
            {{ Auth::check() ? __('Main page') : __('Welcome') }}
        </x-jetstream.button>
    </div>
</x-dynamic-component>