@extends('layouts.app', ['title' => 'Profile - Admin']) @section('content')
@if (session('status'))
@if (session('status')=='profile-information-updated') Profile has been updated. @endif @if (session('status')=='password-updated') Password has been updated. @endif @if (session('status')=='two-factor-authentication-disabled') Two factor authentication disabled. @endif @if (session('status')=='two-factor-authentication-enabled') Two factor authentication enabled. @endif @if (session('status')=='recovery-codes-generated') Recovery codes generated. @endif
@endif
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::twoFactorAuthentication()))

TWO-FACTOR AUTHENTICATION


@if(! auth()->user()->two_factor_secret) {{-- Enable 2FA --}}
@csrf
@else {{-- Disable 2FA --}}
@csrf @method('DELETE')
@if(session('status') == 'two-factor-authentication-enabled') {{-- Show SVG QR Code, After Enabling 2FA --}}
Otentikasi dua faktor sekarang diaktifkan. Pindai kode QR berikut menggunakan aplikasi pengautentikasi ponsel Anda.
{!! auth()->user()->twoFactorQrCodeSvg() !!}
@endif {{-- Show 2FA Recovery Codes --}}
Simpan recovery code ini dengan aman. Ini dapat digunakan untuk memulihkan akses ke akun Anda jika perangkat otentikasi dua faktor Anda hilang.
@foreach (json_decode(decrypt(auth()->user()->two_factor_recovery_codes), true) as $code)
{{ $code }}
@endforeach
{{-- Regenerate 2FA Recovery Codes --}}
@csrf
@endif
@endif

EDIT PROFILE


@csrf @method('PUT')

UPDATE PASSWORD


@csrf @method('PUT')
@endsection