/home/kueuepay/public_html/resources/views/admin/sections/profile/2fa/google.blade.php
@extends('admin.layouts.master')

@push('css')
    <style>
        .fileholder {
            min-height: 280px !important;
        }

        .fileholder-files-view-wrp.accept-single-file .fileholder-single-file-view,.fileholder-files-view-wrp.fileholder-perview-single .fileholder-single-file-view{
            height: 246px !important;
        }
    </style>
@endpush

@section('page-title')
    @include('admin.components.page-title',['title' => __($page_title)])
@endsection

@section('breadcrumb')
    @include('admin.components.breadcrumb',['breadcrumbs' => [
        [
            'name'  => __("Dashboard"),
            'url'   => setRoute("admin.dashboard"),
        ]
    ], 'active' => __("Admin Profile")])
@endsection

@section('content')
    <div class="custom-card">
        <div class="card-header">
            <h6 class="title">{{ __("2FA Settings") }}</h6>
        </div>

        <div class="card-body">

            <div class="text-center">
                <div class="img-box twofa-qr-code">
                    <img src="{{ $qr_code }}" alt="qr-code">
                </div>
    
                <div class="secret-key mt-3">
                    <span class="fw-bold">{{ auth()->user()->two_factor_secret }}</span>
                    <div class="copy-text copy-btn" data-copy-text="{{ auth()->user()->two_factor_secret }}"><i class="las la-copy"></i></div>
                </div>
            </div>

            @if (auth()->user()->two_factor_status)
                <button type="button" class="mt-3 btn--base bg-warning w-100 active-deactive-btn" data-confirm-btn-text="Disable">{{ __("Disable Two Factor Authenticator") }}</button>
                <br>
                <div class="text--danger mt-3 text-center fs-6">{{ __("Don't forget to add this application in your google authentication app. Otherwise you can't login in your account.") }}</div>
            @else
                <button type="button" class="mt-3 btn--base w-100 active-deactive-btn" data-confirm-btn-text="Enable">{{ __("Enable Two Factor Authenticator") }}</button>
            @endif

        </div>
    </div>
@endsection

@push('script')
    <script>
        $(".active-deactive-btn").click(function(){
            var actionRoute =  "{{ setRoute('admin.profile.google.2fa.status.update') }}";
            var target      = "{{ auth()->user()->id }}";
            var btnText     = $(this).attr("data-confirm-btn-text");
            var message     = `{{ __("Are you sure to") }} <strong>${btnText}</strong> {{ __("2FA (Powered by google)?") }}`;
            openDeleteModal(actionRoute,target,message,btnText,"POST");
        });
    </script>
@endpush
Service
top

Our Services: Streamlining Your Payment Experience with Excellence

Discover how our services are designed to enhance your NFC Pay experience with convenience, security, and innovative solutions. From managing transactions to secure payments, we are dedicated to providing seamless support every step of the way.

Secure Card Storage

Easily save your credit and debit card details within our app for quick and secure transactions. This feature ensures that your payment information is protected with advanced encryption and can be used for future purchases with just a tap.

Effortless Money Transfers

Transfer funds quickly and securely between users with our streamlined money transfer service. Simply select the recipient, enter the amount, and authorize the transaction for instant, hassle-free transfers.

Merchant Account Setup

Activate your merchant account effortlessly to start receiving payments. Our intuitive setup process ensures that you can begin accepting transactions smoothly, helping your business thrive with minimal setup time.

Real-Time Transaction Tracking

Keep track of all your transactions in real time through our app. Monitor payment statuses, view transaction history, and manage your account efficiently, ensuring complete control over your financial activities.

Customer Support

Our dedicated support team is available to assist you with any queries or issues. Whether you need help with setting up your account or resolving transaction-related questions, we’re here to provide prompt and reliable assistance.