/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $nodes = Node::sortable()->filteredByStatus()->paginate(); return $this->compileView('nodes.index', compact('nodes'), trans('nodes.all')); }