<?php ($transactions = $transactions ?? collect()); ?>

<div class="table-responsive">
    <table class="table table-hover align-middle mb-0">
        <thead>
            <tr>
                <th>Date</th>
                <th>Transaction</th>
                <th>Reference</th>
                <th>Method</th>
                <th class="text-end">Amount</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr>
                    <td><?php echo e(app_datetime($transaction['date']) ?? '-'); ?></td>
                    <td>
                        <div class="fw-semibold"><?php echo e($transaction['category']); ?></div>
                        <div class="small text-muted"><?php echo e($transaction['description'] ?: '-'); ?></div>
                    </td>
                    <td><?php echo e($transaction['reference'] ?: '-'); ?></td>
                    <td><?php echo e(ucfirst(str_replace('_', ' ', $transaction['method'] ?: '-'))); ?></td>
                    <td class="text-end">
                        <span class="<?php echo e($transaction['direction'] === 'credit' ? 'text-success' : 'text-danger'); ?>">
                            <?php echo e($transaction['direction'] === 'credit' ? '+' : '-'); ?> <?php echo e($currency); ?> <?php echo e(number_format($transaction['amount'], 2)); ?>

                        </span>
                    </td>
                    <td><span class="badge text-bg-light text-dark"><?php echo e(ucfirst(str_replace('_', ' ', $transaction['status']))); ?></span></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr><td colspan="6" class="text-center text-muted py-4">No transactions yet.</td></tr>
            <?php endif; ?>
        </tbody>
    </table>
</div>
<?php /**PATH C:\Users\Polite hp\Documents\Codex\2026-05-08\build-a-complete-production-ready-saas\microfinance-saas\resources\views\tenant\partials\member-transaction-history.blade.php ENDPATH**/ ?>