public function rules(): array 	{ 		$default_language = new Language;  		$current_market = auth()->user()->user->getActiveMarket();  		$validation_rule_builder = [];  		foreach (Language::all() as $language) { 			$lang = $language->code;  			$required = ($lang === $current_market->main_language) || ($lang === $default_language->getDefaultLanguage());  			$validation_rule_builder['title.' . $lang] = [$required ? 'required' : 'nullable', 'string', 'max:150']; 			$validation_rule_builder['body.' . $lang] = [$required ? 'required' : 'nullable', 'string']; 			$validation_rule_builder['short_description.' . $lang] = [$required ? 'required' : 'nullable', 'string']; 		}  		return MediaStorage::mergeValidationRules(array_merge($validation_rule_builder, [ 			'blog_category_id' => ['required', 'exists:blog_categories,id'], 			'author' => ['required', 'string', 'max:50'], 			'external_url' => ['required', 'string', 'max:100'], 			'published_at' => ['nullable', 'date'], 			'tags' => ['nullable', 'string'], 			'image' => ['image', 'max:' . setting('max_upload_size') / 1024, new SafeWebp], 			'files' => ['max:' . setting('max_upload_size') / 1024, new SafeWebp], 		])); 	}