public function store(StoreSpecsCategory $request): RedirectResponse 	{ 		$langs = getCurrentLanguages(); 		$mainLang = getMainActiveLanguage();  		$specsCategory = SpecsCategory::create([ 			'name' => $request->name, 			'market_id' => getCurrentMarket()->id, 		]);  		$numberOfElements = count($request?->new_specs[$mainLang] ?? []);  		for ($i = 0; $i < $numberOfElements; $i++) { 			$specsRow = [];  			foreach ($langs as $lang) { 				$specsRow[$lang] = $request->new_specs[$lang][$i]; 			} 			$specsCategory->specs()->create([ 				'name' => $specsRow, 			]); 		}  		return $this->redirectFromSave('specs-categories.list'); 	}