@forelse(auth()->user()->unreadNotifications->take(5) as $notification)
@php
$title = __($notification->data['title'] ?? 'Notification');
$message = __($notification->data['message'] ?? '', $notification->data['message_params'] ?? []);
@endphp
{{ $title }}
{{ $message }}
{{ $notification->created_at->diffForHumans() }}
@empty
No new notifications
@endforelse
@if(auth()->user()->unreadNotifications->count() > 5)
@endif
@endif
{{ $slot }}
@stack('js')