diff --git a/app/Filament/Resources/Events/EventResource.php b/app/Filament/Resources/Events/EventResource.php index 6f6ec9ef..3bb93b61 100644 --- a/app/Filament/Resources/Events/EventResource.php +++ b/app/Filament/Resources/Events/EventResource.php @@ -98,16 +98,16 @@ class EventResource extends Resource } if (auth()->user()->bookmaker_partner_differences == 1) { - $e = DB::table('event_bookmakers') - ->selectRaw('count(id) as c, event_id') - ->whereIn('bookmaker_id', [auth()->user()->bookmaker_id, auth()->user()->partner_bookmaker_id]) - ->where('sport_id', auth()->user()->sport_id) - ->where('starttime', '>', Carbon::now()->timezone('CET')) - ->groupBy('event_id') - ->havingRaw('c = 1') - ->pluck('event_id')->toArray(); + // $e = DB::table('event_bookmakers') + // ->selectRaw('count(id) as c, event_id') + // ->whereIn('bookmaker_id', [auth()->user()->bookmaker_id, auth()->user()->partner_bookmaker_id]) + // ->where('sport_id', auth()->user()->sport_id) + // ->where('starttime', '>', Carbon::now()->timezone('CET')) + // ->groupBy('event_id') + // ->havingRaw('c = 1') + // ->pluck('event_id')->toArray(); - $query->whereIn('id', $e); + // $query->whereIn('id', $e); } if (isset((EventsTable::$bettype_settings))) {