ss ->sortable
This commit is contained in:
1 parent
c8cf1edaf4
commit
000f6fa046
18 files changed
+157
-106
No files matched your search
+7
-2
@@ -16,21 +16,26 @@ class StatistikoPlayersTable
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('match_id')->color('info')->icon('phosphor-copy')->copyable()
|
||||
->sortable()
|
||||
->searchable(
|
||||
query: fn($query, $search) => $query->orWhere('match_id', (int) $search)
|
||||
),
|
||||
TextColumn::make('ss_player_id')
|
||||
->sortable()
|
||||
->label('Player Id')
|
||||
->color('success')->icon('phosphor-copy')->copyable()
|
||||
->searchable(
|
||||
query: fn($query, $search) => $query->orWhere('ss_player_id', (int) $search)
|
||||
),
|
||||
TextColumn::make('details.player_name')
|
||||
->sortable()
|
||||
->label('Player')
|
||||
->searchable()
|
||||
->tooltip(fn($record) => $record->details->full_name),
|
||||
TextColumn::make('event.home.ss_team_name')->searchable()->color('primary'),
|
||||
TextColumn::make('event.away.ss_team_name')->searchable()->color('success'),
|
||||
TextColumn::make('event.home.ss_team_name')->searchable()->color('primary')
|
||||
->sortable(),
|
||||
TextColumn::make('event.away.ss_team_name')->searchable()->color('success')
|
||||
->sortable(),
|
||||
])
|
||||
// ->filters([
|
||||
// Filter::make('player_filters')
|
||||
|
||||
Reference in new issue
Block a user