
<?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.port')); ?>

	<?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('address') ? ' has-error' : ''); ?>">
	<?php echo Form::label('address', trans('general.localidad')); ?>

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

	
	<?php if($errors->has('address')): ?>
		<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('latitude') ? ' has-error' : ''); ?>">
	<?php echo Form::label('latitude', trans('general.latitude')); ?>

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

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

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

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

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

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

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

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

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

<div class="form-group<?php echo e($errors->has('user_id')  ? ' has-error' : ''); ?>">
	<?php echo Form::label('user_id',  'Gerente'); ?><br />
	<?php echo Form::select('user_id', $userSelect, null, ['class' => 'form-control']); ?>

	<?php if($errors->has('user_id')): ?>
		<span class="help-block">
        			<strong><?php echo e($errors->has('user_id')); ?></strong>
        		</span>
	<?php endif; ?>
</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('/ports')); ?>" type="button" class="btn btn-default btn-flat"><?php echo e(trans('general.cancel')); ?></a>
</div>