@if (session()->has('alert'))
@slot('type', session('alert')['type'])
@slot('msg', session('alert')['msg'])
@endif
@if ($errors->has('avatar'))
@if (auth()->user()->two_factor_enabled)
@else
@endif
{{ $errors->first('avatar') }}
@endif
{{ Auth::user()->name }}
{{ Auth::user()->email }}
{{ __(strtoupper(Auth::user()->level)) }}
{{ auth()->user()->devices()->count() }}
{{__('Devices')}}{{ auth()->user()->campaigns()->count() }}
{{__('Campaigns')}}{{ auth()->user()->tickets()->count() }}
{{__('Tickets')}}{{__('Change Password')}}
{{__('Two-Factor Authentication')}}
{{__('Authenticator App')}}
{{__('Secure your account with an authentication app')}}
user()->two_factor_enabled) checked @endif
onclick="document.getElementById('toggleTwoFactorForm').submit()">
{{__('Recovery Codes')}}
{{__('Store these recovery codes in a secure password manager. They can be used to recover access to your account if you lose your device.')}}
@foreach(json_decode(auth()->user()->recovery_codes) as $code)
@endforeach
{{ $code }}
{{__('Two-factor authentication adds an extra layer of security to your account by requiring more than just a password to sign in.')}}