@if(!empty($account['bounceTransactions']))
    <div class="table-responsive" style="max-height: 400px; overflow-y: auto;">
        <table class="table table-bordered table-striped table-hover">
            <thead class="thead-dark">
                <tr>
                    <th>Date</th>
                    <th>Description</th>
                    <th>Category</th>
                    <th>Amount</th>
                    <th>Type</th>
                    <th>Balance</th>
                </tr>
            </thead>
            <tbody>
                @foreach($account['bounceTransactions'] as $transaction)
                    <tr>
                        <td>{{ isset($transaction['dateOfTransaction']) ? \Carbon\Carbon::parse($transaction['dateOfTransaction'])->format('d-M-Y') : '-' }}</td>
                        <td>{{ $transaction['narration'] ?? '-' }}</td>
                        <td>{{ $transaction['category'] ?? '-' }}</td>
                        <td style="font-family: sans-serif;">&#8377;{{ number_format($transaction['amount'] ?? 0, 2) }}</td>
                        <td><span class="badge badge-{{ ($transaction['type'] ?? '') == 'DEBIT' ? 'danger' : 'success' }}">{{ $transaction['type'] ?? '-' }}</span></td>
                        <td style="font-family: sans-serif;">&#8377;{{ number_format($transaction['balance'] ?? 0, 2) }}</td>
                    </tr>
                @endforeach
            </tbody>
        </table>
    </div>
@else
    <p class="text-muted">No bounce transactions found for this account.</p>
@endif