id->sortable(); $grid->name; $grid->category; $grid->value; $grid->desc; $grid->sort; $grid->status; $grid->created_at; $grid->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 CouponSetting(), function (Show $show) { $show->id; $show->name; $show->category; $show->value; $show->desc; $show->sort; $show->status; $show->created_at; $show->updated_at; }); } /** * Make a form builder. * * @return Form */ protected function form() { return Form::make(new CouponSetting(), function (Form $form) { $form->display('id'); $form->text('name'); $form->text('category'); $form->text('value'); $form->text('desc'); $form->text('sort'); $form->text('status'); $form->display('created_at'); $form->display('updated_at'); }); } }