From ce4802f889f59e40fb06ff6dc10298fdcd087943 Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 30 Aug 2026 22:29:01 +0200 Subject: [PATCH] wip --- .../Widgets/Data/LoadEvents/LoadEventsQuery.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Filament/Widgets/Data/LoadEvents/LoadEventsQuery.php b/app/Filament/Widgets/Data/LoadEvents/LoadEventsQuery.php index fe73067b..93449142 100644 --- a/app/Filament/Widgets/Data/LoadEvents/LoadEventsQuery.php +++ b/app/Filament/Widgets/Data/LoadEvents/LoadEventsQuery.php @@ -125,11 +125,11 @@ class LoadEventsQuery })->when($end, function ($query) use ($end) { return $query->whereDate('starttime', '<=', $end); }) - // ->when($season, function ($query) use ($season, $season_or_date) { - // if ($season_or_date == 'season') { - // return $query->whereIn('season', $season); - // } - // }) + ->when($season, function ($query) use ($season, $season_or_date) { + if ($season_or_date == 'season') { + return $query->whereIn('season', $season); + } + }) ->orderBy('starttime', 'ASC') ->get();