public function data() { return Datatables::of(Page::select('*')) ->addColumn('options', function ($page) { return (string) view('options', ['id' => $page->id]); }) ->make(true); }