public function index(array $input = array(), $category = null)
    {
        $query = e(array_get($input, 'search.value', null));
        if (!is_null($category)) {
            return $this->category($query, $category);
        }
        $this->breadcrumb->onIndex();
        $datatables = config('search.datatables');
        $tabs       = [];

        foreach ($datatables as $datatable) {

            if (!class_exists($datatable)) {
                continue;
            }
            $datatable                   = app($datatable);
            $row                         = $datatable->getQuickSearchRow();
            $category                    = array_get($row, 'category');
            $tabs[camel_case($category)] = [
                'title'     => $category,
                'datatable' => $datatable->render('antares/search::admin.partials._datatable')->render(),
            ];
        }
        return view('antares/search::admin.index.index', compact('tabs'));
    }