Notifications

@if ($this->unreadCount > 0) @endif
@forelse ($this->notifications as $notification)
@if ($notification->severity === \App\Enums\NotificationSeverityEnum::ERROR) @elseif ($notification->severity === \App\Enums\NotificationSeverityEnum::WARNING) @else @endif

{{ $notification->title }}

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }} @unless ($notification->isRead()) @endunless
@empty

No notifications

@endforelse