@extends('adminlte::page') @section('title', config('app.name') . ' | ' . __('Account Settings')) @section('content_header')

{{__('My Profile')}} / {{__('Account')}} / {{__('Settings')}}

@stop @section('js') @stop @section('css') @stop @section('content') @if ($demoActive)

{{ __('This feature is disabled') }}

@endif

{{ __('Deleting your account is an irreversible process. The following data will be deleted (including personally identifiable data):') }}

{{ __('What is not deleted:') }}

{{ __("Note: After you verify your identity, you'll receive an email with more information asking you to confirm or cancel this request.") }}

{{ __('Your account will be locked during this process.') }}

@csrf @method('PATCH') {{ __('For your security, your password is always required for sensitive operations.') }} {{ __('You cannot recover lost 2FA secrets.') }}
@if (!Auth::user()->has2FA()) @if($demoActive)

{{ __('This feature is disabled') }}

@endif

{{__("We're glad you decided to increase your account's security!")}}

{{__('Supported apps you can install:')}}

{{__('Scan the QR code with your preferred app, and then copy the code here.')}}

{!! $twofaQRCode !!}
@csrf @method('PATCH')
@endif @if (Auth::user()->has2FA())

{{__('Are you sure?')}} {{__('Removing two-factor authentication will reduce the security of your account.')}}

@csrf @method('PATCH')

{{__('To prevent unauthorized changes, a password is always required for sensitive operations.')}}

{{__('Click to Confirm')}}
@endif

{{__('Welcome back, :userNameValue!', ['userNameValue' => Auth::user()->name])}}

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

@if(session('passwordExpired'))

{{ __('Your password has expired') }}

{{ __("You've been redirected here because your password has expired. All users must change their password every :numDaysChangePw days. This is put in place to make sure user accounts remain secure.", ['numDaysChangePw' => \App\Facades\Options::getOption('password_expiry')]) }}

{{ __("Please change update your password now. You won't be able to use the site until you do this.") }}

@endif
@if($demoActive)

{{ __('This feature is disabled') }}

@endif @if (!Auth::user()->hasPassword())
{{ __('Your :appName account does not have a password', ['appName' => config('app.name')]) }}

{!! __('Because your account is linked to one or more OAuth providers (such as Discord), there is no need for your account to use a password.', ['oAuthExplanationLink' => 'https://en.wikipedia.org/wiki/OAuth']) !!}

{{ __('Because several sensitive actions on the app require you to confirm your password, you may define one below. This will also allow you to unlink your accounts and login with a password.') }}

@csrf @method('PATCH')

{{ __('Setting a new password:') }}

{{ __('You will be logged out afterwards.') }}

@else
{{__('Change Password')}}

{{__('Change your password here. This will log you out from all existing sessions for your security.')}}

@csrf @method('PATCH')

{!! __('Forgot password? Reset it here!') !!}

@endif
{{ __('Connected Accounts') }}

{{__('Manage your connected external accounts here.')}}

@if(Auth::user()->hasDiscordConnection())

{{ __('Your account is currently connected to Discord.') }}

@if(!Auth::user()->hasPassword()) {{ __("We've disabled unlinking your Discord account for now. To re-enable it, please add a password in the Account Security screen. This is to ensure you still have access to your account even after you change your Discord account email address.") }} @else

{{ __("If you choose to disconnect your Discord account, we'll let Discord know by revoking your authorization. This means you will no longer be able to apply for positions that require a linked Discord account, and you may also lose any server privileges/roles that may have been granted through your linked account.") }}

{{ __(" You'll be able to link your account again through this page or by signing in with Discord again, but remember that if you changed your Discord email address, you will no longer have access to your old account.") }}

@endif
{{ __('Connected to Discord') }}
@if(Auth::user()->hasPassword())
@method('PATCH') @csrf {{ __('Disconnect') }}
@else {{ __('Disconnect') }} @endif
@else

{{ __('Your Discord account is not connected. Connect your Discord account below in order to apply for positions that require it.') }}

{{ __('Connect to Discord') }} @endif
{{__('Two Factor Authentication')}}

@if (Auth::user()->has2FA())

{{__('Hooray! 2FA is setup correctly for your account. A code will be asked each time you login.')}}

@else

{{__('Two-factor auth is available for your account.')}}{{__("Enabling this security option greatly increases your account's security in case your password ever gets stolen.")}}

@endif
{{__('Session Manager')}}

{{__('Terminating other sessions is a mustif your account has been compromised.')}}

{{__('Your current session: logged in from :ipAddress', ['ipAddress' => (!$shouldCollect) ? __('0.0.0.0 (censored)') : $ip])}}

@if($demoActive)

{{ __('This feature is disabled') }}

@endif
{{__('Contact settings')}}

{{__('Need to change personal data? You can do so here.')}}

@csrf @method('PATCH')

{{__('For security reasons, you cannot make important account changes without confirming your password. You will also need to verify your new email address.')}}

{{ __('Danger Zone') }}

{{ __('Careful! Actions in these tab might result in irreversible loss of data.') }}

@stop @section('footer') @include('breadcrumbs.dashboard.footer') @stop