wip
This commit is contained in:
1 parent
c036814366
commit
fb1de890cb
4 files changed
+6
-7
No files matched your search
@@ -25,8 +25,8 @@ class UbEventsTable
|
||||
TextColumn::make('league.name')->searchable(),
|
||||
TextColumn::make('home.name')->searchable(),
|
||||
TextColumn::make('away.name')->searchable(),
|
||||
TextColumn::make('player_id')->searchable(),
|
||||
TextColumn::make('player.name')->searchable(),
|
||||
// TextColumn::make('player_id')->searchable(),
|
||||
TextColumn::make('player.name')->searchable()->copyable(),
|
||||
TextColumn::make('rating'),
|
||||
])
|
||||
->filters([
|
||||
|
||||
@@ -19,7 +19,7 @@ class UbEventResource extends Resource
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = 'icon-soccerball';
|
||||
|
||||
protected static ?string $navigationLabel = 'Events & Player';
|
||||
protected static ?string $navigationLabel = 'Event & Player';
|
||||
|
||||
protected static ?string $cluster = StaticDataCluster::class;
|
||||
|
||||
|
||||
@@ -70,9 +70,8 @@ class UbEventImporter extends Importer
|
||||
return (string) trim($state);
|
||||
}),
|
||||
ImportColumn::make('rating')
|
||||
->numeric(10)
|
||||
->castStateUsing(function (string $state): ?float {
|
||||
return (float) str_replace(',', '.', $state) * 1.0;
|
||||
->castStateUsing(function (string $state): ?string {
|
||||
return (string) trim($state);
|
||||
}),
|
||||
ImportColumn::make('bcm')->numeric(),
|
||||
ImportColumn::make('hw')->numeric(),
|
||||
|
||||
@@ -63,7 +63,7 @@ class UbEvent extends Model
|
||||
'player_id' => 'integer',
|
||||
'starttime' => 'date',
|
||||
'date_acquisition' => 'date',
|
||||
'rating' => 'decimal:10',
|
||||
'rating' => 'string',
|
||||
'home_away' => 'string',
|
||||
'home_ft' => 'integer',
|
||||
'away_ft' => 'integer',
|
||||
|
||||
Reference in new issue
Block a user