@extends('socialite::layouts.default') @section('content')
@include('socialite::partials.usermenu-settings')
@include('flash::message')

{{ trans('users.general_settings.title') }}

{!! Form::model($user, ['route' => ['user.settings.general.post', 'username' => $username], 'method' => 'post']) !!}
{{ trans('users.general_settings.general_information') }}
{{ Form::label('first_name', trans('users.first_name'), ['class' => 'control-label']) }} {{ Form::text('first_name', null, ['class' => 'form-control']) }} @if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
{{ Form::label('last_name', trans('users.last_name'), ['class' => 'control-label']) }} {{ Form::text('last_name', null, ['class' => 'form-control']) }} @if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
{{ Form::label('email', trans('users.email'), ['class' => 'control-label']) }} {{ Form::text('email', null, ['class' => 'form-control']) }} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::label('gender', trans('users.gender.label'), ['class' => 'control-label']) !!}
{{--TODO VOX : gender in user model and method to get array--}} @foreach (array('female' => 'female', 'male' => 'male', 'other' => 'none') as $genderKey => $gender)
{!! Form::radio('gender', $genderKey, null, ['id' => 'gender_' . $genderKey]) !!} {!! Form::label('gender_' . $genderKey, trans('common.'.$gender)) !!}
@endforeach @if ($errors->userRegistration->has('gender')) {{ $errors->first('gender') }} @endif
{{ Form::label('birthday', trans('common.birthday'), ['class' => 'control-label']) }}
{{ Form::text('birthday', $user->birthday->format('d/m/Y'), ['class' => 'form-control', 'id' => 'datepicker1']) }}
{{ Form::label('birth_place', trans('users.birth_place'), ['class' => 'control-label']) }} {{ Form::text('birth_place', null, ['class' => 'form-control']) }} @if ($errors->has('birth_place')) {{ $errors->first('birth_place') }} @endif
{{ Form::label('living_place', trans('users.living_place'), ['class' => 'control-label']) }} {{ Form::text('living_place', null, ['class' => 'form-control']) }} @if ($errors->has('living_place')) {{ $errors->first('living_place') }} @endif
{{ trans('users.general_settings.personal_information') }}
{{ Form::label('about', trans('users.about'), ['class' => 'control-label']) }} {{ Form::textarea('about', null, ['class' => 'form-control']) }}
{{ Form::label('hobbies', trans('users.hobbies'), ['class' => 'control-label']) }} {{ Form::text('hobbies', null, ['class' => 'form-control add_selectize', 'placeholder' => trans('socialite::common.mention_your_hobbies')]) }}
{{ Form::label('interests', trans('users.interests'), ['class' => 'control-label']) }} {{ Form::text('interests', null, ['class' => 'form-control add_selectize', 'placeholder' => trans('socialite::common.add_your_interests')]) }}
{{ trans('users.general_settings.be_social') }}
{{ Form::label('facebook_link', trans('socialite::admin.facebook_link'), ['class' => 'control-label']) }}
{{ Form::label('twitter_link', trans('socialite::admin.twitter_link'), ['class' => 'control-label']) }}
{{ Form::label('youtube_link', trans('socialite::admin.youtube_link'), ['class' => 'control-label']) }}
{{ Form::label('instagram_link', trans('socialite::admin.instagram_link'), ['class' => 'control-label']) }}
{{ Form::label('linkedin_link', trans('socialite::admin.linkedin_link'), ['class' => 'control-label']) }}
{{ Form::submit(trans('socialite::common.save_changes'), ['class' => 'btn btn-success']) }}
{{ Form::close() }}

{{ trans('common.update_password') }}

{!! Form::model($user, ['route' => ['user.settings.password.post', 'username' => $username], 'method' => 'post']) !!}
{{ Form::label('current_password', trans('socialite::common.current_password')) }} {{ Form::password('current_password', ['id' => 'current_password', 'class' => 'form-control', 'placeholder' => trans('socialite::messages.enter_old_password')]) }} @if ($errors->has('current_password')) {{ $errors->first('current_password') }} @endif
{{ Form::label('new_password', trans('socialite::common.new_password')) }} {{ Form::password('new_password', ['id' => 'new_password', 'class' => 'form-control', 'placeholder' => trans('socialite::messages.enter_new_password')]) }} @if($errors->has('new_password')) {{ $errors->first('new_password') }} @endif
{{ Form::submit(trans('common.save_password'), ['class' => 'btn btn-success']) }}
{{ Form::close() }}
@endsection @section('bottom_js') @parent @endsection