public function create()
{
$f = array();
# $f[] = Form::input('title## $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');
}