public function popular(): JsonResource 	{ 		$products = Product::includes() 			->available() 			->notDiscontinued() 			->popular() 			->latest() 			->get() 			->groupBy('category.name');  		$categories = [];  		foreach ($products as $category_name => $category) { 			$categories[] = new CategoryProductsResource($category, $category_name); 		}  		return JsonResource::collection($categories); 	}