From 1be75dfc80c9108b72ec22ee40b1d4e99376d834 Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 21 May 2026 18:36:51 +0200 Subject: [PATCH] wip --- app/Actions/Statistics/LoadEventsAspGoal.php | 8 +++----- app/Filament/Pages/Statistic.php | 8 -------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/app/Actions/Statistics/LoadEventsAspGoal.php b/app/Actions/Statistics/LoadEventsAspGoal.php index 43451532..d0b581be 100644 --- a/app/Actions/Statistics/LoadEventsAspGoal.php +++ b/app/Actions/Statistics/LoadEventsAspGoal.php @@ -74,6 +74,7 @@ class LoadEventsAspGoal return $query->where('starttime', '<=', $end); }) ->get(); + break; case 'all': $res = StatistikoEvent::when($handicap_range, function ($query) use ($handicap_range) { @@ -88,10 +89,7 @@ class LoadEventsAspGoal ->get(); break; - default: - /** - * STATISTIC DATA - */ + case 'none': $res = StatistikoEvent::when($league_id, function ($query) use ($league_id) { return $query->where('league_id', $league_id); })->when($team_id, function ($query) use ($team_id, $team_position) { @@ -109,8 +107,8 @@ class LoadEventsAspGoal return $query->where('starttime', '<=', $end); }) ->get(); - break; + break; } /** diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index 72ff64ee..a6b9ce84 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -96,9 +96,6 @@ class Statistic extends BaseDashboard Select::make('tm_player_id') ->label('Player') ->prefixIcon('icon-player') - ->options([ - 'draft' => 'Sep Maier', - ]) ->preload() ->searchable() ->live(), @@ -166,11 +163,6 @@ class Statistic extends BaseDashboard ]); } - public function update() - { - dd($this->filter); - } - protected function getFooterWidgets(): array { return [