<x-layouts.base>
    {{-- If the user is authenticated --}}
    @auth()
        @include('layouts.navbars.auth.sidebar')
        @include('layouts.navbars.auth.nav')
        {{ $slot }}
    @endauth

    {{-- If the user is not authenticated (if the user is a guest) --}}
    @guest
        {{-- If the user is on the login page --}}
        @if (!auth()->check() && request()->route()->getName() == 'login')
            @include('layouts.navbars.guest.login')
            {{ $slot }}
        @endif
    @endguest
</x-layouts.base>
