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

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

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

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

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

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

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

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

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

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

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

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

			<?php if($errors->has('channel')): ?>
				<span class="help-block">
        			<strong><?php echo e($errors->first('channel')); ?></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('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>

<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('/customers/'.$customer->id) : asset('/customers')); ?>" type="button" class="btn btn-default btn-flat"><?php echo e(trans('general.cancel')); ?></a>
</div>
