@extends('app.shell') @section('body') @php /** @var \App\Models\Person|null $mePerson */ /** @var \Illuminate\Support\Collection $invitations */ /** @var \Illuminate\Support\Collection $groups */ /** @var float $overallBalance */ /** @var \App\Models\Profile|null $profile */ $locale = app()->getLocale(); $displayCurrency = request()->user()?->profile?->currency ?: 'USD'; $money = function (float $n) use ($displayCurrency, $locale): string { return \App\Support\Money::format((float) $n, $displayCurrency, $locale); }; @endphp

{{ __('Account') }}

{{ $mePerson?->avatar ?? '🙂' }}

{{ $profile?->display_name ?: (auth()->user()?->email ?? __('Account')) }}

@php $bal = (float) ($overallBalance ?? 0); $gc = (int) ($groups?->count() ?? 0); @endphp @if ($bal >= 0) {{ __('You’re owed across :count :groups · :amount', ['count' => $gc, 'groups' => $gc === 1 ? __('group') : __('groups'), 'amount' => $money(abs($bal))]) }} @else {{ __('You owe across :count :groups · :amount', ['count' => $gc, 'groups' => $gc === 1 ? __('group') : __('groups'), 'amount' => $money(abs($bal))]) }} @endif

{{ __('Edit') }}
{{-- Quick Settings (UI parity with React; wiring next) --}}
{{-- Notifications --}}

{{ __('Notifications') }}

{{ __('Loading…') }}

{{-- Language --}}
@csrf

{{ __('Language') }}

@php $loc = $profile?->locale ?: 'en'; @endphp
{{-- Currency --}}
@csrf

{{ __('Currency') }}

@php $cur = $profile?->currency ?: 'USD'; @endphp
{{-- Menu --}}
{{ __('Insights') }}
{{ __('Privacy') }}
{{ __('Help') }} @if (request()->user()?->isSuperAdmin())
{{ __('Admin panel') }} @endif

{{ __('Invitations') }}

@if ($invitations->count() === 0)

{{ __('No invitations yet.') }}

@else
@foreach ($invitations as $inv)

{{ $inv->invited_email }}

{{ $inv->status }} · {{ optional($inv->created_at)->toDayDateTimeString() }}

@if ($inv->status === 'pending')
@csrf
@endif
@endforeach
@endif

{{ __('Send invites from any group’s Members screen.') }}

@csrf
@endsection