public function store(StorePage $request): RedirectResponse 	{ 		$page = Page::create([ 			'name' => $request->name, 			'description' => $request->description, 			'active' => $request->boolean('active'), 			'main_page' => $request->boolean('main_page'), 			'market_id' => getCurrentMarket()->id, 		]);  		$page->storage()->handle();  		foreach ($request->content ?? [] as $data) { 			$currentContent = $page->content()->create([ 				'content' => $data, 				'order_number' => $data['order_number'], 				'type' => $data['type'], 			]);  			if ($data['type'] == DynamicContent::Tabs->value) { 				$contentWithMedia = $currentContent->content['tabs'];  				foreach ($data['tabs'] as $key => $tab) { 					if (!isset($tab['media'])) { 						continue; 					} 					$customMediaConfig = $currentContent->createMediaConfigWithTabIndex($key); 					$currentContent->storage()->handleFromNestedArray($tab, [], $customMediaConfig);  					$contentWithMedia[$key]['media'] = $currentContent->media->where('custom_properties.tab_index', $key)->first()?->getKey() ?? null; 					$currentContent->update([ 						'content' => [ 							'tabs' => $contentWithMedia, 							'type' => $data['type'], 							'order_by' => $data['order_number'], 						], 					]); 				} 			} else { 				if (!isset($data['media'])) { 					continue; 				} 				$currentContent->storage()->handleFromNestedArray($data); 			} 		}  		return $this->redirectFromSave('pages.list'); 	}