@php $notifications = $notifications ?? collect(); $notifications = auth()->user()->notifications; // All notifications $unreadCount = auth()->user()->unreadNotifications->count();// if not passed, use an empty collection @endphp @if($notifications->isNotEmpty()) {{-- show notifications --}} @endif
Mon
2%
Tue
2%
Wed
1%
Thu
1%
Fri
1%
Sat
1%
Sun
1%
@else
{{ Auth::user()->email }}