@php $user = auth()->user(); @endphp {{-- Page title --}}

{{ __('My Profile') }}

{{ __('Manage your account details and security.') }}

{{-- ─── LEFT: Basic info + avatar ─── --}}
{{ __('Basic Information') }}
{{-- Avatar upload zone --}}

{{ __('Profile photo') }}

{{ __('Auto-generated from initials. Upload a photo to personalise your account.') }}

{{ __('Custom photo active.') }}

{{-- Crop Modal --}}
{{ __('Crop your photo') }}

{{ __('Drag to reposition · Scroll to zoom') }}

{{-- First / Last name --}}
@error('firstName')

{{ $message }}

@enderror
{{-- Email + Timezone --}}
@error('timezone')

{{ $message }}

@enderror
{{-- ─── RIGHT: Password + Account settings ─── --}}
{{-- Change Password --}}
{{ __('Change Password') }}
{{ __('Choose a strong password with at least :count characters.', ['count' => (int) \App\Models\Setting::get('password_min_length', 8)]) }}
{{-- Row 1: Current | New --}}
@error('currentPassword')

{{ $message }}

@enderror
@error('newPassword')

{{ $message }}

@enderror
{{-- Row 2: Confirm | (button aligned) --}}
{{-- Account Settings --}}
{{ __('Account Settings') }}
{{-- Currency --}}
@error('currency')

{{ $message }}

@enderror

{{ __('Prices are shown in this currency for display only.') }}

{{-- Two-Factor Authentication --}}

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

{{ $twoFactorEnabled ? __('Enabled') : __('Not enabled') }}

@if ($twoFactorEnabled)
@elseif (! $showing2fa)
@endif @error('twoFaPassword')

{{ $message }}

@enderror
{{-- Enrolment panel --}} @if ($showing2fa && ! $twoFactorEnabled)

{{ __('Scan this QR with your authenticator app (Google Authenticator, Authy…), then enter the 6-digit code it shows.') }}

@if ($qrSvg)
{!! $qrSvg !!}
@endif

{{ __('Or enter this key manually:') }}

{{ $twoFaSecret }}

@if (! empty($recoveryCodes))

{{ __('Save these recovery codes — each works once if you lose your phone:') }}

@foreach ($recoveryCodes as $rc)
{{ $rc }}
@endforeach
@endif
@error('twoFaCode')

{{ $message }}

@enderror
@endif {{-- API Key --}}

{{ __('API Access') }}

{{ __('Manage your API key for third-party integrations.') }}

{{ __('Manage') }} →