column('name'); $grid->column('card_no'); $grid->column('client_name'); $grid->column('nurse_lv')->sortable(); $grid->column('live_in_at')->sortable(); $grid->column('avliable_at')->sortable(); // $grid->column('created_at')->sortable(); $grid->disableCreateButton(); $grid->tools("
"); $grid->filter(function (Grid\Filter $filter) { $filter->equal('name')->width(3); $filter->equal('card_no')->width(3); $filter->equal('nurse_lv')->select()->width(3); }); }); } /** * Make a show builder. * * @param mixed $id * * @return Show */ protected function detail($id) { return Show::make($id, new Oldman(), function (Show $show) { $show->field('id'); $show->field('floor_name'); $show->field('agreement_no'); $show->field('name'); $show->field('sex'); $show->field('birthday'); $show->field('card_no'); $show->field('card_province_id'); $show->field('card_city_id'); $show->field('card_area_id'); $show->field('card_address'); $show->field('client_name'); $show->field('client_province_id'); $show->field('client_city_id'); $show->field('client_area_id'); $show->field('client_address'); $show->field('client_phone'); $show->field('nurse_lv'); $show->field('created_at'); $show->field('updated_at'); }); } /** * 入住 */ public function create(Content $content){ return $content->header('客人入住') ->description('表单') ->body(new LiveIn()); } public function toStore(Request $request){ } }