column('id')->sortable(); $grid->column('user_id'); $grid->column('name'); $grid->column('tel'); $grid->column('market_id'); $grid->column('type'); $grid->column('status'); $grid->column('qr_url'); $grid->column('head_url'); $grid->column('created_at'); $grid->column('updated_at')->sortable(); $grid->filter(function (Grid\Filter $filter) { $filter->equal('id'); }); }); } /** * Make a show builder. * * @param mixed $id * * @return Show */ protected function detail($id) { return Show::make($id, new ServicePersonnel(), function (Show $show) { $show->field('id'); $show->field('user_id'); $show->field('name'); $show->field('tel'); $show->field('market_id'); $show->field('type'); $show->field('status'); $show->field('qr_url'); $show->field('head_url'); $show->field('created_at'); $show->field('updated_at'); }); } /** * Make a form builder. * * @return Form */ protected function form() { return Form::make(new ServicePersonnel(), function (Form $form) { $form->display('id'); $form->text('user_id'); $form->text('name'); $form->text('tel'); $form->text('market_id'); $form->text('type'); $form->text('status'); $form->text('qr_url'); $form->text('head_url'); $form->display('created_at'); $form->display('updated_at'); }); } }