From 3af30b34b58d9950a4635dccc6983e119e8bf2f4 Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 22 Feb 2026 18:37:53 +0100 Subject: [PATCH] wip --- app/Livewire/MapperLeft.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Livewire/MapperLeft.php b/app/Livewire/MapperLeft.php index 62681c09..4077423d 100644 --- a/app/Livewire/MapperLeft.php +++ b/app/Livewire/MapperLeft.php @@ -108,7 +108,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable ->searchable() ->preload() ->options(function (Get $get) { - $query = Event::query()->where('sport_id', auth()->user()->sport_id)->where('betradar_id', 0)->whereDate('starttime', '>', Carbon::now())->groupBy('country_id'); + $query = Event::query()->where('sport_id', auth()->user()->sport_id)->where('betradar_id', 0)->groupBy('country_id'); $timeframe = $get('starttime_period') ?? []; @@ -146,8 +146,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable $query = CompetitionGroup::where('sport_id', auth()->user()->sport_id) ->whereHas('event', function ($query) { - $query->whereDate('starttime', '>', now()) - ->where('betradar_id', 0); + $query->where('betradar_id', 0); }); if ($get('country_id') ?? null) {