<?= $this->extend('admin/layouts/main') ?>
<?= $this->section('content') ?>

<div class="card">
    <div class="table-responsive">
        <table class="table mb-0 align-middle">
            <thead><tr><th>When</th><th>Module</th><th>Action</th></tr></thead>
            <tbody>
            <?php if (empty($entries)): ?>
                <tr><td colspan="3" class="text-center text-muted py-4">No activity recorded yet.</td></tr>
            <?php endif; ?>
            <?php foreach ($entries as $e): ?>
                <tr>
                    <td class="text-muted small text-nowrap"><?= esc(date('d M Y, g:i a', strtotime($e->created_at))) ?></td>
                    <td><span class="badge bg-light text-dark border"><?= esc($e->module) ?></span></td>
                    <td><?= esc($e->action) ?></td>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</div>

<?= $this->endSection() ?>
