@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::model($data, ['route' => ['admin.attribute.update', $data->id], 'method'=>'put', 'class'=>'form-horizontal form-detail']) !!}
	<div class="tab-content">
		<div class="form-group {{ $managerLang == config('setting.lang') ? 'form-item-required' : ''}}">
			<label class="col-sm-2 control-label label-width">名称：</label>
			<div class="col-sm-5">
				{!! Form::text("description[{$managerLang}][title]", isset($descriptions[$managerLang]) ? $descriptions[$managerLang][0]->title : '', ['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::number('orders', 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(inject('setting')->config('edit_auto_translate') == 1 ? '提交并翻译' : '提交', ['class'=>'btn btn-primary']) !!}
	        </div>
	    </div>
	</div>
{!! Form::close() !!}
@endsection
