@extends('layouts.master') @section('title', __('Profile')) @section('breadcum') @endsection @section('maincontent')
{{__('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 ')}}
{!! 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')}}
{!! 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', __('Profile Image')) !!} {!! Form::file('image', ['class' => 'input-file', 'id'=>'image']) !!}

{{__('Choose A Image')}}

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