/**
  * 增加文章
  *
  * @author yangyifan <*****@*****.**>
  */
 public function getAdd()
 {
     return $this->html_builder->builderTitle('增加网址')->builderFormSchema('site_name', '网址名称')->builderFormSchema('name', '网址别名')->builderFormSchema('site_cat_id', '所属分类', 'select', $default = '', $notice = '', $class = '', $rule = '*', $err_message = '', SiteCatModel::getAllForSchemaOption('cat_name'), 'cat_name')->builderFormSchema('site_url', '网址url', $type = 'text', $default = '', $notice = '', $class = '', $rule = 'url', $err_message = '', $option = '', $option_value_schema = '')->builderFormSchema('icon', '网址icon', 'image')->builderFormSchema('thumb_small', '缩略图【小图】', 'image')->builderFormSchema('thumb_medium', '缩略图【中图】', 'image')->builderFormSchema('thumb_logo', '网址logo', 'image')->builderFormSchema('sort', '排序', 'text', 255)->builderFormSchema('status', '状态', 'radio', '', '', '', '', '', [1 => '开启', '2' => '关闭'], '1')->builderFormSchema('view', '点击量', 'text', mt_rand(100, 200))->builderConfirmBotton('确认', url('admin/site/add'), 'btn btn-success')->builderAdd();
 }
 /**
  * 添加网址
  *
  * @return \Illuminate\View\View
  */
 public function getAddSite()
 {
     return view('home.index.add_site', ['all_cat' => SiteCatModel::getAllForSchemaOption('cat_name', 0, false)]);
 }
 /**
  * 增加文章分类
  *
  * @param  int  $id
  * @auther yangyifan <*****@*****.**>
  */
 public function getAdd()
 {
     return $this->html_builder->builderTitle('增加菜单')->builderFormSchema('cat_name', '分类名称')->builderFormSchema('keywords', '分类关键字')->builderFormSchema('description', '分类描述', 'textarea')->builderFormSchema('pid', '父级菜单', 'select', $default = '', $notice = '', $class = '', $rule = '*', $err_message = '', SiteCatModel::getAllForSchemaOption('cat_name'), 'cat_name')->builderFormSchema('status', '状态', 'radio', '', '', '', '', '', [1 => '开启', '2' => '关闭'], '1')->builderFormSchema('sort', '菜单排序', 'text', 255)->builderConfirmBotton('确认', url('admin/site-cat/add'), 'btn btn-success')->builderAdd();
 }