reorder the cluser
This commit is contained in:
1 parent
7ad439258c
commit
79839c04a4
53 files changed
+755
-705
No files matched your search
@@ -26,13 +26,13 @@ class CountryResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Country::class;
|
||||
|
||||
protected static ?int $navigationSort = 22;
|
||||
protected static ?int $navigationSort = 13;
|
||||
|
||||
protected static string|\BackedEnum|null $navigationIcon = 'phosphor-flag';
|
||||
protected static string|\BackedEnum|null $navigationIcon = 'phosphor-folder';
|
||||
|
||||
protected static ?string $cluster = StaticDataCluster::class;
|
||||
|
||||
protected static string|\UnitEnum|null $navigationGroup = 'Static Data';
|
||||
protected static string|\UnitEnum|null $navigationGroup = 'TxOdds';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -87,6 +87,7 @@ class CountryResource extends Resource
|
||||
ExportAction::make()
|
||||
->modalHeading('Download Countries')
|
||||
->label('Export')
|
||||
->color('warning')
|
||||
->icon('phosphor-download')
|
||||
->modalDescription('This will download the Countries (id, name) from TxOdds.')
|
||||
->modalIcon('phosphor-microsoft-excel-logo')
|
||||
@@ -108,6 +109,11 @@ class CountryResource extends Resource
|
||||
return parent::getEloquentQuery()->where('disabled', false)->count();
|
||||
}
|
||||
|
||||
public static function getNavigationBadgeColor(): ?string
|
||||
{
|
||||
return 'warning';
|
||||
}
|
||||
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
return parent::getEloquentQuery()->where('disabled', false);
|
||||
|
||||
Reference in new issue
Block a user