@php $fmt = app(\App\Services\Formatter::class); $money = fn ($value) => $fmt->money($value); @endphp
Show as table MonthCollectedPayments @forelse ($months as $row) {{ $row['label'] }} {{ $fmt->money($row['value']) }} {{ $row['meta'] }} @empty Nothing collected in this range. @endforelse
@if ($tenants === []) @else #ShopPaid in this periodShare @foreach ($tenants as $index => $row) {{ $index + 1 }} {{ $row['label'] }} {{ $fmt->money($row['value']) }} {{ $collected > 0 ? $fmt->percent($row['value'] / $collected * 100) : '—' }} @endforeach @endif