@extends('layouts.app') @section('title', __('Profile & security')) @section('page-title', __('Profile & security')) @section('page-subtitle', __('Manage how you sign in and how the app looks.')) @section('content')
{{-- Header card --}}
{{ auth()->user()->initials() }}

{{ auth()->user()->name }}

{{ auth()->user()->email }}

@switch(auth()->user()->role) @case(\App\Models\User::ROLE_SUPER_ADMIN) {{ __('Super Admin') }} @break @case(\App\Models\User::ROLE_TENANT_ADMIN) {{ __('Tenant Admin') }} @break @default {{ __('User') }} @endswitch @if(auth()->user()->tenant) {{ auth()->user()->tenant->name }} @endif
{{-- Profile information --}}

{{ __('Profile information') }}

{{ __('Update your name and email.') }}

@csrf @method('PUT')
@error('name', 'updateProfileInformation')

{{ $message }}

@enderror
@error('email', 'updateProfileInformation')

{{ $message }}

@enderror
{{-- Appearance --}}

{{ __('Appearance') }}

{{ __('Light, dark, or follow system.') }}

{{-- Password --}}

{{ __('Update password') }}

{{ __('Use a long, unique passphrase.') }}

@if(session('status') === 'password-updated')
{{ __('Password updated.') }}
@endif
@csrf @method('PUT')
@error('current_password', 'updatePassword')

{{ $message }}

@enderror
@error('password', 'updatePassword')

{{ $message }}

@enderror
{{-- Two-factor --}}

{{ __('Two-factor authentication') }}

{{ __('Add an extra layer of security with a TOTP app.') }}

@if(auth()->user()->two_factor_confirmed_at)
{{ __('Enabled') }}
@if(session('status') === 'two-factor-authentication-confirmed' || request()->has('show_qr'))
{{ __('Already enabled. Use your authenticator app to sign in.') }}
@endif
@csrf
@if(auth()->user()->two_factor_recovery_codes)
{{ __('View recovery codes') }}
{{ implode("\n", json_decode(decrypt(auth()->user()->two_factor_recovery_codes), true) ?? []) }}
@endif
@csrf @method('DELETE')
@else
{{ __('Disabled') }}
@csrf
@endif
@endsection