{{-- Header actions --}} @if(auth()->user()->unreadNotifications()->count() > 0)

You have {{ auth()->user()->unreadNotifications()->count() }} unread notification(s).

@endif {{-- Notification list --}}
@forelse($notifications as $notification) @php $isUnread = is_null($notification->read_at); @endphp
{{-- Status dot --}}
{{-- Content --}}

{{ $notification->data['message'] ?? 'Application status updated.' }}

@if(!empty($notification->data['reference_number'])) {{ $notification->data['reference_number'] }} → @endif

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

{{-- Mark read --}} @if($isUnread) @endif
@empty

No notifications yet

You'll be notified when your application status changes.

@endforelse
{{-- Pagination --}} @if($notifications->hasPages())
{{ $notifications->links() }}
@endif