@php use App\Enums\NotificationActionType; $notificationCount = $notifications->count(); $hasNotifications = $notificationCount > 0; $countDisplay = $notificationCount > 99 ? '99+' : (string) $notificationCount; @endphp @if($hasNotifications) {{ $countDisplay }} {{ trans_choice(':count new notification|:count new notifications', $notificationCount, ['count' => $notificationCount]) }} @endif