Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $users = User::all();
     $events_submitted = ep\Event::where('approved', '=', '0')->get();
     $event_count = ep\Event::all()->count();
     $shows_submitted = Show::where('approved', '=', '0')->get();
     $show_count = Show::all()->count();
     $extras_submitted = Extra::where('approved', '=', '0')->get();
     $extra_count = Extra::all()->count();
     $beta_count = DB::table('beta_newsletters')->count();
     return View::make('admin.admin_panel', array('pageTitle' => 'Admin Panel', 'users' => $users, 'event_count' => $event_count, 'events_submitted' => $events_submitted, 'show_count' => $show_count, 'shows_submitted' => $shows_submitted, 'extra_count' => $extra_count, 'beta_count' => $beta_count, 'extras_submitted' => $extras_submitted));
 }