Notifications

{{ $subtitle ?? 'Stay updated on your account activity.' }}

@if ($notifications->where('read_at', null)->count() > 0)
@csrf
@endif
@forelse ($notifications as $notification) @php $data = $notification->data; $icon = $data['icon'] ?? 'bell'; $iconBg = match ($icon) { 'domain' => 'bg-emerald-50', 'hosting' => 'bg-violet-50', 'email' => 'bg-pink-50', 'billing' => 'bg-amber-50', 'success' => 'bg-green-50', default => 'bg-slate-100', }; $iconColor = match ($icon) { 'domain' => 'text-emerald-600', 'hosting' => 'text-violet-600', 'email' => 'text-pink-600', 'billing' => 'text-amber-600', 'success' => 'text-green-600', default => 'text-slate-500', }; @endphp
@if ($icon === 'domain' && view()->exists('components.icons.domain-globe')) @include('components.icons.domain-globe', ['class' => 'h-5 w-5 ' . $iconColor]) @elseif ($icon === 'email') @elseif ($icon === 'hosting') @elseif ($icon === 'billing') @elseif ($icon === 'success') @else @endif

{{ $data['title'] ?? 'Notification' }}

{{ $data['message'] ?? '' }}

{{ $notification->created_at->diffForHumans() }}
@if (! empty($data['url'])) View details → @endif
@if (! $notification->read_at)
@csrf
@endif
@empty

No notifications

{{ $emptyMessage ?? "You're all caught up." }}

@endforelse
@if ($notifications->hasPages())
{{ $notifications->links() }}
@endif