<div class="mf-card"><div class="mf-table-frame border-0"><table class="mf-table">
<thead><tr><th>Date</th><th>Transaction</th><th>Branch</th><th>Account</th><th>Type</th><th>Reference / Description</th><th class="text-right">Amount</th></tr></thead>
<tbody>
@forelse($rows as $transaction)
<tr>
    <td>{{ $transaction->transaction_date->format('d M Y H:i') }}</td>
    <td>{{ $transaction->transaction_number }}</td>
    <td>{{ $transaction->branch?->name ?? '—' }}</td>
    <td>{{ $transaction->account?->name ?? '—' }}</td>
    <td>{{ str($transaction->type)->replace('_',' ')->title() }}</td>
    <td>{{ $transaction->reference }}<div class="text-xs text-muted-foreground">{{ $transaction->description }}</div></td>
    <td class="text-right font-semibold">{{ number_format((float)$transaction->{$amountField},2) }}</td>
</tr>
@empty<tr><td colspan="7" class="text-center text-muted-foreground">No transactions in this period.</td></tr>@endforelse
</tbody></table></div></div>
