{{ __('admin.users_title') }}

@foreach ($users as $user) @endforeach
{{ __('ui.name') }} @if ($sort === 'name') @if ($direction === 'asc') @else @endif @endif {{ __('ui.email') }} @if ($sort === 'email') @if ($direction === 'asc') @else @endif @endif {{ __('admin.phone') }} {{ __('ui.role') }} @if ($sort === 'role') @if ($direction === 'asc') @else @endif @endif {{ __('admin.children') }} {{ __('admin.dsgvo_short') }} {{ __('admin.status') }} @if ($sort === 'is_active') @if ($direction === 'asc') @else @endif @endif {{ __('admin.actions') }}
{{ $user->name }}
{{ $user->email }} @if ($user->phone) {{ $user->phone }} @else @endif @if ($user->id !== auth()->id())
@csrf @method('PUT')
@else {{ __('ui.enums.user_role.' . $user->role->value) }} {{ __('admin.you_suffix') }} @endif
@foreach ($user->children as $child) {{ $child->first_name }}@if (!$loop->last), @endif @endforeach @if ($user->children->isEmpty()) @endif @if ($user->isDsgvoConfirmed()) @elseif ($user->hasDsgvoConsent()) ! @else @endif {{ $user->last_login_at ? $user->last_login_at->diffForHumans() : __('admin.never') }} @if ($user->is_active) {{ __('admin.active') }} @else {{ __('admin.deactivated_label') }} @endif {{ __('admin.edit') }}
{{ $users->links() }}
{{-- Papierkorb --}} @if ($trashedUsers->isNotEmpty())

{{ __('admin.trash') }}

@foreach ($trashedUsers as $user) @endforeach
{{ __('ui.name') }} {{ __('ui.email') }} {{ __('admin.deleted_at') }} {{ __('admin.actions') }}
{{ $user->name }}
{{ $user->email }} {{ $user->deleted_at->diffForHumans() }}
@csrf @method('PUT')
@endif