reorder the cluser
This commit is contained in:
1 parent
7ad439258c
commit
79839c04a4
53 files changed
+755
-705
No files matched your search
@@ -22,11 +22,11 @@ class EventResource extends Resource
|
||||
|
||||
protected static string|\BackedEnum|null $navigationIcon = 'phosphor-monitor';
|
||||
|
||||
protected static ?string $navigationLabel = 'NUH Monitor';
|
||||
protected static ?string $navigationLabel = 'Monitor';
|
||||
|
||||
protected static ?string $modelLabel = '';
|
||||
protected static ?string $modelLabel = 'Monitor';
|
||||
|
||||
protected static ?string $title = 'NUH Monitor';
|
||||
protected static ?string $title = 'Monitor';
|
||||
|
||||
protected static ?string $pluralModelLabel = '';
|
||||
|
||||
@@ -47,14 +47,14 @@ class EventResource extends Resource
|
||||
];
|
||||
}
|
||||
|
||||
public static function getNavigationBadge(): ?string
|
||||
{
|
||||
return parent::getEloquentQuery()
|
||||
->where('has_markets', 1)
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->where('starttime', '>=', Carbon::now())
|
||||
->count();
|
||||
}
|
||||
// public static function getNavigationBadge(): ?string
|
||||
// {
|
||||
// return parent::getEloquentQuery()
|
||||
// ->where('has_markets', 1)
|
||||
// ->where('sport_id', auth()->user()->sport_id)
|
||||
// ->where('starttime', '>=', Carbon::now())
|
||||
// ->count();
|
||||
// }
|
||||
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user