public function create()
{
$f = array();
$f[] = Form::input('title','优惠券名称');
$f[] = Form::number('coupon_price','优惠券面值',0)->min(0);
$f[] = Form::number('use_min_price','优惠券最低消费')->min(0);
$f[] = Form::number('coupon_time','优惠券有效期限')->min(0);
$f[] = Form::number('sort','排序');
$f[] = Form::radio('place','位置',0)->options([['label'=>'主页位置','value'=>1],['label'=>'优惠卷位置','value'=>0]]);
$f[] = Form::radio('status','状态',0)->options([['label'=>'开启','value'=>1],['label'=>'关闭','value'=>0]]);
$form = Form::make_post_form('添加优惠券',$f,Url::build('save'));
$this->assign(compact('form'));
return $this->fetch('public/form-builder');
}