@extends('admin.master')

@section('top')
    <div class="top-breadcrumb pull-left">
        <h5>添加菜单</h5>
        <a class="btn btn-xs btn-default goback" href="{{ route('admin.menu.index') }}">
            <i class="iconfont icon-back-copy"></i><span>返回</span>
        </a>
    </div>
@endsection


@section('content')
<div class="container-body">
{!! Form::open(['route' => 'admin.menu.store', 'class'=>'form-horizontal form-detail']) !!}
    <div class="form-group form-item-required">
        <label class="col-sm-3 control-label label-width">菜单名称：</label>
        <div class="col-sm-5">
            {!! Form::text('name', null, ['class'=>'form-control']) !!}
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label label-width">所属分类：</label>
        <div class="col-sm-5">
            {!! Form::select('parent_id', ['请选择'] + $menuNests, null, ['class'=>'form-control']) !!}
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label label-width">地址：</label>
        <div class="col-sm-5">
            {!! Form::text('url', null, ['class'=>'form-control']) !!}
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label label-width">图标：</label>
        <div class="col-sm-5">
            {!! Form::text('icon', null, ['class'=>'form-control']) !!}
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label label-width"></label>
        <div class="col-sm-5">
            {!! Form::submit('提交', ['class'=>'btn btn-primary']) !!}
        </div>
    </div>
{!! Form::close() !!}
</div>
@endsection