<form action=
"{{url('home/category/'.$res->cate_id)}}"
method=
"post"
autocomplete=
"off"
>
<input type=
"hidden"
name=
"_method"
value=
"put"
>
{{csrf_field()}}
<div
class
=
"col-md-5"
>
<h1
class
=
"page-header"
>编辑分类</h1>
@
if
(
count
((
array
)
$errors
)>0)
@
if
(
is_object
(
$errors
))
@
foreach
(
$errors
->all()
as
$error
)
{{
$error
}}
@
endforeach
@
else
{{
$errors
}}
@
endif
@
endif
<div
class
=
"form-group"
>
<label
for
=
"category-fname"
>父级分类</label>
<select id=
"category-fname"
class
=
"form-control"
name=
"cate_pid"
>
<option value=
"0"
selected>=顶级分类=</option>
@
foreach
(
$data
as
$d
)
<option value=
"{{$d->cate_id}}"
@
if
(
$d
->cate_id==
$res
->cate_pid) selected @
endif
>{{
$d
->cate_name}}</option>
@
endforeach
</select>
</div>
<div
class
=
"form-group"
>
<label
for
=
"category-name"
>分类名称</label>
<input type=
"text"
id=
"category-name"
name=
"cate_name"
value=
"{{$res->cate_name}}"
class
=
"form-control"
placeholder=
"在此处输入栏目名称"
autocomplete=
"off"
>
</div>
<div
class
=
"form-group"
>
<label
for
=
"category-alias"
>分类标题</label>
<input type=
"text"
id=
"category-alias"
name=
"cate_title"
value=
"{{$res->cate_title}}"
class
=
"form-control"
placeholder=
"在此处输入栏目别名"
autocomplete=
"off"
>
</div>
<div
class
=
"form-group"
>
<label
for
=
"category-keywords"
>关键字</label>
<input type=
"text"
id=
"category-keywords"
name=
"cate_keyword"
value=
"{{$res->cate_keyword}}"
class
=
"form-control"
placeholder=
"在此处输入栏目关键字"
autocomplete=
"off"
>
</div>
<!-- <div
class
=
"form-group"
> -->
<!-- <label
for
=
"category-describe"
>描述</label> -->
<!-- <textarea
class
=
"form-control"
id=
"cate_describe"
name=
"cate_describe"
{{
$res
->cate_describe}} rows=
"4"
autocomplete=
"off"
></textarea> -->
<!-- </div> -->
<div
class
=
"form-group"
>
<label
for
=
"category-keywords"
>排序</label>
<input type=
"text"
id=
"category-keywords"
name=
"cate_order"
value=
"{{$res->cate_order}}"
class
=
"form-control"
placeholder=
"在此处输入栏目关键字"
autocomplete=
"off"
>
</div>
<button
class
=
"btn btn-primary"
type=
"submit"
>提交</button>
</div>
</form>