@lang('common.register')
{{ Form::text('name', null, ['class' => 'form-control']) }}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{{ Form::text('email', null, ['class' => 'form-control']) }}
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
@if ($errors->has('airline_id'))
{{ $errors->first('airline_id') }}
@endif
{{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) }}
@if ($errors->has('home_airport_id'))
{{ $errors->first('home_airport_id') }}
@endif
{{ Form::select('country', $countries, null, ['class' => 'form-control select2' ]) }}
@if ($errors->has('country'))
{{ $errors->first('country') }}
@endif
{{ Form::select('timezone', $timezones, null, ['id'=>'timezone', 'class' => 'form-control select2' ]) }}
@if ($errors->has('timezone'))
{{ $errors->first('timezone') }}
@endif
@if (setting('pilots.allow_transfer_hours') === true)
{{ Form::number('transfer_time', 0, ['class' => 'form-control']) }}
@if ($errors->has('transfer_time'))
{{ $errors->first('transfer_time') }}
@endif
@endif
{{ Form::password('password', ['class' => 'form-control']) }}
@if ($errors->has('password'))
{{ $errors->first('password') }}
@endif
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
@if ($errors->has('password_confirmation'))
{{ $errors->first('password_confirmation') }}
@endif
@if($userFields)
@foreach($userFields as $field)
{{ Form::text('field_'.$field->slug, null, ['class' => 'form-control']) }}
@if ($errors->has('field_'.$field->slug))
{{ $errors->first('field_'.$field->slug) }}
@endif
@endforeach
@endif
@if(config('captcha.enabled'))
{!! NoCaptcha::display(config('captcha.attributes')) !!}
@if ($errors->has('g-recaptcha-response'))
{{ $errors->first('g-recaptcha-response') }}
@endif
@endif
@include('auth.toc')
|
{{ Form::hidden('toc_accepted', 0, false) }}
{{ Form::checkbox('toc_accepted', 1, null, ['id' => 'toc_accepted']) }}
|
@if ($errors->has('toc_accepted'))
{{ $errors->first('toc_accepted') }}
@endif
|
|
{{ Form::hidden('opt_in', 0, false) }}
{{ Form::checkbox('opt_in', 1, null) }}
|
|
{{ Form::submit(__('auth.register'), [
'id' => 'register_button',
'class' => 'btn btn-primary',
'disabled' => true,
]) }}