wip starttime
This commit is contained in:
1 parent
b72b14811a
commit
db051d6e32
2 files changed
+4
-8
No files matched your search
-6
@@ -23,12 +23,6 @@ class ListStatistikoEvents extends ListRecords
|
|||||||
->modalSubmitAction(fn(Action $action) => $action->label('Delete all')
|
->modalSubmitAction(fn(Action $action) => $action->label('Delete all')
|
||||||
->color('danger')
|
->color('danger')
|
||||||
->icon('heroicon-o-trash'))
|
->icon('heroicon-o-trash'))
|
||||||
// ->modalSubmitAction(
|
|
||||||
// fn(\Filament\Actions\StaticAction $action) =>
|
|
||||||
// $action->color('danger')
|
|
||||||
// ->icon('heroicon-o-trash')
|
|
||||||
// )
|
|
||||||
// ->modalSubmitActionLabel('Delete')
|
|
||||||
->modalContent(function () {
|
->modalContent(function () {
|
||||||
$events = StatistikoEvent::with('league')->with('home')->with('away')->where('starttime', '<', new DateTime('-10 years'))->get();
|
$events = StatistikoEvent::with('league')->with('home')->with('away')->where('starttime', '<', new DateTime('-10 years'))->get();
|
||||||
return view('filament.pages.list-fixtures-starttime', ['events' => $events]);
|
return view('filament.pages.list-fixtures-starttime', ['events' => $events]);
|
||||||
|
|||||||
+4
-2
@@ -32,8 +32,10 @@ class StatistikoEventsTable
|
|||||||
->icon(fn(string $state): string => match ($state) {
|
->icon(fn(string $state): string => match ($state) {
|
||||||
'1' => 'icon-soccerball',
|
'1' => 'icon-soccerball',
|
||||||
}),
|
}),
|
||||||
TextColumn::make('match_id')
|
TextColumn::make('match_id')->color('info')->icon('phosphor-copy')->copyable()
|
||||||
->sortable(),
|
->searchable(
|
||||||
|
query: fn($query, $search) => $query->orWhere('match_id', (int) $search)
|
||||||
|
),
|
||||||
TextColumn::make('league.name')
|
TextColumn::make('league.name')
|
||||||
->searchable(),
|
->searchable(),
|
||||||
TextColumn::make('home.ss_team_name')->color('info')
|
TextColumn::make('home.ss_team_name')->color('info')
|
||||||
|
|||||||
Reference in new issue
Block a user