/**
  * Display a listing of the resource.
  *
  * @throws \InvalidArgumentException
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return $this->webUi->view('catalogue::staff.categories.index', ['categories' => $this->category->roots()->with(['products', 'children'])->orderBy('depth', 'asc')->orderBy('created_at', 'desc')->paginate()]);
 }