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