@if($notifications->isEmpty()) @else
@foreach($notifications as $notification) @php $data = $notification->data; $isRead = $notification->read_at !== null; $message = $data['message'] ?? $data['body'] ?? ($data['greeting'] ?? 'New notification'); $title = $data['title'] ?? $data['subject'] ?? 'Notification'; @endphp
{{-- Icon --}}
{{-- Content --}}

{{ $title }}

@if(!$isRead) @endif

{{ $message }}

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

@endforeach
{{ $notifications->links() }}
@endif