We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f58a9d commit c60386eCopy full SHA for c60386e
src/Filament/Resources/IncidentResource.php
@@ -227,7 +227,9 @@ public static function getPluralLabel(): ?string
227
228
public static function getNavigationBadge(): ?string
229
{
230
- return static::getModel()::unresolved()->count();
+ return static::getModel()::unresolved()
231
+ ->get()
232
+ ->filter(fn (Incident $incident) => in_array($incident->latest_status, IncidentStatusEnum::unresolved()))->count();
233
}
234
235
public static function getNavigationBadgeColor(): string
0 commit comments