{{ Form::label('name', 'Name:') }} {{ Form::text('name', null, ['class' => 'form-control']) }}

{{ $errors->first('name') }}

{{ Form::label('email', 'Email:') }} {{ Form::text('email', null, ['class' => 'form-control']) }}

{{ $errors->first('email') }}

{{ Form::label('password', 'Password:') }} {{ Form::password('password', ['class' => 'form-control']) }}

{{ $errors->first('password') }}

{{ Form::label('country', 'Country:') }}
{{ Form::select('country', $countries, null, ['class' => 'select2' ]) }}

{{ $errors->first('country') }}

{{ Form::label('timezone', 'Timezone:') }}
{{ Form::select('timezone', $timezones, null, ['id' => 'timezone', 'class' => 'select2' ]) }}

{{ $errors->first('timezone') }}

{{ Form::label('transfer_time', 'Transferred Hours:') }} {{ Form::text('transfer_time', \App\Facades\Utils::minutesToHours($user->transfer_time), ['class' => 'form-control']) }}

{{ $errors->first('transfer_time') }}

{{ Form::label('home_airport_id', 'Home Airport:') }} {{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) }}

{{ $errors->first('home_airport_id') }}



{{ Form::label('curr_airport_id', 'Current Airport:') }} {{ Form::select('curr_airport_id', $airports, null , ['class' => 'form-control select2']) }}

{{ $errors->first('curr_airport_id') }}

{{ Form::label('airline_id', 'Airline:') }} {{ Form::select('airline_id', $airlines, null, ['class' => 'form-control select2', 'placeholder' => 'Select Airline']) }}
{{ Form::label('rank_id', 'Rank:') }} {{ Form::select('rank_id', $ranks, null, ['class' => 'form-control select2', 'placeholder' => 'Select Rank']) }}
{{ Form::label('roles', 'Roles:') }} {{ Form::select('roles[]', $roles, $user->roles->pluck('id'), ['class' => 'form-control select2', 'placeholder' => 'Select Roles', 'multiple']) }}
{{ Form::label('state', 'State:') }}
{{--new api key--}}   {{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }} Cancel
{{----}}
API Key {{ $user->api_key }}
Total Flights {{ $user->flights }}
Flight Time {{ Utils::minutesToTimeString($user->flight_time) }}
IP Address {{ $user->last_ip }}
Registered On {{ show_datetime($user->created_at) }}
Last Login {{ show_datetime($user->updated_at) }}
@lang('toc.title') {{ $user->toc_accepted ? __('common.yes') : __('common.no') }}
@lang('profile.opt-in') {{ $user->opt_in ? __('common.yes') : __('common.no') }}