public function show() { if (SessionManager::mfUserHasRoomieSession() && Auth::user()) { return view('myHomeViews.home'); } return redirect()->route('fbLogin'); }
public function add() { if (SessionManager::mfUserHasRoomieSession() && Auth::user()) { return view('myHomeViews.myTripViews.add-trips'); } return redirect()->route('fbLogin'); }
public function add() { if (SessionManager::mfUserHasRoomieSession() && Auth::user()) { $roomies = DB::table('Residentes')->where('Residentes.idHogar', '=', Session::get('infoRoomie')[0]['myself'][0]->idHogar)->get(); return view('myHomeViews.myPaymentViews.add-payments', compact('roomies')); } return redirect()->route('fbLogin'); }
public function mfShowHomeProfile() { if (SessionManager::mfUserHasRoomieSession() && Auth::user()) { $home = DB::table('Hogares')->join('Domicilios', 'Domicilios.idDomicilio', '=', 'Hogares.idDomicilio')->join('Planes', 'Planes.idPlan', '=', 'Hogares.idPlan')->where('Hogares.idHogar', '=', Session::get('infoRoomie')[0]['myself'][0]->idHogar)->get(); $checkedStrings = array(); $home[0]->gas == 1 ? $checkedStrings[0] = 'is-checked' : ($checkedStrings[0] = ''); $home[0]->luz == 1 ? $checkedStrings[1] = 'is-checked' : ($checkedStrings[1] = ''); $home[0]->cable == 1 ? $checkedStrings[2] = 'is-checked' : ($checkedStrings[2] = ''); $home[0]->internet == 1 ? $checkedStrings[3] = 'is-checked' : ($checkedStrings[3] = ''); $home[0]->telefono == 1 ? $checkedStrings[4] = 'is-checked' : ($checkedStrings[4] = ''); $home[0]->estacionamiento == 1 ? $checkedStrings[5] = 'is-checked' : ($checkedStrings[5] = ''); $home[0]->comidas == 1 ? $checkedStrings[6] = 'is-checked' : ($checkedStrings[6] = ''); $home[0]->lavanderia == 1 ? $checkedStrings[7] = 'is-checked' : ($checkedStrings[7] = ''); $home[0]->limpieza == 1 ? $checkedStrings[8] = 'is-checked' : ($checkedStrings[8] = ''); return view('myHomeViews.myProfileViews.profile-home', compact('home', 'checkedStrings')); } return redirect()->route('fbLogin'); }
public function mfGetSession() { SessionManager::mpRefreshSession(); return redirect()->route('fbLogin'); }
public function mfSessionRefreshHandle() { if (Request::ajax()) { return SessionManager::mpRefreshSession(); } }