/** * Handle the process of confirming an Expert confirmation request * @param $request_link * @param BongoRequestRepo $bongoRequestRepo * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function bongoConfirmLink($request_link, BongoRequestRepo $bongoRequestRepo) { if (\Auth::check()) { $email = $bongoRequestRepo->getEmail($request_link); return view('account.logout_auth', compact('email')); } else { $confirm = $bongoRequestRepo->confirm($request_link); if ($confirm == 0) { return view('errors.invalid_link'); } elseif ($confirm == 1) { Session::flash('flash_message', 'Already have an account, Login with your bongo account and then visit your profile page to activate other bongo accounts'); return view('auth.login'); } elseif ($confirm == 2) { \Auth::logout(); $confirm = $bongoRequestRepo->getBongoRequest($request_link); return view('request.bongo.register', compact('confirm')); } } }
public function bongoModerator() { $innovations = $this->innovationRepository->getForModerator(); $innovations_open = $this->innovationRepository->getAllOPen(); $innovations_partial = $this->innovationRepository->getAllPartials(); $innovations_fully = $this->innovationRepository->getAllFullyFunded(); $investor_requests = $this->investorRequest->getThem(); $expert_requests = $this->expertRequest->getThem(); $categories = $this->categoryRepository->getAllCategories(); return view('admin.moderator', compact('innovations_fully', 'innovations_partial', 'innovations_open', 'expert_requests', 'investor_requests', 'innovations', 'categories')); }