public function scopeCanViewRouteQuery(Builder $query, string $route): Builder 	{ 		return $query->where(static function (Builder $query) use ($route): void { 			$query->where('mode', RoleMode::White)->whereHas('routes', static function (object $query) use ($route): void { 				$query->where('route', $route); 			}); 		}) 		->orWhere(static function (Builder $query) use ($route): void { 			$query->where('mode', RoleMode::Black)->whereDoesntHave('routes', static function (object $query) use ($route): void { 				$query->where('route', $route); 			}); 		}); 	}