@extends('layouts.admin') @section('content')

reply My Profile

{{__('Change Email')}}

Currnet email: {{Auth::user()->email}}

{!! Form::open(['method' => 'POST', 'action' => 'UserAccountController@update_profile']) !!}
{!! Form::label('new_email', __('New Email')) !!} {!! Form::text('new_email', null, ['class' => 'form-control']) !!} {{ $errors->first('new_email') }}
{!! Form::label('current_password',__('Current Password')) !!} {!! Form::password('current_password', ['class' => 'form-control']) !!} {{ $errors->first('current_password') }}
{!! Form::close() !!}
{{__('Change Password')}}

{{__('Do you want to change password ?')}}

{!! Form::open(['method' => 'POST', 'action' => 'UserAccountController@update_profile']) !!}
{!! Form::label('current_password', __('Current Password')) !!} {!! Form::password('current_password', ['class' => 'form-control']) !!} {{ $errors->first('current_password') }}
{!! Form::label('new_password', __('New Password')) !!} {!! Form::password('new_password', ['class' => 'form-control']) !!} {{ $errors->first('new_password') }}
{!! Form::close() !!}

{{__('Change Name')}}

{{__('Currnet Name')}}: {{ucfirst(Auth::user()->name)}}

{!! Form::open(['method' => 'POST', 'action' => 'UserAccountController@update_profile']) !!}
{!! Form::label('current_name', __('Current Name')) !!} {!! Form::text('current_name',Auth::user()->name, ['class' => 'form-control','readonly']) !!} {{ $errors->first('current_name') }}
{!! Form::label('new_name', __('New Name')) !!} {!! Form::text('new_name',null, ['class' => 'form-control']) !!} {{ $errors->first('new_name') }}
{!! Form::label('current_password', {{__('Current Password')}}) !!} {!! Form::password('current_password', ['class' => 'form-control']) !!} {{ $errors->first('current_password') }}
{!! Form::close() !!}
{{__('Change Profile Image')}}
{!! Form::open(['method' => 'POST', 'action' => 'UserAccountController@update_profile','files' => true]) !!}
{!! Form::label('image', __('adminstaticwords.ProfileImage')) !!} {!! Form::file('image', ['class' => 'input-file', 'id'=>'image']) !!}

{{__('adminstaticwords.ChooseAImage')}}

{{ $errors->first('image') }}
@if(Auth::user()->image != NULL)
@endif
{!! Form::close() !!}
@endsection