@if(auth()->user()->unreadNotifications->count() > 0) @endif
Notifications
@csrf @method('PUT')
@forelse (auth()->user()->unreadNotifications->take(10) as $notification)

{{ $notification->data['title'] ?? 'New Notification' }}

{{ $notification->data['message'] ?? '' }}

{{ $notification->created_at->diffForHumans() }}

@empty

No unread notifications

@endforelse