예제 #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'));
 }
예제 #2
0
 /**
  * Gets all innovations funded by a specific investor
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function investorFunded()
 {
     $fundedProjects = $this->repo->getInvestorFunded();
     $categories = $this->categoryRepository->getAllCategories();
     return view('innovation.funded_investor', compact('fundedProjects', 'categories'));
 }