<?php /*<div class="form-group<?php echo e($errors->has('leave_type_id') || $errors->has('leave_type') ? ' has-error' : ''); ?>">
	<?php echo Form::label('leave_type_id', 'Leave Type'); ?><br />
	<?php echo Form::select('leave_type_id', $leave_types, null, ['class' => 'form-control']); ?>

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

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

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

<div class="form-group<?php echo e($errors->has('launch') ? ' has-error' : ''); ?>">
	<?php echo Form::label('launch', trans('general.launch')); ?>

	<div class="input-group">
		<div class="input-group-addon">
		<i class="fa fa-calendar"></i>
		</div>
		<?php echo Form::text('launch', null, ['class' => 'form-control datepicker', 'data-inputmask' => "'alias': 'mm/dd/yyyy'", 'data-mask' => '']); ?>

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

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

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

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

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

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

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

<div class="form-group<?php echo e($errors->has('port')  ? ' has-error' : ''); ?>">
        	<?php echo Form::label('port',  trans('general.puerto')); ?><br />
        	<?php echo Form::select('port_id', $port, null, ['class' => 'form-control']); ?>

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

<div class="form-group<?php echo e($errors->has('boatTypes')  ? ' has-error' : ''); ?>">
        	<?php echo Form::label('boatTypes',  trans('general.tipo')); ?><br />
        	<?php echo Form::select('boattype_id', $boatTypes, null, ['class' => 'form-control']); ?>

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

<div class="form-group<?php echo e($errors->has('users[]') || $errors->has('users[]') ? ' has-error' : ''); ?>">
	<?php echo Form::label('users[]', trans('general.cliente')); ?>

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


</div>


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

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