@php $unreadNotifications = auth()->user()->unreadNotifications()->latest()->limit(8)->get(); $unreadNotificationsCount = auth()->user()->unreadNotifications()->count(); @endphp

{{ __('messages.notifications') }}

@forelse($unreadNotifications as $notification) {{ data_get($notification->data, 'title') }} {{ data_get($notification->data, 'message') }} @empty
{{ __('messages.no_unread_notifications') }}
@endforelse