public function rules(): array 	{ 		$validation_rule_builder = [];  		foreach (getCurrentLanguages() as $lang) { 			$required = ($lang === getMainActiveLanguage()) || ($lang === getDefaultLanguage());  			$validation_rule_builder['name.' . $lang] = [$required ? 'required' : 'nullable', 'string', 'max:50']; 			$validation_rule_builder['display_label.' . $lang] = ['nullable', 'string', 'max:200']; 			$validation_rule_builder['dropdown_values.' . $lang] = ['required_if:type,dropdown', 'array', 'between:1,50']; 			$validation_rule_builder['dropdown_values.*.' . $lang] = ['string', 'max:100']; 		}  		return array_merge([ 			'type' => ['required', 'string', 'max:50'], 			'min' => ['nullable', 'numeric', 'min:0'], 			'max' => ['nullable', 'numeric', 'min:0', 'gte:min'], 			'step' => ['nullable', 'numeric', 'min:0'], 			'required' => ['boolean'], 			'active' => ['boolean'], 		], $validation_rule_builder); 	}