Notifications @php $filtersActive = $statusFilter !== 'all' || $typeFilter !== '' || trim($search) !== ''; $dot = ['danger' => 'bg-red-500', 'warning' => 'bg-amber-500', 'success' => 'bg-green-500', 'info' => 'bg-indigo-500']; @endphp @if (session('success'))
{{ session('success') }}
@endif
@foreach (['all' => 'All', 'unread' => 'Unread'.($unreadCount ? " ({$unreadCount})" : ''), 'read' => 'Read'] as $value => $label) @endforeach
@if ($filtersActive) @endif @if ($unreadCount > 0) @endif
    @forelse ($notifications as $notification) @php $severity = $service->severity($notification->type); @endphp
  • is_null($notification->read_at), ]) >
    {{ $service->label($notification->type) }}
    @if (! empty($notification->data['url'])) {{ $notification->data['message'] ?? '' }} @else
    {{ $notification->data['message'] ?? '' }}
    @endif
    {{ $notification->created_at->diffForHumans() }}
    @if (is_null($notification->read_at)) @else @endif
  • @empty
  • @if ($filtersActive) @else @endif
  • @endforelse
@if ($notifications->isNotEmpty())
{{ $notifications->links() }}
@endif