@php $settings = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::settings(); $countries = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::countryOptions(); $defaultCountry = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::defaultCountry(); $currentUser = auth()->user(); $currentPhoneIso = old('phone_country_iso', $currentUser->getAttribute('phone_country_iso') ?: $defaultCountry['iso']); $currentDialCode = old('phone_dial_code', $currentUser->getAttribute('phone_dial_code') ?: $defaultCountry['dial']); $currentPhoneLocal = old('phone_local', $currentUser->getAttribute('phone_local') ?: ''); $needsPhoneEnrollment = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::userNeedsPhoneEnrollment($currentUser); @endphp @if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif @if ($errors->any()) @endif
@if ($settings->signup_phone_enabled)
{{ __('Mobile Number for OTP Login') }}
@if ($needsPhoneEnrollment)
{{ __('Your account does not have a mobile number yet. Add one now so you do not get locked out when phone-only login is enabled.') }}
@else
{{ __('Keep this number up to date so phone OTP login keeps working for your account.') }}
@endif
@csrf
@error('phone_local')
{{ $message }}
@enderror
@endif
{{__('API Key')}}
@csrf
{{__('API Key')}}
{{__('Change Password')}}
@csrf
@if ($errors->has('current'))
{{ $errors->first('current') }}
@endif
@if ($errors->has('password'))
{{ $errors->first('password') }}
@endif
{{__('Automatically delete message history:')}}
@csrf
{{__('Select Timezone:')}}
@csrf
{{__('Two-Factor Authentication')}}
@csrf @if (auth()->user()->two_factor_enabled) @else @endif
@if (auth()->user()->two_factor_enabled)
{{__('Recovery Codes')}}

{{__('You can use Recovery Codes if you accidentally delete the Google Authenticator app or lose your phone. Use these codes when logging in instead of the app')}}

@foreach(json_decode(auth()->user()->recovery_codes) as $code)
{{ $code }}
@endforeach
@endif