{{trans('general.personales')}}

{!! Form::label('customer_id', 'Cliente') !!} {!! Form::select('customer_id', $customers, null, ['class' => 'form-control']) !!} @if ($errors->has('customer_id')) {{ $errors->first('customer_id') }} @endif
{!! Form::label('first_name', trans('general.nombre')) !!} {!! Form::text('first_name', null, ['class' => 'form-control']) !!} @if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
{!! Form::label('last_name', trans('general.apellido')) !!} {!! Form::text('last_name', null, ['class' => 'form-control']) !!} @if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
{!! Form::label('email', 'Email') !!} {!! Form::text('email', null, ['class' => 'form-control']) !!} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::label('local_address', trans('general.direccion')) !!} {!! Form::text('local_address', null, ['class' => 'form-control']) !!} @if ($errors->has('local_address')) {{ $errors->first('local_address') }} @endif
{!! Form::label('telephone', trans('general.movil')) !!} {!! Form::text('telephone', null, ['class' => 'form-control']) !!} @if ($errors->has('telephone')) {{ $errors->first('telephone') }} @endif
{!! Form::label('birthday', trans('general.birthday')) !!}
{!! Form::text('birthday', null, ['class' => 'form-control datepicker', 'data-inputmask' => "'alias': 'mm/dd/yyyy'", 'data-mask' => '']) !!}
@if ($errors->has('birthday')) {{ $errors->first('birthday') }} @endif
{!! Form::radio('gender', 'M', true) !!} {!! Form::label('gender', trans('general.masculino'), ['class' => 'margin']) !!} {!! Form::radio('gender', 'F') !!} {!! Form::label('gender', trans('general.femenino'), ['class' => 'margin']) !!}

{{ trans('general.titulacion') }}

{!! Form::label('nauticaltitle', trans('general.nauticaltitle')) !!} {!! Form::text('nauticaltitle', null, ['class' => 'form-control']) !!} @if ($errors->has('nauticaltitle')) {{ $errors->first('nauticaltitle') }} @endif
{!! Form::label('nauticaltitleexpedicion', trans('general.nauticaltitleexpedicion')) !!}
{!! Form::text('nauticaltitleexpedicion', null, ['class' => 'form-control datepicker', 'data-inputmask' => "'alias': 'mm/dd/yyyy'", 'data-mask' => '']) !!}
@if ($errors->has('nauticaltitleexpedicion')) {{ $errors->first('nauticaltitleexpedicion') }} @endif
{!! Form::label('nauticaltitleexpiration', trans('general.nauticaltitleexpiration')) !!}
{!! Form::text('nauticaltitleexpiration', null, ['class' => 'form-control datepicker', 'data-inputmask' => "'alias': 'mm/dd/yyyy'", 'data-mask' => '']) !!}
@if ($errors->has('nauticaltitleexpiration')) {{ $errors->first('nauticaltitleexpiration') }} @endif

{{ trans('general.datosusuario') }}

{!! Form::label('password', trans('general.password')) !!} {!! Form::password('password', ['class' => 'form-control']) !!} @if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! Form::label('password_confirmation', trans('general.password').' '.trans('general.confirmation')) !!} {!! Form::password('password_confirmation', ['class' => 'form-control']) !!} @if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
@if(Auth::user()->role->role_permission('delete_users'))
{!! Form::label('role_id', trans('general.rol')) !!}
{!! Form::select('role_id', $roles, null, ['class' => 'form-control']) !!} @if ($errors->has('role_id') || $errors->has('role')) {{ $errors->has('role') ? $errors->first('role') : $errors->first('role_id') }} @endif
@else {!! Form::hidden('role_id', null, ['class' => 'form-control']) !!} @endif
{!! Form::label('profile_picture', trans('general.photo')) !!} {!! Form::file('profile_picture') !!} @if ($errors->has('profile_picture')) {{ $errors->first('profile_picture') }} @endif
{!! Form::radio('sendemail', '0', true) !!} {!! Form::label('sendemail', trans('general.noenviado'), ['class' => 'margin']) !!} {!! Form::radio('sendemail', '1') !!} {!! Form::label('sendemail', trans('general.enviado'), ['class' => 'margin']) !!}
{!! Form::radio('sendsms', '0', true) !!} {!! Form::label('sendsms', trans('general.noenviado'), ['class' => 'margin']) !!} {!! Form::radio('sendsms', '1') !!} {!! Form::label('sendsms', trans('general.enviado'), ['class' => 'margin']) !!}
{!! Form::submit(trans('general.save'), ['class' => 'btn btn-success btn-flat']) !!} {{trans('general.cancel')}}