<div class="panel panel-default">
    <div class="panel-heading">
        <h4>Detalles</h4>
    </div>
    <div class="panel-body">
        <div class="form-group{{ $errors->has('first_name') ? ' has-error' : '' }}">
        	{!! Form::label('first_name', trans('general.nombre')) !!}
        	{!! Form::text('first_name', null, ['class' => 'form-control']) !!}
        	@if ($errors->has('first_name'))
        		<span class="help-block">
        			<strong>{{ $errors->first('first_name') }}</strong>
        		</span>
        	@endif
        </div>
        <div class="form-group{{ $errors->has('last_name') ? ' has-error' : '' }}">
        	{!! Form::label('last_name', trans('general.apellido')) !!}
        	{!! Form::text('last_name', null, ['class' => 'form-control']) !!}
        	@if ($errors->has('last_name'))
        		<span class="help-block">
        			<strong>{{ $errors->first('last_name') }}</strong>
        		</span>
        	@endif
        </div>
        <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
        	{!! Form::label('email', 'Email') !!}
        	{!! Form::text('email', null, ['class' => 'form-control']) !!}
        	@if ($errors->has('email'))
        		<span class="help-block">
        			<strong>{{ $errors->first('email') }}</strong>
        		</span>
        	@endif
        </div>
        <div class="form-group{{ $errors->has('telephone') ? ' has-error' : '' }}">
        	{!! Form::label('telephone', trans('general.telefono')) !!}
        	{!! Form::text('telephone', null, ['class' => 'form-control']) !!}
        	@if ($errors->has('telephone'))
        		<span class="help-block">
        			<strong>{{ $errors->first('telephone') }}</strong>
        		</span>
        	@endif
        </div>
        <div class="form-group{{ $errors->has('cellphone') ? ' has-error' : '' }}">
        	{!! Form::label('cellphone', trans('general.movil')) !!}
        	{!! Form::text('cellphone', null, ['class' => 'form-control']) !!}
        	@if ($errors->has('cellphone'))
        		<span class="help-block">
        			<strong>{{ $errors->first('cellphone') }}</strong>
        		</span>
        	@endif
        </div>
		<div class="form-group{{ $errors->has('cellphone') ? ' has-error' : '' }}">
			{!! Form::label('channel', 'Canal') !!}
			{!! Form::text('channel', null, ['class' => 'form-control']) !!}
			@if ($errors->has('channel'))
				<span class="help-block">
        			<strong>{{ $errors->first('channel') }}</strong>
        		</span>
			@endif
		</div>

		<div class="form-group{{ $errors->has('boatTypes')  ? ' has-error' : '' }}">
        	{!! Form::label('boatTypes',  trans('general.tipo')) !!}<br />
        	{!! Form::select('boattype_id', $boatTypes, null, ['class' => 'form-control']) !!}
        	@if ($errors->has('boatTypes'))
        		<span class="help-block">
        			<strong>{{ $errors->has('boatTypes') }}</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>

<div class="pull-right">
	{!! Form::submit(trans('general.save'), ['class' => 'btn btn-success btn-flat']) !!}
	<a href="{{ isset($customer) ? asset('/customers/'.$customer->id) : asset('/customers') }}" type="button" class="btn btn-default btn-flat">{{trans('general.cancel')}}</a>
</div>
