public function rules(): array 	{ 		$user = $this->user();  		return array_replace([ 			'name' => ['required', 'string', 'max:50'], 			'email' => ['required', 'max:50', 'email', 'unique:' . ($user ? $user::class : User::class) . ',email,' . ($user->id ?? '')], 			'allow_push_notifications' => ['boolean'], 			'surname' => ['required', 'string', 'max:80'], 			'company_oib' => ['nullable', 'digits_between:1, 30'], 			'date_of_birth' => ['nullable', 'date'], 			'company_name' => ['nullable', 'string', 'max:100'], 			'newsletter' => ['boolean'], 			'gender' => ['nullable', 'integer', Rule::in(Customer::availableGenderTypes())], 			'company_location' => ['nullable', 'string', 'max:350'], 		], $user?->user->updateProfileValidationRules($this) ?? []); 	}