@extends('layouts.default')

@section('title')
@parent
Добавление нового промоутера
@stop

@section('content')
<div class="row">
	<div class="col-md-6 col-md-offset-3">
		{{ Form::open(array('action' => 'PromotersController@store')) }}
		<h2>Добавление нового промоутера</h2>

		<div class="form-group {{ ($errors->has('name')) ? 'has-error' : '' }}">
			{{ Form::label( 'name', 'ФИО:', array('class' => 'control-label') ) }}
			{{ Form::text('name', null, array('class' => 'form-control', 'placeholder' => 'ФИО', 'autofocus')) }}
			{{ ($errors->has('name') ? $errors->first('name') : '') }}
		</div>

		<div class="form-group {{ ($errors->has('code')) ? 'has-error' : '' }}">
			{{ Form::label( 'code', 'Код:', array('class' => 'control-label') ) }}
			{{ Form::text('code', null, array('class' => 'form-control', 'placeholder' => 'Код')) }}
			{{ ($errors->has('code') ? $errors->first('code') : '') }}
		</div>

		{{ Form::submit('Добавить промоутера', array('class' => 'btn btn-primary')) }}
		{{ Form::button('Отмена', array('class' => 'btn btn-default', 'onclick'=>'location="'.URL::to('promoters').'"')) }}

    {{ Form::close() }}
	</div>
</div>

@stop