<?php $auditHistory = $auditHistory ?? []; ?>
<?php if (empty($auditHistory)): ?>
    <p style="color:#6B7280;text-align:center;padding:20px;">لا يوجد سجل نشاط</p>
<?php else: ?>
    <?php foreach ($auditHistory as $entry): ?>
    <div style="display:flex;gap:10px;padding:8px 0;border-bottom:1px solid #F3F4F6;font-size:13px;">
        <div style="width:8px;height:8px;border-radius:50%;background:#0D7377;margin-top:5px;flex-shrink:0;"></div>
        <div><strong><?= e($entry['action']) ?></strong> — <?= e($entry['employee_name'] ?? 'النظام') ?><br><span style="color:#9CA3AF;font-size:11px;"><?= e($entry['created_at']) ?></span></div>
    </div>
    <?php endforeach; ?>
<?php endif; ?>