public function index()
 {
     $articles = Article::all();
     $tutorials = Tutorial::all();
     $users = User::where('is_sitepoint', false)->get();
     $meetups = Meetup::all();
     $projects = Project::all();
     $bugs = Bugreport::all();
     return view('backend.pages.dashboard', compact('articles', 'tutorials', 'users', 'meetups', 'projects', 'bugs'));
 }
 /**
  * @param $username
  * @param $slug
  * @return \Illuminate\Http\RedirectResponse
  */
 public function dislike($username, $slug)
 {
     if (Auth::check()) {
         $user = User::where('username', $username)->with('meetups')->first();
         $article = Meetup::where('user_id', $user->id)->where('slug', $slug)->first();
         $article->dislike(Auth::user());
         return redirect()->intended('@' . $article->user->username . '/meetup/' . $article->slug);
     } else {
         alert()->warning('You need to sign in to dislike an meetup', 'Whoops!');
         return redirect()->intended('auth/login');
     }
 }