@extends('Dashboard.auth_master_page')




@section('meta_title')
    {{ '2FA Secure Your Account - AryanIct.com' }}
@endsection


@section('title')
    <span>Two-Factor Authentication</span>
@endsection


@section('description')
    <p>
        We recommend you to setup 2FA Authenticator
    </p>
@endsection



@section('content')

<div class="row g-0 justify-content-center">
    <p style="text-align: center;font-size: 12px;">Setup your 2FA by scanning the barcode below using Google or Microsoft Authenticator App Alternatively, you can use the code {{ $secret }}</p>
    <div class="col-sm-8 col-xl-4">
      <form class="js-validation-reminder" action="{{ route('password.email') }}"  method="POST" id="email_form">
        @csrf
        <div class="mb-4 text-center">
            <img src="{!! $QR_Image !!}" />
        </div>
 
        {!! RecaptchaV3::field('password_email') !!}
        <div class="text-center">
            <a href="{{ route('registeration.complete.googel2fa') }}" class="btn btn-lg btn-alt-primary">Enable</a>

            <a href="{{ route('registeration.skip.google2fa') }}" class="btn btn-lg btn-alt-primary">Skip</a>

           
          
        </div>
      </form>
    </div>
  </div>




@endsection

@section('script')
{{-- <script>
    $(function() {
        $('#email_form').submit(function(event) {
            var verified = grecaptcha.getResponse();
            if (verified.length === 0) {
                event.preventDefault();
            }
        });
    });
</script> --}}

@endsection


