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

<div class="table-responsive">
    <table class="table table-hover align-middle mb-0">
        <thead>
            <tr>
                <th>Date</th>
                <th>Action</th>
                <th>User</th>
                <th>Details</th>
            </tr>
        </thead>
        <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $auditLogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr>
                    <td><?php echo e(app_datetime($log->created_at) ?? '-'); ?></td>
                    <td><span class="badge text-bg-light text-dark"><?php echo e(str_replace('_', ' ', ucfirst($log->action))); ?></span></td>
                    <td><?php echo e($log->user?->name ?? 'System'); ?></td>
                    <td><?php echo e($log->description ?: '-'); ?></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr><td colspan="4" class="text-center text-muted py-4">No audit activity 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-audit-trail.blade.php ENDPATH**/ ?>