@php $canEdit = (bool) auth()->user()?->hasPermission('accounting.edit'); $kindIcon = fn (string $kind) => match ($kind) { 'order' => 'shopping-bag', 'order_cost' => 'package', 'income' => 'plus-circle', default => 'receipt', }; @endphp
| Date | Description | Category | Amount | |
|---|---|---|---|---|
| {{ $row['date']->format('j M Y') }} |
{{ $row['title'] }}
@if($row['meta']){{ $row['meta'] }} @endif
|
{{ $row['category'] }} | {{ $sign === '-' ? '−' : '+' }}{{ $accounts->money($row['cents']) }} | @if($row['url']) Open @elseif($row['entry'] && $canEdit) @endif |
| {{ $empty }} | ||||