@props([ 't' => [], 'tone' => 'default', ]) @php $cat = \App\Support\CategoryCatalog::get($t['categoryId'] ?? 'other'); $type = (string) ($t['type'] ?? ''); $amount = (float) ($t['amount'] ?? 0); $isIncome = $type !== '' ? $type === 'income' : $amount > 0; @endphp
{{ $t['name'] }}
@if (! empty($t['isRecurring'])) @endif{{ $cat['name'] }}
{{ $isIncome ? '+' : '-' }}{{ \App\Support\Money::formatEur(abs($amount)) }}