{{ __('profile.title') }}

@csrf @method('PUT') {{-- Profilbild --}}
@if ($user->getAvatarUrl()) {{ $user->name }} @else
{{ $user->getInitials() }}
@endif
{{ __('profile.max_picture_size') }} @error('profile_picture')

{{ $message }}

@enderror
@error('name')

{{ $message }}

@enderror

{{ $user->email }}

{{ __('profile.email_readonly') }}

@error('phone')

{{ $message }}

@enderror

{{ __('ui.enums.user_role.' . $user->role->value) }}

@php $flags = ['de' => "\u{1F1E9}\u{1F1EA}", 'en' => "\u{1F1EC}\u{1F1E7}", 'pl' => "\u{1F1F5}\u{1F1F1}", 'ru' => "\u{1F1F7}\u{1F1FA}", 'ar' => "\u{1F1F8}\u{1F1E6}", 'tr' => "\u{1F1F9}\u{1F1F7}"]; @endphp
@foreach ($flags as $code => $flag) @endforeach
@if ($user->getAvatarUrl())
@csrf @method('DELETE')
@endif
{{-- DSGVO-Einverständniserklärung --}} {{-- Zugeordnete Kinder --}} @if ($user->children->isNotEmpty())

{{ __('profile.my_children') }}

@foreach ($user->children as $child)
{{ $child->full_name }} @if ($child->pivot->relationship_label) ({{ $child->pivot->relationship_label }}) @endif
{{ $child->team->name ?? '—' }}
@endforeach
@endif {{-- Gefahrenzone: Account löschen (nur für Eltern) --}} @if ($user->role === \App\Enums\UserRole::User)

{{ __('profile.danger_zone') }}

{{ __('profile.delete_account_hint') }}

@php $orphanedChildren = $user->getOrphanedChildren(); @endphp @if ($orphanedChildren->isNotEmpty())

{{ __('profile.delete_warning_children') }}

    @foreach ($orphanedChildren as $child)
  • {{ $child->full_name }}
  • @endforeach
@endif
@csrf @method('DELETE')
@endif