@extends('front.layout.master') @php $user = Auth::user(); $sellerac = App\Store::where('user_id','=', $user->id)->first(); @endphp @section('title', __('2 Factor Auth') . ' | ') @section('body')

{{ __('Enable 2 Factor Auth') }}

@if(auth()->user()->google2fa_enable == 1) {{ __('Active') }} @else {{ __('Not enabled') }} @endif

{{ __('Two factor authentication (2FA) strengthens access security by requiring two methods to verify your identity. It protects against phishing, social engineering, and password brute force attacks.') }}
@if(empty($data['google2fa_url']) && auth()->user()->google2fa_enable == 0)
@csrf

{{ __('Get started with 2FA') }}

{{ __('Generate a secret key, scan the QR with Google Authenticator, then verify with a one-time code.') }}

@endif @if(!empty($data['google2fa_url']))
{{ __('Step 1: Scan QR') }}
{!! $data['google2fa_url'] !!}

{{ __('Use Google Authenticator or any TOTP app to scan.') }}

@if(auth()->user()->google2fa_secret != '' && auth()->user()->google2fa_enable == 0)
@csrf
{{ __('Step 2: Verify code') }}
@endif
@endif @if(auth()->user()->google2fa_enable == 1)

{{ __('Disable 2FA') }}

{{ __('You will need to enter your password to disable two-factor authentication.') }}

@csrf
@error('password')

{{ $message }}

@enderror
@endif
@include('front.partials.change-password-modal') @endsection