dispositionRepository->getNew(); $newContracts = $this->uploadRepository->getNewByType(Upload::TYPE_CONTRACT); $newContractsCount = $this ->uploadRepository ->getCountByStatusAndType(Upload::STATUS_NEW, Upload::TYPE_CONTRACT); $pendingContractsCount = $this ->uploadRepository ->getCountByStatusAndType(Upload::STATUS_PENDING, Upload::TYPE_CONTRACT); $newInvoices = $this->uploadRepository->getNewByType(Upload::TYPE_INVOICE); $newInvoicesCount = $this ->uploadRepository ->getCountByStatusAndType(Upload::STATUS_NEW, Upload::TYPE_INVOICE); $pendingInvoicesCount = $this ->uploadRepository ->getCountByStatusAndType(Upload::STATUS_PENDING, Upload::TYPE_INVOICE); $overdueFeedbacks = $this->dispositionRepository->findDispositionsWithOverdueFeedback(7); return $this->render('manager/index.html.twig', [ 'dispositions' => $dispositions, 'newContracts' => $newContracts, 'newContractsCount' => $newContractsCount, 'pendingContractsCount' => $pendingContractsCount, 'newInvoices' => $newInvoices, 'newInvoicesCount' => $newInvoicesCount, 'pendingInvoicesCount' => $pendingInvoicesCount, 'overdueFeedbacks' => $overdueFeedbacks, ]); } }