wip sport icons mongodb

This commit is contained in:
salam committed 2026-03-20 11:28:18 +01:00
1 parent cf4314e55e
commit acf9cb6220
15 files changed
+541 -188

No files matched your search

@@ -16,7 +16,7 @@ class PlayerResource extends Resource
{
protected static ?string $model = Player::class;
protected static string|BackedEnum|null $navigationIcon = 'phosphor-person-simple-run';
protected static string|BackedEnum|null $navigationIcon = 'icon-soccerplayer';
protected static ?string $cluster = StaticDataCluster::class;
@@ -38,4 +38,9 @@ class PlayerResource extends Resource
'index' => ListPlayers::route('/'),
];
}
public static function getNavigationBadge(): ?string
{
return parent::getEloquentQuery()->count();
}
}