Set up two-factor authentication

@if(!auth()->user()->two_factor_secret)

Admin access requires an authenticator app.

@csrf
@elseif(!auth()->user()->two_factor_confirmed_at)

Add this secret to your authenticator app, then confirm its six-digit code.

{{ decrypt(auth()->user()->two_factor_secret) }}
@csrf
@else

2FA is enabled. Save these recovery codes securely. Sign out and sign in again to complete a two-factor login before entering the dashboard.

{{ implode("\n",auth()->user()->recoveryCodes()) }}
@csrf
@endif