@if(auth()->user()->unreadNotifications->isNotEmpty()) @endif

Notifications

@forelse ($notifications as $notification)
!$notification->read_at, 'bg-white'=> $notification->read_at])>
@if (isset($notification->data['topic'])) @else @endif

{{ ucfirst(str_replace('_', ' ', $notification->data['topic'] ?? 'Notification')) }}

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

@empty
You have no pending Notifications
@endforelse
@if ($notifications->hasMorePages())
Load More ...
@endif