36 lines
942 B
PHP
36 lines
942 B
PHP
<?php
|
|
|
|
namespace App\Filament\Clusters\StaticData\Resources\Players\Tables;
|
|
|
|
use Filament\Actions\DeleteAction;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\Layout\Stack;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class PlayersTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->striped()
|
|
->columns([
|
|
Stack::make([
|
|
TextColumn::make('name')
|
|
->searchable(),
|
|
TextColumn::make('tm_player_id')
|
|
->badge()
|
|
->searchable(),
|
|
]),
|
|
])
|
|
->contentGrid([
|
|
'md' => 3,
|
|
'xl' => 5,
|
|
])
|
|
->recordActions([
|
|
EditAction::make()->hiddenLabel(),
|
|
DeleteAction::make()->hiddenLabel(),
|
|
]);
|
|
}
|
|
}
|