@extends('layouts.admin') @section('title', 'Notifications') @section('page-title', 'Notifications') @section('page-subtitle', 'View and manage your notifications') @section('content')

All Notifications

@php $unreadCount = auth()->user()->notifications()->whereNull('read_at')->count(); @endphp @if($unreadCount > 0)
@csrf
@endif
@forelse($notifications as $notification)

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

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

@csrf @method('DELETE')
@empty

No notifications

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