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