public function store(StoreCategory $request): RedirectResponse 	{ 		$request->validate([ 			'slug' => ['required', 'string', 'max:50', 'unique:' . Category::class], 			'slug_en' => [ 				'nullable', 'string', 'max:50', Rule::unique(Translation::class, 'value') 					->where(function ($query) { 						return $query->where('item_type', Category::class); 					}), 			], 		]);  		$category = Category::create([ 			'category_id' => $request->category_id, 			'name' => $request->name, 			'slug' => $request->slug, 			'active' => $request->boolean('active'), 			'use_parent_filters' => $request->boolean('use_parent_filters'), 			'description' => $request->description, 			'adult_only' => $request->boolean('adult_only'), 			'extra_costs_on_shipping' => $request->boolean('extra_costs_on_shipping'), 			'extra_costs' => $request->extra_costs ?? 0, 			'group_code' => (string) Category::createGroupCode(), 			'seo_name' => $request->seo_name, 			'seo_description' => $request->seo_description, 		]);  		$category->updateTranslations([ 			'name' => [ 				'en' => $request->name_en, 			], 			'slug' => [ 				'en' => $request->slug_en, 			], 			'description' => [ 				'en' => $request->description_en, 			], 			'seo_name' => [ 				'en' => $request->seo_name_en, 			], 			'seo_description' => [ 				'en' => $request->seo_description_en, 			], 		]);  		$filters = $request->selected_filters ?? [];  		foreach ($filters as $filter_id) { 			$category->categoryFilters()->create([ 				'filter_id' => $filter_id, 			]); 		}  		foreach ($request->countries as $index => $value) { 			$category->vatRates()->create([ 				'country_code' => $index, 				'amount' => $value ?: 0, 			]); 		}  		Cache::forget('menu-en'); 		Cache::forget('menu-hr');  		return $this->redirectFromSave('categories.list'); 	}