public function rules(): array 	{ 		$validation_rule_builder = [];  		foreach ($this['content'] ?? [] as $key => $content) { 			$type = DynamicContent::findByValue($content['type']); 			$intermediate_rule_builder = $this->{'getValidationRules' . ucfirst($type)}();  			if ($content['type'] == DynamicContent::Tabs->value) { 				foreach ($content['tabs'] as $index => $tab) { 					foreach ($intermediate_rule_builder as $rule_name => $rule_value) { 						foreach ($rule_value as &$rule) { 							if ($rule === 'required' && $rule_name == 'media') { 								$rule = 'required_without:content.' . $key . '.id'; 							} 						} 						$validation_rule_builder['content.' . $key . '.tabs.' . $index . '.' . $rule_name] = $rule_value; 					} 				} 			} else { 				foreach ($intermediate_rule_builder as $rule_name => $rule_value) { 					foreach ($rule_value as &$rule) { 						if ($rule === 'required' && $rule_name == 'media') { 							$rule = 'required_without:content.' . $key . '.id'; 						} 					}  					$validation_rule_builder['content.' . $key . '.' . $rule_name] = $rule_value; 				} 			} 		}  		return array_merge($validation_rule_builder, [ 			'name' => ['required', 'string', 'max:50'], 			'active' => ['boolean'], 			'main_page' => ['boolean', new MainPage($this->id)], 			'content.*.order_number' => ['required', 'integer', 'min:0', 'max:255'], 			'content.*.type' => ['required', 'integer', new Enum(DynamicContent::class)], 		]); 	}