reorder the cluser
This commit is contained in:
1 parent
7ad439258c
commit
79839c04a4
53 files changed
+755
-705
No files matched your search
@@ -18,6 +18,7 @@ class ListUbEvents extends ListRecords
|
||||
return [
|
||||
ImportAction::make('importPlayer')
|
||||
->icon('phosphor-upload')
|
||||
->color('success')
|
||||
->label('Import')
|
||||
->modalIcon('phosphor-file-csv')
|
||||
->modalDescription('Separator ";"')
|
||||
|
||||
@@ -21,6 +21,7 @@ class UbEventsTable
|
||||
{
|
||||
return $table
|
||||
->poll('10sec')
|
||||
->striped()
|
||||
->columns([
|
||||
TextColumn::make('starttime')->dateTime('d. M. Y')->label('Date'),
|
||||
TextColumn::make('league.name')->searchable(),
|
||||
|
||||
@@ -12,6 +12,7 @@ use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Contracts\Support\Htmlable;
|
||||
use UnitEnum;
|
||||
|
||||
class UbEventResource extends Resource
|
||||
{
|
||||
@@ -21,8 +22,14 @@ class UbEventResource extends Resource
|
||||
|
||||
protected static ?string $navigationLabel = 'Event & Player';
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Statistiko';
|
||||
|
||||
protected static ?string $cluster = StaticDataCluster::class;
|
||||
|
||||
protected static ?string $modelLabel = 'Events & Players';
|
||||
|
||||
// protected static ?string $recordTitleAttribute = 'league_id';
|
||||
|
||||
public static function getRecordTitle($record): string|null|Htmlable
|
||||
@@ -51,4 +58,9 @@ class UbEventResource extends Resource
|
||||
{
|
||||
return parent::getEloquentQuery()->count();
|
||||
}
|
||||
|
||||
public static function getNavigationBadgeColor(): ?string
|
||||
{
|
||||
return 'success';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user