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