back to general
@php $user = auth()->user(); $notifications = $user?->notifications?->sortByDesc('created_at') ?? collect(); @endphp
Notifications
@foreach ($notifications as $notification)
{{ $notification->data['title'] ?? 'Notification' }}

{{ $notification->data['message'] ?? 'You have a new notification' }}

{{ $notification->created_at->diffForHumans() }}
@endforeach
See All Notification
{{ Auth::user()?->full_name ?? (Auth::user()?->first_name ?? 'Guest') }}