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

{{ __('Users / Accounts / :username / Manage', ['username' => $user->name]) }}

@stop @section('js') @stop @section('content') @if($user->has2FA())

{{ __('Resetting an account\'s two-factor authentication secret will automatically notify the account holder. Additionally, the user\'s password will also be forcefully reset during this process. Please confirm this action by verifying your identity below.') }}

@csrf @method('PATCH') {{ __('Please re-enter your password.') }} {{ __('Please enter your two-factor authentication code.') }}
@endif @if($user->hasPassword())

{{ __('Forcing a password reset will automatically notify the account holder and send them a password reset link. Please confirm this action by verifying your identity below.') }}

@csrf @method('patch') {{ __('Re-entering your password is required to confirm sensitive administration actions.') }} {{ __('Two-factor authentication is required to confirm sensitive administration actions.') }}
@endif

{{__("Please confirm that you want to suspend this account. You'll need to add a reason and expiration date to confirm this.")}}

@csrf @if($demoActive)

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

@endif

{{ __('Temporary suspensions will be automatically lifted. The suspension note is visible to all users. Suspended users will not be able to login or register.') }}

@if (!Auth::user()->is($user) && $user->isStaffMember()) @if($demoActive)

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

@endif

{{__('You are about to terminate a recruited staff member')}}

{{__('Terminating a staff member will remove their privileges on the application management site and connected integrations configured for the vacancy they applied for.')}}

{{__('THIS PROCESS IS IRREVERSIBLE AND IMMEDIATE')}}

@csrf @method('PATCH')
@endif @if($demoActive)

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

@endif

{{__('WARNING: This is a potentially destructive action!')}}

{{__("Deleting a user's account is an irreversible process. Historic and current applications, votes, and profile content, as well as any personally identifiable information will be immediately erased.")}}

$user->id])}}> @csrf @method('DELETE')
@if($demoActive)

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

@endif
@csrf @method('PATCH') @if ($requireLicense)

{{__('If the setting "Require Valid Game License" is activated, editing this field may have unintended consequences. Proceed with caution.')}}

@endif
@foreach($roles as $roleName => $status) @endforeach
{{ ucfirst($roleName) }}

{{ __('Personal details') }}

@if($user->hasDiscordConnection())
{!! __('Connected to Discord as :tag', ['tag' => $user->username]) !!}

{{ __('User ID: :discordUserID', ['discordUserID' => $user->discord_user_id]) }}

@endif

{{ __('Application history') }}

@if (!$applications->isEmpty()) @foreach($applications as $application) @endforeach
# {{__('Status')}} {{ __('Vacancy') }} {{__('Date')}} {{__('Actions')}}
{{ $application->id }} @switch($application->applicationStatus) @case('STAGE_SUBMITTED') {{__('Outstanding (Submitted)')}} @break @case('STAGE_PEERAPPROVAL') {{__('Peer Review')}} @break @case('STAGE_INTERVIEW') {{__('Interview')}} @break @case('STAGE_INTERVIEW_SCHEDULED') {{__('Interview Scheduled')}} @break @case('APPROVED') {{__('Approved')}} @break @case('DENIED') {{__('Denied')}} @break; @default {{__('Denied')}} @endswitch {{ $application->response->vacancy->vacancyName }} {{ $application->created_at }} ({{ $application->created_at->diffForHumans() }}) {{ __('View') }}
@else {{ __('This user has not submitted any applications yet.') }} @endif

{{ __('Admin actions') }}

@if ($isSuspended)

 {{ __('This account has been :suspensionType suspended.', ['suspensionType' => (is_null($suspensionDuration)) ? __('permanently') : __('temporarily') ]) }}

 {!! __('Reason: :reason', ['reason' => $suspensionReason]) !!}

@if (!is_null($suspensionDuration))

 {!! __('Suspension expires: :duration', ['duration' => $suspensionDuration]) !!}

@endif
@endif @if (!$isSuspended) @else
@csrf @method('DELETE')
@endif @if($user->hasPassword()) @else @endif @if($user->has2FA()) @endif
@stop @section('footer') @include('breadcrumbs.dashboard.footer') @stop