Beispiel #1
0
 public function location($loc)
 {
     if ($loc == "home") {
         $graphs = new Graphs();
         $sql = $graphs->last_activities();
         $sql2 = $graphs->last_pendingactivities();
         $sql3 = DB::select(DB::raw("SELECT * FROM `home_page`"));
         return View::make('home.home_', compact('sql', 'sql2', 'sql3', 'loc'));
     }
 }
Beispiel #2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     session_start();
     //create a session for location
     $_SESSION['loc'] = "home";
     $graphs = new Graphs();
     $sql = $graphs->last_activities();
     $sql2 = $graphs->last_pendingactivities();
     $sql3 = DB::select(DB::raw("SELECT * FROM `home_page`"));
     return View::make('home.home_', compact('sql', 'sql2', 'sql3', 'loc'));
 }
Beispiel #3
0
 public function homesettingstore()
 {
     $graph = new Graphs();
     $graph->save_settings();
     return redirect('homesetting');
 }