40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Clusters\StaticData\Resources\StatistikoPlayers\Tables;
|
|
|
|
use Filament\Actions\BulkActionGroup;
|
|
use Filament\Actions\DeleteBulkAction;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class StatistikoPlayersTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('match_id')->searchable(),
|
|
TextColumn::make('details.name')
|
|
->label('Player')
|
|
->searchable()
|
|
->tooltip(fn ($record) => $record->details->full_name),
|
|
TextColumn::make('tm_player_id')->label('TM Id')->searchable(),
|
|
TextColumn::make('ss_player_id')->label('SS Id')->searchable(),
|
|
TextColumn::make('event.home.name')->searchable(),
|
|
TextColumn::make('event.away.name')->searchable(),
|
|
])
|
|
->filters([
|
|
//
|
|
])
|
|
->recordActions([
|
|
EditAction::make(),
|
|
])
|
|
->toolbarActions([
|
|
BulkActionGroup::make([
|
|
DeleteBulkAction::make(),
|
|
]),
|
|
]);
|
|
}
|
|
}
|