@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.team.store', 'class'=>'form-horizontal form-detail']) !!}
  <div class="tab-content">
    <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", null, ['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::select("user_id", ['' => '请选择'] + $users, null, ['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::textarea("summary", null, ['class'=>'form-control', 'rows'=>5]) !!}
      </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