#TX-{{ str_pad($transaction->id, 8, '0', STR_PAD_LEFT) }}
DATE
{{ $transaction->transaction_date->format('F d, Y') }}
CATEGORY
{{ $transaction->category?->name ?? ($type == 'transfer' ? 'Transfer' : '—') }}
@if($type == 'transfer')
FROM ACCOUNT
{{ $sourceAccount->account_name ?? 'N/A' }}
Amount Sent: {{ $sourceSymbol }} {{ number_format($sourceAmount, 2) }} ({{ $sourceCurrency }})
TO ACCOUNT
{{ $destinationAccount->account_name ?? 'N/A' }}
Amount Received: {{ $destinationSymbol }} {{ number_format($destinationAmount, 2) }} ({{ $destinationCurrency }})
@if($sourceCurrency != $destinationCurrency && $transaction->exchange_rate)
EXCHANGE RATE
1 {{ $sourceCurrency }} = {{ number_format($transaction->exchange_rate, 4) }} {{ $destinationCurrency }}
Converted: {{ $sourceSymbol }} {{ number_format($sourceAmount, 2) }} → {{ $destinationSymbol }} {{ number_format($destinationAmount, 2) }}
@endif
@else
ACCOUNT
{{ $transaction->financialAccount->account_name ?? 'N/A' }}
@endif
PROCESSED BY
{{ $user->full_name ?? $user->name ?? 'System' }}
@if($transaction->description)
DESCRIPTION / NOTES
{{ $transaction->description }}
@endif
TRANSACTION AMOUNT
{{ $displaySymbol }} {{ number_format($displayAmount, 2) }} {{ $displayCurrency }}