@extends('layouts.app', ['title' => __tr('User Profile')]) @section('content') @include('users.partials.header', [ 'title' => __tr('Your Profile') . ' '. auth()->user()->name, 'description' => '', 'class' => 'col-lg-7' ])

{{ __tr('User Information') }}


{{-- MOBILE NUMBER --}}
{{__tr("Mobile number should be with country code without 0 or +")}}
{{-- /MOBILE NUMBER --}}

{{ __tr('Password') }}


@if (session('password_status')) @endif
@if ($errors->has('old_password')) {{ $errors->first('old_password') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif

{{ __tr('Two Factor Authentication') }}


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

{{ __tr('Click the button below to display the QR code and activate Two-Factor Authentication.') }}

@endif
@csrf @if (!auth()->user()->two_factor_secret) @if (isDemo() and isDemoVendorAccount())
{{ __tr('Two Factor Auth feature is disabled in demo account.') }}
@else @endif @else
{{-- Button for disable 2FA --}} {{-- /Button for disable 2FA --}}
@method('DELETE')
@if(auth()->user()->two_factor_confirmed_at)

{{ __tr('Two Factor Auth has been setup and activated on __activatedAt__', [ '__activatedAt__' => formatDateTime(auth()->user()->two_factor_confirmed_at) ]) }}

@endif @if(!auth()->user()->two_factor_confirmed_at)
{{ __tr('Step 1 - Scan QR Code') }}

{!! __tr('Scan this QR code to set up your account using your preferred authenticator app. Popular choices include __googleAuthenticator__, __microsoftAuthenticator__ and __authy__.', [ '__googleAuthenticator__' => ''. __tr('Google Authenticator') .'', '__microsoftAuthenticator__' => ''. __tr('Microsoft Authenticator') .'', '__authy__' => ''. __tr('Authy') .'' ]) !!}

{{-- 2FA QR Code --}}
{!! $qrCodeSvg !!}
{{-- /2FA QR Code --}} {{-- QR Code Secret Code --}}

{{ decrypt(auth()->user()->two_factor_secret) }}

{{-- /QR Code Secret Code --}}
@if(!auth()->user()->two_factor_confirmed_at)
{{ __tr('Step 2 - Activate') }}

{{ __tr('Once you scan with 2FA app, you need activate it') }}

{{ __tr('Activate') }}
@endif
@endif

{{ __tr('Write down following recovery codes, in case if you loose access to device app etc.') }}

{{ __tr('Recovery Codes') }} @php $recoveryCodes = (array) auth()->user()->recoveryCodes(); @endphp
    @foreach($recoveryCodes as $code)
  • {{ $code }}
  • @endforeach
@endif
@endsection {{-- Modal Body --}}
{{-- /Modal Body --}}
@push('appScripts') @endpush