public function index()
    {
        // Check if the user is able to create forums.
        if (!$this->canCreateForums()) {
            return redirect()->route('laravel-forum.index');
        }

        $data = $this->buildData();

        $data['counts'] = [
            'forum' => (new Forum)->getCount(),
            'category' => (new ForumCategory)->getCount(),
            'post' => (new ForumPost)->getCount(),
            'reply' => (new ForumReply)->getCount(),
        ];

        return view('laravel-forum::admin/index', $data);
    }