@extends('layouts.theme') @section('title', 'Account Setting') @section('main-wrapper')

{{__('staticwords.accountandsettings')}}

{{__('staticwords.changemail')}}

{{__('staticwords.currentemail')}}: {{auth()->user()->email}}
{!! Form::open(['method' => 'POST', 'action' => 'UserAccountController@update_profile']) !!}
{!! Form::label('new_email',__('staticwords.newemail')) !!} {!! Form::text('new_email', null, ['class' => 'form-control']) !!} {{ $errors->first('new_email') }}
{!! Form::label('current_password', __('staticwords.currentpassword')) !!} {!! Form::password('current_password', ['class' => 'form-control']) !!} {{ $errors->first('current_password') }}
{!! Form::submit(__('staticwords.update'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}

{{__('staticwords.changepassword')}}

{{__('staticwords.wanttochangeyourpassword')}}
{!! Form::open(['method' => 'POST', 'action' => 'UserAccountController@update_profile']) !!}
{!! Form::label('current_password', __('staticwords.currentpassword')) !!} {!! Form::password('current_password', ['class' => 'form-control']) !!} {{ $errors->first('current_password') }}
{!! Form::label('new_password', __('staticwords.newpassword')) !!} {!! Form::password('new_password', ['class' => 'form-control']) !!} {{ $errors->first('new_password') }}
{!! Form::submit(__('staticwords.update'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}

{{__('staticwords.updateageandmobile')}}

{{__('staticwords.wanttochangeageandmobile')}}
{!! Form::open(['method' => 'POST', 'action' => 'UsersController@update_age']) !!}
{!! Form::submit(__('staticwords.update'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}
@endsection