Notifications

{{-- Header --}}

Notifications

@if ($unread_notification_count > 0) @endif @if ($notification_count > 0) @endif
@if ($notifications->count() === 0)

No notification(s).

@else {{-- Loop through grouped notifications --}} @foreach ($groups as $groupName => $groupNotifications) @if (count($groupNotifications))

{{ $groupName }}

@foreach ($groupNotifications as $notification)

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

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

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

@if (!$notification->read_at)
New
@endif
@endforeach
@endif @endforeach {{-- Pagination --}}
{{ $notifications->links() }}
@endif