public function toArray($request): array 	{ 		$lang = $request->lang; 		$storage = $this->storage();  		return [ 			'id' => $this->id, 			'name' => $this->getTranslation('name', $lang, $this->name), 			'slug' => $this->getTranslation('slug', $lang, $this->slug), 			'description' => $this->getTranslation('description', $lang, $this->description), 			'categories_count' => $this->children_count ?? $this->children()->available()->count(), 			'filters' => FilterCategoryResource::collection($this->getFilters($lang)), 			'media' => [ 				'images' => MediaResource::collection($storage->files('image')), 			], 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}