public function store(StoreCategory $request, Language $default_language): RedirectResponse 	{ 		$slug_field_name = Category::getSlugFieldName(); 		$langs = getCurrentLanguages();  		foreach ($langs as $lang) { 			$required = ($lang === getMainActiveLanguage()) || ($lang === $default_language->getDefaultLanguage());  			$this->validate($request, [ 				'slug.' . $lang => [$required ? 'required' : 'nullable', 'string', 'max:150', new UniqueTranslatableField(Category::class, $slug_field_name)], 			]); 		}  		$parentFilters = Category::available()->find($request->category_id)?->filters()->pluck('id')->toArray() ?? []; 		$allFilters = $request->use_parent_filters 		? array_unique(array_merge($parentFilters, $request->filters ?? [])) 		: $request->filters;  		$category = Category::create([ 			'name' => $request->name, 			'slug' => $request->slug, 			'market_id' => getCurrentMarket()->id, 			'description' => $request->description, 			'short_description' => $request->short_description, 			'featured' => $request->boolean('featured'), 			'discontinued' => $request->boolean('discontinued'), 			'use_parent_filters' => $request->boolean('use_parent_filters'), 			'active' => $request->boolean('active'), 			'category_id' => $request->category_id, 		]);  		$category->filters()->sync($allFilters);  		$category->storage()->handle();  		// FAQS 		$data = [];  		for ($i = 0; $i < count($request->order_number ?? []); $i++) { 			$questions_row = []; 			$answers_row = [];  			foreach ($langs as $lang) { 				$questions_row[$lang] = $request->question[$lang][$i]; 				$answers_row[$lang] = $request->answer[$lang][$i]; 			} 			$data[] = new CategoryFAQ([ 				'question' => $questions_row, 				'answer' => $answers_row, 				'order_number' => $request->order_number[$i], 			]); 		}  		$category->FAQs()->saveMany($data);  		foreach ($request->features ?? [] as $key => $feature) { 			$category->features()->create([ 				'name' => $feature, 				'points' => $request->bullet_points[$key] ?? [], 			]); 		}  		return $this->redirectFromSave('categories.list'); 	}