@extends('admin.layout') @section('title', 'Notifications') @section('page-title', 'Notifications') @section('page-icon', 'bell') @section('content')
All notifications @if(auth()->user()->unreadNotifications()->count() > 0)
@csrf
@endif
@forelse($notifications as $n) @php $data = $n->data ?? []; $body = $data['body'] ?? 'Notification'; @endphp
{{ $body }}
{{ $n->created_at->format('d M Y, H:i') }}
@if(!$n->read_at) New @endif
@empty
You have no notifications.
@endforelse
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif
@endsection