@extends('app.shell') @section('body') @php /** @var \Illuminate\Support\Collection $groups */ /** @var \App\Models\Person|null $mePerson */ $prefill = $group ?? null; $defaultGroupId = $prefill && $groups->firstWhere('id', $prefill) ? $prefill : ($groups->first()?->id ?? ''); $catKeys = ['groceries','food','transport','utilities','stay','fun','shopping','other']; $catEmoji = ['groceries'=>'🛒','food'=>'🍽️','transport'=>'🚕','utilities'=>'⚡','stay'=>'🏨','fun'=>'🎉','shopping'=>'🛍️','other'=>'📦']; @endphp @if ($groups->count() === 0)
{{ __('Create a group first.') }}
@else
@csrf

{{ __('Amount') }}

$

{{ __('Date') }}

{{ __('Group') }}

@foreach ($groups as $g) @endforeach

{{ __('Who paid') }}

{{ __('Category') }}

@foreach ($catKeys as $cat) @endforeach
{{ __('Split type defaults to Equal (more split modes coming next).') }}
@endif @endsection