{{--<div class="form-group{{ $errors->has('leave_type_id') || $errors->has('leave_type') ? ' has-error' : '' }}">
	{!! Form::label('leave_type_id', 'Leave Type') !!}<br />
	{!! Form::select('leave_type_id', $leave_types, null, ['class' => 'form-control']) !!}
	@if ($errors->has('leave_type_id') || $errors->has('leave_type'))
		<span class="help-block">
			<strong>{{ $errors->has('leave_type') ? $errors->first('leave_type') : $errors->first('leave_type_id') }}</strong>
		</span>
	@endif
</div>--}}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
	{!! Form::label('name', trans('general.nombre').' '.trans('general.boat')) !!}
	{!! Form::text('name', null, ['class' => 'form-control']) !!}
	@if ($errors->has('name'))
		<span class="help-block">
			<strong>{{ $errors->first('name') }}</strong>
		</span>
	@endif
</div>

<div class="form-group{{ $errors->has('launch') ? ' has-error' : '' }}">
	{!! Form::label('launch', trans('general.launch')) !!}
	<div class="input-group">
		<div class="input-group-addon">
		<i class="fa fa-calendar"></i>
		</div>
		{!! Form::text('launch', null, ['class' => 'form-control datepicker', 'data-inputmask' => "'alias': 'mm/dd/yyyy'", 'data-mask' => '']) !!}
	</div>
	@if ($errors->has('launch'))
		<span class="help-block">
			<strong>{{ $errors->first('launch') }}</strong>
		</span>
	@endif
</div>
<div class="form-group{{ $errors->has('maker') ? ' has-error' : '' }}">
	{!! Form::label('maker', trans('general.maker')) !!}
	{!! Form::text('maker', null, ['class' => 'form-control']) !!}
	@if ($errors->has('maker'))
		<span class="help-block">
			<strong>{{ $errors->first('maker') }}</strong>
		</span>
	@endif
</div>
<div class="form-group{{ $errors->has('number') ? ' has-error' : '' }}">
	{!! Form::label('number', trans('general.boatnumber')) !!}
	{!! Form::text('number', null, ['class' => 'form-control']) !!}
	@if ($errors->has('number'))
		<span class="help-block">
			<strong>{{ $errors->first('number') }}</strong>
		</span>
	@endif
</div>
<div class="form-group{{ $errors->has('model') ? ' has-error' : '' }}">
	{!! Form::label('model', trans('general.model')) !!}
	{!! Form::text('model', null, ['class' => 'form-control']) !!}
	@if ($errors->has('model'))
		<span class="help-block">
			<strong>{{ $errors->first('model') }}</strong>
		</span>
	@endif
</div>

<div class="form-group{{ $errors->has('port')  ? ' has-error' : '' }}">
        	{!! Form::label('port',  trans('general.puerto')) !!}<br />
        	{!! Form::select('port_id', $port, null, ['class' => 'form-control']) !!}
        	@if ($errors->has('port'))
        		<span class="help-block">
        			<strong>{{ $errors->has('port') }}</strong>
        		</span>
        	@endif
</div>

<div class="form-group{{ $errors->has('boatTypes')  ? ' has-error' : '' }}">
        	{!! Form::label('boatTypes',  trans('general.tipo')) !!}<br />
        	{!! Form::select('boattype_id', $boatTypes, null, ['class' => 'form-control']) !!}
        	@if ($errors->has('boatTypes'))
        		<span class="help-block">
        			<strong>{{ $errors->has('boatTypes') }}</strong>
        		</span>
        	@endif
</div>

<div class="form-group{{ $errors->has('users[]') || $errors->has('users[]') ? ' has-error' : '' }}">
	{!! Form::label('users[]', trans('general.cliente')) !!}
	{{ Form::select('users[]', [], null, ['class' => 'form-control', 'id' => 'users', 'multiple' => 'multiple','required' => 'required']) }}

</div>


<div class="pull-right">
	{!! Form::submit(trans('general.save'), ['class' => 'btn btn-success btn-flat']) !!}
	<a href="{{ isset($user->id) ? asset('/users/'.$user->id) : asset('/boats') }}" type="button" class="btn btn-default btn-flat">{{trans('general.cancel')}}</a>
</div>