public function scopeFilterColor(Builder $query, ?string $color): Builder 	{ 		$query = !$color ? $query : $query->where('color', $color);  		// kada filtera po boji, treba vratiti i njegove varijante 		return $this->whereIn('id', function ($subQuery) use ($query) { 			$subQuery->select('id') 				->from('products') 				->where(function ($subQuery) use ($query) { 					$subQuery->orWhereIn('matching_name', $query->pluck('matching_name')); 				}); 		}); 	}