public function toArray($request): array 	{ 		return [ 			'id' => $this->id, 			'name' => $this->name, 			'slug' => $this->slug, 			'description' => $this->description, 			'short_description' => $this->short_description, 			'featured' => $this->featured, 			'parent' => $this->parent ? new SubCategoryResource($this->parent) : collect(), 			'faq' => CategoryFAQResource::collection($this->faqs ?? []), 			'use_parent_filters' => $this->use_parent_filters, 			'features' => FeaturePointResource::collection($this->features), 			'sub_categories' => SubCategoryResource::collection($this->children), 			'filters' => FilterResource::collection($this->filters), 			'products' => new GroupedProductResource($this->products->where('discontinued', false)), 			'media' => MediaResource::collection($this->getMedia('images')), 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}