{{-- Custom fields --}} @foreach($userFields as $field) @endforeach
{{ __('common.name') }}
{{ Form::text('name', null, ['class' => 'form-control']) }}
@if ($errors->has('name'))

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

@endif
{{ __('common.email') }}
{{ Form::text('email', null, ['class' => 'form-control']) }}
@if ($errors->has('email'))

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

@endif
Discord ID How to find your ID
{{ Form::text('discord_id', null, ['class' => 'form-control']) }}
@if ($errors->has('discord_id'))

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

@endif
{{ __('common.airline') }}
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
@if ($errors->has('airline_id'))

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

@endif
{{ __('airports.home') }}
{{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control airport_search '.($hubs_only?'hubs_only':'')]) }}
@if ($errors->has('home_airport_id'))

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

@endif
{{ __('common.country') }}
{{ Form::select('country', $countries, null, ['class' => 'form-control select2' ]) }}
@if ($errors->has('country'))

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

@endif
{{ __('common.timezone') }}
{{ Form::select('timezone', $timezones, null, ['class' => 'form-control select2' ]) }}
@if ($errors->has('timezone'))

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

@endif
{{ __('profile.changepassword') }}

{{ __('profile.newpassword') }}:

{{ Form::password('password', ['class' => 'form-control']) }}
@if ($errors->has('password'))

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

@endif

{{ __('passwords.confirm') }}:

{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
@if ($errors->has('password_confirmation'))

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

@endif
{{ __('profile.avatar') }}
{{ Form::file('avatar', null) }}

{{ __('profile.avatarresize', [ 'width' => config('phpvms.avatar.width'), 'height' => config('phpvms.avatar.height')]) }}

@if ($errors->has('avatar'))

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

@endif
{{ $field->name }} @if($field->required === true) * @endif
{{ Form::text('field_'.$field->slug, $field->value, [ 'class' => 'form-control', ]) }}

{{ $errors->first('field_'.$field->slug) }}

{{ __('profile.opt-in') }}
{{ Form::hidden('opt_in', 0, false) }} {{ Form::checkbox('opt_in', 1, null) }}

{{ __('profile.opt-in-descrip') }}

{{ Form::submit(__('profile.updateprofile'), ['class' => 'btn btn-primary']) }}