public function index(SearchTerm $request): JsonResource 	{ 		return CategoryResource::collection(Category::where('type', $request->enum('type', CategoryType::class))->includes() 			->available() 			->search($request->search) 			->orderBy('ordering') 			->simplePaginate() 			->withQueryString()); 	}