@extends('app.shell') @section('body') @php /** @var \App\Models\SharedList $list */ @endphp
{{ __('Who’s in it') }}
{{ __('List') }}
{{ __('No items yet.') }}
@else @foreach ($list->items as $item){{ $item->item_text }}
{{ __('Receipt') }}
@php /** @var \App\Models\Expense|null $latestCheckout */ $checkout = $latestCheckout ?? null; $paidBy = $checkout?->paidBy; $locale = app()->getLocale(); $displayCurrency = request()->user()?->profile?->currency ?: ($checkout?->currency ?: 'USD'); $members = $list->members->values(); $n = max(1, $members->count()); $amount = $checkout ? (float) $checkout->amount : null; $cents = $amount !== null ? (int) round($amount * 100) : 0; $base = $n > 0 ? intdiv($cents, $n) : 0; $rem = $n > 0 ? ($cents - ($base * $n)) : 0; @endphpRECEIPT
{{ $list->emoji }} {{ $list->name }}
@if ($checkout) {{ \Illuminate\Support\Carbon::parse($checkout->expense_date)->format('m-d-Y') }} @else — @endif
{{ $fmtTotal['secondary'] }}
@endif @if ($list->receipt_path){{ __('Notes') }}