public function toArray($request): array 	{ 		$lang = $request->lang;  		// @var Category $this 		return [ 			'id' => $this->id, 			'name' => $this->getTranslationIfExistsOrGiveNull($lang, 'name'), 			'slug' => $this->determineTranslation($lang, 'slug'), 			'description' => $this->getTranslationIfExistsOrGiveNull($lang, 'description'), 			'seo' => [ 				'name' => $this->determineTranslation($lang, 'seo_name'), 				'description' => $this->determineTranslation($lang, 'seo_description'), 			], 			'categories_count' => $this->children_count ?? $this->children()->available()->count(), 			'use_parent_filters' => $this->use_parent_filters, 			'filters' => FilterCategoryResource::collection($this->getFilters($lang)), 			'children' => CategoryResource::collection($this->children), 			'adult_only' => $this->adult_only, 			'extra_cost' => $this->extra_costs_on_shipping, 			'media' => $this->storage()->getFirstThumb('image'), 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}