@extends('admin.master')

@section('top')
    <div class="top-breadcrumb pull-left">
        <h5>添加权限</h5>
        <a class="btn btn-xs btn-default goback" onclick="javascript:history.go(-1);">
            <i class="iconfont icon-back-copy"></i><span>返回</span>
        </a>
    </div>
@endsection

@section('content')
{!! Form::open(['route' => 'admin.permission.store', 'class'=>'form-horizontal form-detail']) !!}
<div class="tab-content">
	<div role="tabpanel" class="tab-pane active" id="home">
		<div class="form-group form-item-required">
            <label class="col-sm-2 control-label label-width">名称：</label>
            <div class="col-sm-5">
                {!! Form::text('name', '', ['class'=>'form-control']) !!}
            </div>
        </div>
        <div class="form-group form-item-required">
            <label class="col-sm-2 control-label label-width">权限：</label>
            <div class="col-sm-5">
                {!! Form::text('slug', '', ['class'=>'form-control']) !!}
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label label-width">描述：</label>
            <div class="col-sm-5">
                {!! Form::text('description', '', ['class'=>'form-control']) !!}
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label label-width"><span class="red pl-5">*</span>绑定菜单：</label>
            <div class="col-sm-5">
                {!! Form::select('menus_id', ['' => '==请选择=='] + $menus, 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>
    </div>
</div>
{!! Form::close() !!}
@endsection