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 { return parent::getEloquentQuery() ->where('starttime', '>', Carbon::now()) ->where('sport_id', auth()->user()->sport_id); } }