Пример #1
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     $userCount = User::where('id', '>=', 1)->count();
     $memberCount = Member::where('id', '>=', 1)->count();
     $charCount = Character::where('id', '>=', 1)->count();
     $data = ['user' => Auth::user(), 'sitename' => \Config::get('diablo.sitename'), 'dashboard' => ['counters' => ['users' => ['title' => 'Users', 'value' => $userCount, 'url' => ''], 'members' => ['title' => 'Members', 'value' => $memberCount, 'url' => ''], 'characters' => ['title' => 'Characters', 'value' => $charCount, 'url' => '']]]];
     return view('admin/index', $data);
 }