@extends('layouts.admin') {{-- @section('content')
@if ($errors->any()) @endif

{{ __('Change E-mail') }}

{{ __('Current E-mail') }}: {{ auth()->user()->email }}
{!! Form::open(['method' => 'POST', 'route' => ['user.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::submit(__('update'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}

{{ __('Change Password') }}

{{ __('Want to change your Password') }}
{!! Form::open(['method' => 'POST', 'route' => ['user.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::submit(__('Update'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}
@endsection --}} @section('content')
{{--
--}} @csrf

{{ __('Change E-mail') }}

{{ __('Current E-mail') }}: {{ auth()->user()->email }}
{!! Form::open(['method' => 'POST', 'route' => ['user.update_profile']]) !!}
{!! Form::label('new_email', 'New Email') !!} {!! Form::email('new_email', null, ['class' => 'form-control', 'maxlength' => '60', 'aria-label' => 'New Email Address']) !!} {{-- {{ $errors->first('name') }} --}}
{{--
{!! 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 password-field', 'aria-label' => 'Current Password']) !!}
{{ $errors->first('current_password') }}
{!! Form::submit(__('update'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}

{{ __('Change Password') }}

{{ __('Want to change your Password') }}
{!! Form::open(['method' => 'POST', 'route' => ['user.update_password']]) !!}
{!! Form::label('new_password', __('New Password')) !!}
{!! Form::password('new_password', ['class' => 'form-control password-field', 'aria-label' => 'New Password']) !!}
{{ $errors->first('new_password') }}
{!! Form::label('confirm_password', __('Confirm Password')) !!}
{!! Form::password('confirm_password', ['class' => 'form-control password-field', 'aria-label' => 'Confirm Password']) !!}
{{ $errors->first('confirm_password') }}
{!! Form::submit(__('Update'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}
{{--
--}}
@endsection