From db051d6e32c157c10d68f9d1f0ee4aaf0abe7981 Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 6 Aug 2026 12:38:12 +0200 Subject: [PATCH] wip starttime --- .../StatistikoEvents/Pages/ListStatistikoEvents.php | 6 ------ .../StatistikoEvents/Tables/StatistikoEventsTable.php | 6 ++++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Pages/ListStatistikoEvents.php b/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Pages/ListStatistikoEvents.php index a5d16204..cd4fe707 100644 --- a/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Pages/ListStatistikoEvents.php +++ b/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Pages/ListStatistikoEvents.php @@ -23,12 +23,6 @@ class ListStatistikoEvents extends ListRecords ->modalSubmitAction(fn(Action $action) => $action->label('Delete all') ->color('danger') ->icon('heroicon-o-trash')) - // ->modalSubmitAction( - // fn(\Filament\Actions\StaticAction $action) => - // $action->color('danger') - // ->icon('heroicon-o-trash') - // ) - // ->modalSubmitActionLabel('Delete') ->modalContent(function () { $events = StatistikoEvent::with('league')->with('home')->with('away')->where('starttime', '<', new DateTime('-10 years'))->get(); return view('filament.pages.list-fixtures-starttime', ['events' => $events]); diff --git a/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Tables/StatistikoEventsTable.php b/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Tables/StatistikoEventsTable.php index 7b3e6525..4127ad2b 100644 --- a/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Tables/StatistikoEventsTable.php +++ b/app/Filament/Clusters/StaticData/Resources/StatistikoEvents/Tables/StatistikoEventsTable.php @@ -32,8 +32,10 @@ class StatistikoEventsTable ->icon(fn(string $state): string => match ($state) { '1' => 'icon-soccerball', }), - TextColumn::make('match_id') - ->sortable(), + TextColumn::make('match_id')->color('info')->icon('phosphor-copy')->copyable() + ->searchable( + query: fn($query, $search) => $query->orWhere('match_id', (int) $search) + ), TextColumn::make('league.name') ->searchable(), TextColumn::make('home.ss_team_name')->color('info')