<div class="panel panel-default">
    <div class="panel-heading">
        <h4>Detalles</h4>
    </div>
    <div class="panel-body">
        <div class="form-group{{ $errors->has('fiscal_reason') ? ' has-error' : '' }}">
        	{!! Form::label('fiscal_reason', trans('general.nombre')) !!}
        	{!! Form::text('fiscal_reason', null, ['class' => 'form-control']) !!}
        	@if ($errors->has('fiscal_reason'))
        		<span class="help-block">
        			<strong>{{ $errors->first('fiscal_reason') }}</strong>
        		</span>
        	@endif
        </div>
        <div class="form-group{{ $errors->has('cif') ? ' has-error' : '' }}">
        	{!! Form::label('cif', trans('general.cif')) !!}
        	{!! Form::text('cif', null, ['class' => 'form-control']) !!}
        	@if ($errors->has('cif'))
        		<span class="help-block">
        			<strong>{{ $errors->first('cif') }}</strong>
        		</span>
        	@endif
        </div>
        <div class="form-group{{ $errors->has('fiscal_address') ? ' has-error' : '' }}">
        	{!! Form::label('fiscal_address', 'Direccion') !!}
        	{!! Form::text('fiscal_address', null, ['class' => 'form-control']) !!}
        	@if ($errors->has('fiscal_address'))
        		<span class="help-block">
        			<strong>{{ $errors->first('fiscal_address') }}</strong>
        		</span>
        	@endif
        </div>
		<div class="form-group{{ $errors->has('comment') ? ' has-error' : '' }}">
			{!! Form::label('comment', trans('general.comment')) !!}
			{!! Form::textarea('comment', null, ['class' => 'form-control', 'rows' => '3']) !!}
			@if ($errors->has('comment'))
				<span class="help-block">
        			<strong>{{ $errors->first('comment') }}</strong>
        		</span>
			@endif
		</div>

    </div>
</div>
@if(Auth::user()->role->role_permission('delete_users'))
<div class="panel panel-default">
	<div class="panel-heading">
		<h4>Embarcación</h4>
	</div>
	<div class="panel-body">
		<div class="form-group{{ $errors->has('boats[]') || $errors->has('boats[]') ? ' has-error' : '' }}">
			{!! Form::label('boats[]', 'Embarcaciones') !!}
			{{ Form::select('boats[]', [], null, ['class' => 'form-control', 'id' => 'boats', 'multiple' => 'multiple','required' => 'required']) }}
		</div>
	</div>
</div>
@endif
<div class="pull-right">
	{!! Form::submit(trans('general.save'), ['class' => 'btn btn-success btn-flat']) !!}
	<a href="{{ isset($customer) ? asset('/companies/'.$customer->id) : asset('/companies') }}" type="button" class="btn btn-default btn-flat">{{trans('general.cancel')}}</a>
</div>
