reorder the cluser
This commit is contained in:
1 parent
7ad439258c
commit
79839c04a4
53 files changed
+755
-705
No files matched your search
@@ -30,6 +30,7 @@ class ListUbPlayers extends ListRecords
|
||||
->icon('phosphor-plus'),
|
||||
ImportAction::make('importPlayer')
|
||||
->maxRows(200000)
|
||||
->color('success')
|
||||
->chunkSize(250)
|
||||
->icon('phosphor-upload')
|
||||
->label('Import')
|
||||
|
||||
@@ -14,6 +14,7 @@ class UbPlayersTable
|
||||
{
|
||||
return $table
|
||||
->poll('10sec')
|
||||
->striped()
|
||||
->defaultPaginationPageOption(8)
|
||||
->paginationPageOptions([8, 16, 24, 36])
|
||||
->columns([
|
||||
|
||||
@@ -11,6 +11,7 @@ use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
use UnitEnum;
|
||||
|
||||
class UbPlayerResource extends Resource
|
||||
{
|
||||
@@ -20,8 +21,14 @@ class UbPlayerResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Player';
|
||||
|
||||
protected static ?string $modelLabel = 'Players';
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Statistiko';
|
||||
|
||||
protected static ?string $cluster = StaticDataCluster::class;
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'giocatore';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
@@ -45,4 +52,9 @@ class UbPlayerResource extends Resource
|
||||
{
|
||||
return parent::getEloquentQuery()->count();
|
||||
}
|
||||
|
||||
public static function getNavigationBadgeColor(): ?string
|
||||
{
|
||||
return 'success';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user