/**
  * Display all admin
  * 
  * 1. Check filter
  * 2. Check page
  * 3. Get data from API
  * 4. Generate paginator
  * 5. Generate breadcrumb
  * 6. Generate view
  * @param page, q
  * @return Object View
  */
 public function index()
 {
     //1. Check filter
     $search = [];
     if (Input::has('q')) {
         $search = ['name' => Input::get('q')];
         $this->page_attributes->search = Input::get('q');
     } else {
         $searchResult = null;
     }
     if (Input::has('role')) {
         $search['role'] = Input::get('role');
     }
     $this->page_attributes->filters = ['titles' => ['role'], 'role' => ['admin', 'staff', 'store manager']];
     if (Input::has('sort')) {
         $sort_item = explode('-', Input::get('sort'));
         $sort = [$sort_item[0] => $sort_item[1]];
     } else {
         $sort = ['name' => 'asc'];
     }
     //2. Check page
     if (is_null(Input::get('page'))) {
         $page = 1;
     } else {
         $page = Input::get('page');
     }
     //3. Get data from API
     $APIAdmin = new APIAdmin();
     $admin = $APIAdmin->getIndex(['search' => $search, 'sort' => $sort, 'take' => $this->take, 'skip' => ($page - 1) * $this->take]);
     $this->page_attributes->data = ['admin' => $admin];
     $SortList = new SortList();
     $this->page_attributes->sorts = ['titles' => ['nama'], 'nama' => $SortList->getSortingList('nama')];
     //4. Generate paginator
     $this->paginate(route('config.administrative.index'), $admin['data']['count'], $page);
     //5. Generate breadcrumb
     $breadcrumb = [];
     $this->page_attributes->breadcrumb = array_merge($this->page_attributes->breadcrumb, $breadcrumb);
     //6. Generate View
     $this->page_attributes->source = $this->page_attributes->source . '.index';
     return $this->generateView();
 }