@extends('admin.shell') @section('body')
Back to users

{{ $managedUser->profile?->display_name ?: $managedUser->name }}

@if ($managedUser->isSuperAdmin()) Super admin @endif

{{ $managedUser->email }}

@csrf
@csrf @method('PATCH')
@csrf @method('DELETE')
@if ($errors->any())
{{ $errors->first() }}
@endif

Joined

{{ optional($managedUser->created_at)->toDayDateTimeString() ?: 'Unknown' }}

Profile

{{ $managedUser->profile?->display_name ?: 'Not set' }}

Locale {{ $managedUser->profile?->locale ?: 'en' }} · Currency {{ $managedUser->profile?->currency ?: 'USD' }}

Spaces

{{ $spaces->count() }}

Push devices

{{ $pushSubscriptions->count() }}

Spaces and personas

@forelse ($spaces as $space)

{{ $space->name }}

{{ $space->id }}

@empty

No spaces linked to this user yet.

@endforelse @forelse ($people as $person)

{{ $person->avatar }} {{ $person->name ?: 'Unnamed person' }}

{{ $person->email ?: 'No email' }} · Space {{ $person->space_id }}

@empty

No person records attached to this user.

@endforelse

Connected records

@foreach ([ ['label' => 'Groups', 'value' => $groups->count()], ['label' => 'Shared lists', 'value' => $sharedLists->count()], ['label' => 'Shared purchases', 'value' => $sharedPurchases->count()], ['label' => 'Expenses paid', 'value' => $expenses->count()], ['label' => 'Activities', 'value' => $activities->count()], ['label' => 'Invitations', 'value' => $invitations->count()], ] as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

@endforeach

Groups, lists, and purchases

@foreach ($groups as $group)

{{ $group->emoji }} {{ $group->name }}

Group · {{ $group->members_count }} members · Space {{ $group->space_id }}

@endforeach @foreach ($sharedLists as $list)

{{ $list->emoji }} {{ $list->name }}

Shared list · {{ $list->members_count }} members · {{ $list->items_count }} items

@endforeach @foreach ($sharedPurchases as $purchase)

{{ $purchase->emoji }} {{ $purchase->name }}

Shared purchase · {{ $purchase->status }} · {{ $purchase->members_count }} members

@endforeach

Recent activity and billing

@foreach ($expenses as $expense)

{{ $expense->description }}

{{ number_format((float) $expense->amount, 2) }} {{ $expense->currency }} · {{ optional($expense->expense_date)->toDateString() }}

@endforeach @foreach ($activities as $activity)

{{ $activity->description }}

{{ $activity->activity_type }} · {{ optional($activity->activity_at)->toDayDateTimeString() }}

@endforeach @foreach ($invitations as $invitation)

{{ $invitation->invited_email ?: $invitation->invited_name }}

Invitation · {{ $invitation->status }} · Group {{ $invitation->group_id }}

@endforeach
@endsection