protected function showIndex($view = '')
    {
        $items = $this->getTableRows();
        $ajax = count($items) > 150 ? 'true' : 'false';

        return $this->view($view, compact('ajax'))->with('items', $ajax == 'true' ? [] : $items);
    }
protected function showIndex($view = '')
    {
        $items = $this->getTableRows();
        $ajax = count($items) > 150 ? 'true' : 'false';

        return $this->view($view, compact('ajax'))->with('items', $ajax == 'true' ? [] : $items);
    }
protected function showIndex ( $ view = '' ) { $ items = $ this -> getTableRows ( ) ; $ ajax = count ( $ items ) > 150 ? 'true' : 'false' ; return $ this -> view ( $ view , compact ( 'ajax' ) ) -> with ( 'items' , $ ajax == 'true' ? [ ] : $ items ) ; }
Get the items, check if we use ajax or send items to view
Return the index view
@param string $view
@return mixed
Get the items check if we use ajax or send items to view Return the index view