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

{{ $space->name }}

{{ $space->id }}

Owner {{ $creator?->email ?? 'Unknown' }} · Created {{ optional($space->created_at)->toDayDateTimeString() }}

@foreach ([ ['label' => 'Members', 'value' => $members->count()], ['label' => 'People', 'value' => $people->count()], ['label' => 'Groups', 'value' => $groups->count()], ['label' => 'Shared lists', 'value' => $sharedLists->count()], ['label' => 'Shared purchases', 'value' => $sharedPurchases->count()], ] as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

@endforeach

Members

@foreach ($members as $member)

{{ $member->display_name ?: $member->name }}

@if ($member->is_super_admin) Admin @endif

{{ $member->email }}

{{ $member->role }} · Joined {{ \Illuminate\Support\Carbon::parse($member->created_at)->toDayDateTimeString() }}

@endforeach

People and invitations

@foreach ($people as $person)

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

{{ $person->email ?: 'No email' }} · Auth user {{ $person->auth_user_id ?: 'none' }}

@endforeach @foreach ($invitations as $invitation)

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

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

@endforeach

Groups, shared lists, and purchases

@foreach ($groups as $group)

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

Group · {{ $group->members_count }} members · {{ $group->currency }}

@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 expenses and activity

@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
@endsection