public function index(SearchCategory $request): JsonResource 	{ 		return CategoryResource::collection(Category::includes($request->lang) 			->available() 			->parent($request->has('parent'), $request->parent) 			->search($request->search, $request->lang) 			->orderBy('name') 			->paginate() 			->appends($request->query())); 	}