public function toArray($request): array 	{ 		$lang = $request->lang;  		return [ 			'id' => $this->id, 			'name' => $this->getTranslation('name', $lang, $this->name), 			'slug' => $this->getTranslation('slug', $lang, $this->slug), 			'slugs' => [ 				'hr' => $this->slug, 				'en' => $this->getTranslation('slug', 'en', $this->slug), 				'de' => $this->getTranslation('slug', 'de', $this->slug), 				'it' => $this->getTranslation('slug', 'it', $this->slug), 			], 			'categories_count' => $this->children_count ?? $this->children()->available()->count(), 			'description' => $this->getTranslation('description', $lang, $this->description), 			'parent' => new CategoryParentResource($this->parent), 			'children' => CategoryChildrenResource::collection($this->children), 			'media' => new MediaResource($this->storage()->getFirstFile('image')), 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}