@auth()
@if (auth()->user()->role_id == 1)
@if(in_array(request()->route()->getName(), ['404', '500']))
@include('layouts.navbars.guest.white-nav')
{{ $slot }}
@include('layouts.footers.guest')
@else
@include('layouts.navbars.auth.sidebar')
@include('layouts.navbars.auth.topnav')
@include('components.plugins.fixed-plugin')
{{ $slot }}
@endif
{{-- If a member is authenticated --}}
@else
@if(in_array(request()->route()->getName(), ['user.fill']))
@include('layouts.navbars.guest.dark-nav')
{{ $slot }}
@else
@include('layouts.navbars.auth.sidebar')
@include('layouts.navbars.auth.topnav')
@include('components.plugins.fixed-plugin')
{{ $slot }}
@include('layouts.footers.auth')
@endif
@endif
@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() && in_array(request()->route()->getName(),['login', 'register'],))
@include('layouts.navbars.guest.dark-nav')
{{ $slot }}
@include('layouts.footers.guest')
@endif
@if (!auth()->check() && in_array(request()->route()->getName(),['forgot-password', 'reset-password'],))
@include('layouts.navbars.guest.dark-nav')
{{ $slot }}
@include('layouts.footers.guest')
@endif
@endguest