@extends('layouts.admin') @section('page-title') {{ __('User Profile') }} @endsection @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @php // $logo = \App\Models\Utility::get_file('users-avatar/'); $logo = \App\Models\Utility::get_file('avatars/'); @endphp @section('content')
{{ __('Avatar') }}
@php $workspace = $currentWorkspace ? $currentWorkspace->id : 0; $user_id = $user ? $user->id : 0; @endphp
@csrf
avatar) src="{{ asset($logo . $user->avatar) }}" @else avatar="{{ $user->name }}" @endif id="myAvatar" alt="user-image" class="rounded-circle img-thumbnail img_hight w-25"> {{-- @if ($user->avatar != '')
@endif --}}

{{ __('Please upload a valid image file. Size of image should not be more than 2MB.') }} @error('avatar') {{ $message }} @enderror
@error('name') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@if ($user->avatar != '')
@csrf @method('DELETE')
@endif @auth('web') @endauth
{{ __('Change Password') }}
@csrf
@error('old_password') {{ $message }} @enderror
@error('password') {{ $message }} @enderror
@auth('client')
{{ __('Billing Details') }}
@csrf
{{ __('Please use with country code. (ex. +91)') }}
@endauth @if ($data['hasPermission'])
{{ __('Two Factor Authentication') }}

{{ __('Two factor authentication (2FA) strengthens access security by requiring two methods (also referred to as factors) to verify your identity. Two factor authentication protects against phishing, social engineering and password brute force attacks and secures your logins from attackers exploiting weak or stolen credentials.') }}

@if ($data['user']->google2fa_secret == null)
{{ csrf_field() }}
@elseif($data['user']->google2fa_enable == 0 && $data['user']->google2fa_secret != null) 1. {{ __('Install “Google Authentication App” on your') }} {{ __('IOS') }} {{ __('or') }} {{ __('Android phone.') }}
2. {{ __('Open the Google Authentication App and scan the below QR code.') }}
@php $f = finfo_open(); $mime_type = finfo_buffer($f, $data['google2fa_url'], FILEINFO_MIME_TYPE); @endphp @if ($mime_type == 'text/plain') @else {!! $data['google2fa_url'] !!} @endif

{{ __('Alternatively, you can use the code:') }} {{ $data['secret'] }}.
3. {{ __('Enter the 6-digit Google Authentication code from the app') }}

{{ csrf_field() }}
@elseif($data['user']->google2fa_enable == 1 && $data['user']->google2fa_secret != null)
{{ __('2FA is currently') }} {{ __('Enabled') }} {{ __('on your account.') }}

{{ __('If you are looking to disable Two Factor Authentication. Please confirm your password and Click Disable 2FA Button.') }}

{{ csrf_field() }}
@if ($errors->has('current-password')) {{ $errors->first('current-password') }} @endif
@endif
@endif
@endsection @push('scripts') @endpush