{{-- CityHub - User profile --}}
{{ Form::open(array('route' => 'postProfile', 'role' => 'form', 'class' => 'form-horizontal', 'autocomplete' => 'off')) }}

{{ $title }}


{{ Form::email('email', $user->email, array('id' => 'email', 'class' => 'form-control')) }}

{{ Lang::get('profile.email_change_warning') }}

@if (isset($errors) && ($errors->first('email') != '' || $errors->first('email') != null))

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

@endif
{{ Form::select('landing_page', $landing_page, $user->landing_page, ['class' => 'form-control']) }} @if (isset($errors) && ($errors->first('landing_page') != '' || $errors->first('landing_page') != null))

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

@endif
{{ Form::select('language', $languages, $user->language_id, array('id' => 'languages', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('language') != '' || $errors->first('language') != null))

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

@endif

{{ Lang::get('profile.subtitle_profile_details') }}

{{ Form::text('first_name', $user->first_name, array('id' => 'first_name', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('first_name') != '' || $errors->first('first_name') != null))

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

@endif
{{ Form::text('last_name', $user->last_name, array('id' => 'last_name', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('last_name') != '' || $errors->first('last_name') != null))

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

@endif
{{ Form::text('address', $user->address, array('id' => 'address', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('address') != '' || $errors->first('address') != null))

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

@endif
{{ Form::text('city', $user->city, array('id' => 'city', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('city') != '' || $errors->first('city') != null))

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

@endif
{{ Form::text('phone', $user->phone, array('id' => 'phone', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('phone') != '' || $errors->first('phone') != null))

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

@endif
{{ Form::text('job_title', $user->job_title, array('id' => 'job_title', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('job_title') != '' || $errors->first('job_title') != null))

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

@endif
{{ Form::textarea('biography', $user->biography, array('id' => 'biography', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('biography') != '' || $errors->first('biography') != null))

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

@endif

{{ Lang::get('profile.subtitle_password') }}

{{ Form::password('old_password', array('id' => 'old_password', 'class' => 'form-control')) }}
{{ Form::password('new_password', array('id' => 'new_password', 'class' => 'form-control')) }}
{{ Form::password('repeat_new_password', array('id' => 'repeat_new_password', 'class' => 'form-control')) }}

{{ Lang::get('core.cancel') }} {{ Form::button(' ' . Lang::get('core.save'), array('type' => 'submit', 'class' => 'btn btn-success')) }}
{{ Form::close() }}