示例#1
0
 /**
  * Displays the investors dashboard
  * @return \Illuminate\View\View
  */
 public function investor()
 {
     if (\Auth::user()->isInvestor() && \Auth::user()->investor_finance == 0) {
         return view('account.investor_finance');
     }
     $innovations_open = $this->innovationRepository->getAllOPen();
     $innovations_fully = $this->innovationRepository->getAllFullyFunded();
     $innovations_partial = $this->innovationRepository->getAllPartials();
     $innovations = $this->innovationRepository->getAll();
     $categories = $this->categoryRepository->getAllCategories();
     $fundedProjects = $this->innovationRepository->getInvestorFunded();
     $fundedProjectsCount = $this->innovationRepository->countInvestorFunded();
     $onProgress = $this->innovationRepository->onProgress();
     $totalFundsInjected = $this->innovationRepository->getTotalInjected();
     return view('home.investor', compact('innovations_fully', 'innovations_partial', 'innovations_open', 'onProgress', 'innovations', 'categories', 'fundedProjects', 'fundedProjectsCount', 'totalFundsInjected'));
 }