@if($executive->getErrors()->count() > 0)
@if($executive->getErrors()->count() == 1)
{!!$executive->getErrors()->first()!!}
@else
Ocurrieron errores al guardar el nuevo ejecutivo:
@foreach($executive->getErrors()->all() as $error)
- {!!$error!!}
@endforeach
@endif
@endif
{!!Form::model($executive, [
'action' => 'ExecutivesController@store',
'method' => 'POST'
])!!}
{!!Form::label('first_name', 'Nombre(s)')!!}
{!!Form::text('first_name', NULL, ['class' => 'form-control','id' => 'first_name'])!!}
{!!Form::label('last_name', 'Apellido(s)')!!}
{!!Form::text('last_name', NULL, ['class' => 'form-control','id' => 'last_name'])!!}
{!!Form::label('employee_number', 'Número de empleado')!!}
{!!Form::text('employee_number', NULL, ['class' => 'form-control','id' => 'employee_number'])!!}
{!!Form::label('advisor_id', 'Supervisor')!!}
{!! Form::select('advisor_id', [NULL => 'Selecciona un supervisor'] + $advisors,
Input::get('advisor_id'), ['class' => 'form-control']) !!}
{!! Form::label('bound', 'Célula', ['class' => 'control-label']) !!}
{!!Form::select('bound', ['in' => 'In bound', 'out' => 'Outbound'],NULL, ['class' => 'form-control', 'maxlength' => 80])!!}
{!!link_to_action('ExecutivesController@index','Cancelar', NULL, ['class' => 'btn btn-lg btn-warning']) !!}
{!!Form::submit('Guardar', ['class' => 'btn btn-lg btn-primary'])!!}
{!!Form::close()!!}