public function scopeFilter(Builder $query, ?string $category_id = null, ?string $client_survey_id = null, ?string $class = null, ?string $survey_id = null): Builder 	{ 		if ($category_id) { 			$query->where('category_id', $category_id); 		}  		if ($client_survey_id) { 			$query->where('client_survey_id', $client_survey_id); 		}  		if ($survey_id) { 			$query->whereHas('category', function ($query) use ($survey_id) { 				$query->where('survey_id', $survey_id); 			}); 		}  		if ($class) { 			return $query->where('class', $class); 		}  		return $query; 	}