public function accessoriesIndex(FilterProducts $request): JsonResource 	{ 		$lang = app()->getLocale();  		$products = Product::available() 			->when($request->has('featured'), function ($query) { 				$query->featured(); 			}) 			->when($request->has('popular'), function ($query) { 				$query->popular(); 			}) 			->when($request->has('stocked'), function ($query) { 				$query->inStock(); 			}) 			->search($request->search, $lang) 			->priceRange($request->price_min, $request->price_max) 			->filterCategories($request->category_slugs ?? [], $lang) 			->filterColor($request->color) 			->dynamicFilters($request->filters) 			->filterManufacturer($request->manufacturer) 			->notAccessory() 			->includes() 			->get() 			->groupBy('category.name');  		$categories = [];  		foreach ($products as $category_name => $category) { 			$categories[] = new CategoryProductsResource($category, $category_name); 		}  		return JsonResource::collection($categories); 	}