@extends('layouts.app') @push('page-css') @vite(['resources/css/tools/notifications-page.css']) @endpush @section('content')

Notifications

@if($unreadCount > 0)
@csrf
@endif
All Unread @if($unreadCount > 0){{ $unreadCount }}@endif Read
@if($notifications->isEmpty())

{{ $filter === 'unread' ? 'No unread notifications.' : ($filter === 'read' ? 'No read notifications.' : 'No notifications yet.') }}

@else
@foreach($notifications as $notification)
{{ $notification->data['title'] ?? 'Notification' }}
{{ $notification->data['message'] ?? '' }}
{{ $notification->created_at->diffForHumans() }}
@if(!$notification->read_at)
@csrf
@endif
@endforeach
{{ $notifications->links() }}
@endif
@endsection