<div class="panel panel-default">
    <div class="panel-heading">
        <h4>Detalles</h4>
    </div>
    <div class="panel-body">
        <div class="form-group<?php echo e($errors->has('fiscal_reason') ? ' has-error' : ''); ?>">
        	<?php echo Form::label('fiscal_reason', trans('general.nombre')); ?>

        	<?php echo Form::text('fiscal_reason', null, ['class' => 'form-control']); ?>

        	<?php if($errors->has('fiscal_reason')): ?>
        		<span class="help-block">
        			<strong><?php echo e($errors->first('fiscal_reason')); ?></strong>
        		</span>
        	<?php endif; ?>
        </div>
        <div class="form-group<?php echo e($errors->has('cif') ? ' has-error' : ''); ?>">
        	<?php echo Form::label('cif', trans('general.cif')); ?>

        	<?php echo Form::text('cif', null, ['class' => 'form-control']); ?>

        	<?php if($errors->has('cif')): ?>
        		<span class="help-block">
        			<strong><?php echo e($errors->first('cif')); ?></strong>
        		</span>
        	<?php endif; ?>
        </div>
        <div class="form-group<?php echo e($errors->has('fiscal_address') ? ' has-error' : ''); ?>">
        	<?php echo Form::label('fiscal_address', 'Direccion'); ?>

        	<?php echo Form::text('fiscal_address', null, ['class' => 'form-control']); ?>

        	<?php if($errors->has('fiscal_address')): ?>
        		<span class="help-block">
        			<strong><?php echo e($errors->first('fiscal_address')); ?></strong>
        		</span>
        	<?php endif; ?>
        </div>
		<div class="form-group<?php echo e($errors->has('comment') ? ' has-error' : ''); ?>">
			<?php echo Form::label('comment', trans('general.comment')); ?>

			<?php echo Form::textarea('comment', null, ['class' => 'form-control', 'rows' => '3']); ?>

			<?php if($errors->has('comment')): ?>
				<span class="help-block">
        			<strong><?php echo e($errors->first('comment')); ?></strong>
        		</span>
			<?php endif; ?>
		</div>

    </div>
</div>
<?php 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<?php echo e($errors->has('boats[]') || $errors->has('boats[]') ? ' has-error' : ''); ?>">
			<?php echo Form::label('boats[]', 'Embarcaciones'); ?>

			<?php echo e(Form::select('boats[]', [], null, ['class' => 'form-control', 'id' => 'boats', 'multiple' => 'multiple','required' => 'required'])); ?>

		</div>
	</div>
</div>
<?php endif; ?>
<div class="pull-right">
	<?php echo Form::submit(trans('general.save'), ['class' => 'btn btn-success btn-flat']); ?>

	<a href="<?php echo e(isset($customer) ? asset('/companies/'.$customer->id) : asset('/companies')); ?>" type="button" class="btn btn-default btn-flat"><?php echo e(trans('general.cancel')); ?></a>
</div>
