ListEvents::route('/'), ]; } public static function getNavigationBadge(): ?string { return parent::getEloquentQuery() ->where('sport_id', auth()->user()->sport_id) ->where('starttime', '>', Carbon::now()) ->count(); } public static function getEloquentQuery(): Builder { // $_bookmaker = Multiline::where('sport_id', auth()->user()->sport_id) // ->where('client_id', auth()->user()->client_id) // ->where('bettype_id', 1) // ->where('matchpart_id', 1) // ->pluck('bookmaker_id') // ->toArray(); return parent::getEloquentQuery() // ->join('odds_3ways', 'odds_3ways.event_id', '=', 'events.id') ->where('starttime', '>', Carbon::now()) ->where('sport_id', auth()->user()->sport_id); } }