@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