@extends('template.layout') @section('title', 'Account Management') @section('submenuItem', 'accountmanagement') @section('content')
The email exchange system is undergoing maintenance, please wait...

Change Email Address
@role('unconfirmeduser')
@endrole @role('admin|user') @if(!is_null(Auth::user()->onGoingEmailChange()) && !is_null(Auth::user()->onGoingEmailChange()->confirmation_key))
@csrf
@else
@csrf
@if(config('shop.extraServices')['recoveryKey']['enabled'])
@endif
@endif @endrole
By Recovery Key
@if(!is_null(Auth::user()->onGoingEmailChange()) && !is_null(Auth::user()->onGoingEmailChange()->confirmation_key))

A request has been submitted to change the email address of this account to {{ Auth::user()->onGoingEmailChange()->email }}.

A link with a confirmation key was sent to your new email address. You need to use this confirmation key to create a new password within the next 24 hours to complete the email change.

If you do not want to change your email address, please click on "Cancel".

@else

Change your email address instantly by a using a recovery key.
You will receive an email containing a confirmation link to verify your new email address.
To finish the email change request you will have to choose a new password.

@endif @role('unconfirmeduser') You need to register your {{ config('server.serverName') }} account before you can change your email address instantly.
@endrole
{{--
@if(Auth::user()->onGoingEmailChange() && is_null(Auth::user()->onGoingEmailChange()->confirmation_key))
@csrf
@else
@csrf
@endif
@if(Auth::user()->onGoingEmailChange() && is_null(Auth::user()->onGoingEmailChange()->confirmation_key)) By {{ config('server.days_until_email_change') }} days waiting period

Change your email address by a using your password.
You will receive an email containing a confirmation link to verify your new email address.
To finish the email change request you will have to choose a new password.

For security reasons the password change will be executed after a {{ config('server.days_until_email_change') }} days waiting period. After this time period you can "cancel" or "accept" your password change request.

@else Complete waiting period

Now you must choose whether to complete or cancel the operation. When you click confirm, you will be sent an email to {x} confirm that your new email is valid.

@endif
--}}

@endsection