

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('frontend.components.accordion', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <div class="card mp-20">
        <h2 class="title">Transaction Log</h2>
        <div class="table-responsive">
            <table class="table">
                <thead>
                    <tr>
                        <th>Date</th>
                        <th>Type</th>
                        <th>Amount</th>
                        <th>Balance Before</th>
                        <th>Balance After</th>
                        <th>Source</th>
                        <th>Reference</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tx): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><?php echo e($tx->created_at?->format('Y-m-d H:i')); ?></td>
                            <td><?php echo e(ucfirst($tx->type)); ?></td>
                            <td><?php echo e(number_format($tx->amount, 2)); ?></td>
                            <td><?php echo e(number_format($tx->balance_before, 2)); ?></td>
                            <td><?php echo e(number_format($tx->balance_after, 2)); ?></td>
                            <td><?php echo e($tx->source ?? '—'); ?></td>
                            <td><?php echo e($tx->reference ?? '—'); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr>
                            <td colspan="7" class="text-center">No transactions yet.</td>
                        </tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.layout.dash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\HP\Desktop\nbverify\mine\resources\views/frontend/user/log/transaction.blade.php ENDPATH**/ ?>