{{-- Header --}}

Notifications

@if($notifications->isNotEmpty()) @endif
@forelse($notifications as $notification)
{{-- Unread indicator --}} @if(is_null($notification->read_at))
@endif
{{-- Content --}}
{{ $notification->data['type'] ?? 'Notification' }} {{ $notification->created_at->diffForHumans(['parts' => 1]) }}

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

{{-- Actions --}}
@if(isset($notification->data['url'])) Open @endif
@csrf @method('delete')
@empty

No notifications

You're all caught up! Nothing new here.

@endforelse