78 lines
2.4 KiB
PHP
78 lines
2.4 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Clusters\Maintenance\Resources\Events\Tables;
|
|
|
|
use Filament\Actions\BulkActionGroup;
|
|
use Filament\Actions\DeleteBulkAction;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class EventsTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('time')
|
|
->dateTime()
|
|
->sortable(),
|
|
TextColumn::make('spid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('prid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('txid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('brid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('baid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('cnid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('grid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('cgid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('hoid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('awid')
|
|
->numeric()
|
|
->sortable(),
|
|
TextColumn::make('liga')
|
|
->searchable(),
|
|
TextColumn::make('home')
|
|
->searchable(),
|
|
TextColumn::make('away')
|
|
->searchable(),
|
|
TextColumn::make('created_at')
|
|
->dateTime()
|
|
->sortable()
|
|
->toggleable(isToggledHiddenByDefault: true),
|
|
TextColumn::make('updated_at')
|
|
->dateTime()
|
|
->sortable()
|
|
->toggleable(isToggledHiddenByDefault: true),
|
|
])
|
|
->filters([
|
|
//
|
|
])
|
|
->recordActions([
|
|
EditAction::make(),
|
|
])
|
|
->toolbarActions([
|
|
BulkActionGroup::make([
|
|
DeleteBulkAction::make(),
|
|
]),
|
|
]);
|
|
}
|
|
}
|