<div class="form-group{{ $errors->has('user_id') ? ' has-error' : '' }}">
	{!! Form::label('user_id', trans('general.usuario')) !!}
	{{ Form::select('user_id', $socios, null, ['class' => 'form-control'])}}
	@if ($errors->has('user_id'))
		<span class="help-block">
			<strong>{{ $errors->first('user_id') }}</strong>
		</span>
	@endif
</div>
<div class="form-group{{ $errors->has('document_type_id') || $errors->has('document_type') ? ' has-error' : '' }}">
	{!! Form::label('document_type_id',trans('general.tipo').' '.trans('general.documento')) !!}<br />
	{!! Form::select('document_type_id', $document_types, null, ['class' => 'form-control']) !!}
	@if ($errors->has('document_type_id') || $errors->has('document_type'))
		<span class="help-block">
			<strong>{{ $errors->has('document_type') ? $errors->first('document_type') : $errors->first('document_type_id') }}</strong>
		</span>
	@endif
</div>
<div class="form-group{{ $errors->has('document') ? ' has-error' : '' }}">
	{!! Form::label('document', trans('general.documento')) !!}
	{!! Form::file('document') !!}
	@if ($errors->has('document'))
		<span class="help-block">
			<strong>{{ $errors->first('document') }}</strong>
		</span>
	@endif
</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('/documents') }}" type="button" class="btn btn-default btn-flat">{{trans('general.cancel')}}</a>
</div>
