@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.member-group.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}][name]", isset($descriptions[$managerLang]) ? $descriptions[$managerLang][0]->name : '', ['class'=>'form-control']) !!}
      </div>
    </div>
    <div class="form-group pt-20" style="border-top: 1px solid #e8e8e8;">
      <label class="col-sm-2 control-label label-width">等级：</label>
      <div class="col-sm-5">
        {!! Form::number('level', null, ['class'=>'form-control']) !!}
        <span class="pl-10 mt-5 text-muted inline-block">( 级别越大，权限越大 )</span>
      </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>
  {!! Form::close() !!}
@endsection