@if(Auth::check())
@guest
@else @if(Auth::user()->roles == 1)
@elseif(Auth::user()->roles == 2)
@else
@endif @endguest
@guest @if (Route::has('login'))
{{ __('Login') }}
@endif @if (Route::has('register'))
{{ __('Register') }}
@endif @else @if(Auth::user()->roles == 1)
@if (auth()->check())
{{ auth()->user()->unreadNotifications->count() }}
@forelse (auth()->user()->unreadNotifications->take(5) as $notification) @if ($loop->first)
Mark All as Read
@endif
{{ $notification->data['data'] }}
@empty
No new notifications
@endforelse @foreach (auth()->user()->readNotifications->take(5) as $notification)
{{ $notification->data['data'] }}
@endforeach
@else
0
@endif
@endif
{{ Auth::user()->first_name }}
Change Password
{{ __('Logout') }}
@csrf
@endguest
@endif
@yield('content')