/** * Display the main app * * @return Response */ public function index() { try { if ($this->createUserSession()) { // User exists, now check if active === 1 if (User::currentIsActive()) { $formValues = $this->getParticipantFormValues(); return View::make('main.participant.index', ['formValues' => $formValues]); } else { // User not active, return no_access message return View::make('main.participant.no_access'); } } // No access, return Error $errmsg = 'Failed to load RideShareLog RideShare App.'; return $this->handleRideShareLogError(new Exception($errmsg), $errmsg); } catch (\Exception $e) { // No access, return Error return $this->handleRideShareLogError($e, 'Failed to load RideShareLog RideShare App.'); } }