All Notifications
@can('notifications.destroy') @if($notifications->count()) @endif @endcan
@forelse($notifications as $notification)
@php
$data = is_array($notification->data)
? $notification->data
: json_decode($notification->data, true);
$isUnread = is_null($notification->read_at);
@endphp
@empty
{{ $data['title'] ?? 'System Notification' }}
{{ $data['message'] ?? '' }}
{{ $notification->created_at->diffForHumans() }}
No notifications available
@endforelse