Ejemplo n.º 1
0
 /**
  * Used to display the view of the main dashboard and also pass
  * along all of the variables and methods needed.
  *
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function getDashboard()
 {
     $data = ['page_title' => 'Dashboard', 'users' => User::getUser(), 'centers' => Fund::all(), 'num_centers_in_red' => Balance::getNumOfCentersInRed(), 'num_centers_in_black' => Balance::getNumOfCentersInRed(true), 'center_data' => Fund::getSeparateCenterAccounts()];
     return view('dashboard.dashboard', $data);
 }