/** * Display a listing of the resource. * * @return Response */ public function index() { $tu = $this->userRepository->getTotal(); $tp = $this->productRepository->getTotal(); $tc = $this->categoryRepository->getTotal(); $tt = $this->tagRepository->getTotal(); $op = Option::count(); $pm = $this->paymentRepository->getTotal(); return View('admin.dashboard.index')->with(compact('tu', 'tp', 'tc', 'tt', 'op', 'pm')); }