@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
@forelse($rows as $row) @empty @endforelse
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)
@csrf @method('DELETE')
@endif
{{ $empty }}
@if($rows->hasPages())
{{ $rows->links() }}
@endif