@extends('layouts.app', ['path' => 'settings']) @section('content')
@include('user.settings-sidebar', ['path' => 'security-settings'])

Two-Factor Authentication

@if (isset($response['data']['is_twofa_enabled']))
@csrf
Two-Factor Authentication is currently enabled on your account.

If you wish to turn it off, click the "Disable" button below.
Cancel
@else
@csrf
Please enter the OTP generated on your Authenticator App.
Ensure you submit the current one because it refreshes every 30 seconds.
@error('otp') {{ $message }} @enderror
{{ $response['data']['secret'] }}
{!! $response['data']['qrImage'] !!}
@endif
@endsection @push('scripts') @endpush