@php $u = auth()->user(); $initials = strtoupper(mb_substr($u->name, 0, 2)); $field = 'h-9 w-full rounded-md border border-line bg-inset px-3 font-sans text-sm text-ink placeholder:text-ink-4 focus:border-accent/40 focus:outline-none'; $label = 'mb-1 block font-mono text-[11px] uppercase tracking-wider text-ink-3'; $err = 'mt-1 flex items-center gap-1.5 font-mono text-[11px] text-offline'; $tabs = [ ['key' => 'profile', 'label' => 'Profil', 'icon' => 'settings'], ['key' => 'security', 'label' => 'Sicherheit', 'icon' => 'shield'], ]; @endphp
{{-- Identity header --}}
{{ $initials }}

Konto

{{ $u->name }}

{{ $u->email }}

Administrator $twoFactorEnabled, 'border-line text-ink-3' => ! $twoFactorEnabled, ])> {{ $twoFactorEnabled ? '2FA aktiv' : '2FA aus' }}
{{-- Section nav --}} {{-- Content --}}
@if ($tab === 'profile')
@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
Speichern
@else
@error('current_password')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror
Passwort ändern

{{ $twoFactorEnabled ? '2FA ist aktiv' : '2FA ist nicht eingerichtet' }}

{{ $twoFactorEnabled ? 'Der Login erfordert einen TOTP-Code.' : 'Empfohlen — schützt den Login mit einem zweiten Faktor.' }}

@if ($twoFactorEnabled) Deaktivieren @else Einrichten @endif
@endif