<?php
require_once __DIR__.'/../includes/functions.php';
require_once __DIR__.'/../includes/v292_admin_portal_helpers.php';
$admin=require_admin(); mj292_ensure_schema();
$adminTitle='Admin Action Queue'; $adminSubtitle='Only items needing admin attention. Normal workflow stays automated.';
$queue=mj292_action_queue();
include __DIR__.'/_header.php';
?>
<div class="alert alert-info"><b>Automation rule:</b> admin approves/rejects manual proof and wallet top-up only. After approval, invoice, receipt, wallet ledger, service activation, reports and notifications are handled by the system.</div>
<div class="row">
<?php foreach($queue as $q): ?>
  <div class="col-lg-6 mb-3"><a class="card mj-v292-card h-100 text-dark" href="<?=e($q[2])?>"><div class="card-body d-flex align-items-center justify-content-between"><div><h5 class="font-weight-bold mb-1"><i class="<?=e($q[3])?> text-<?=e($q[4])?> mr-2"></i><?=e($q[0])?></h5><p class="text-muted mb-0"><?=e($q[1])?></p></div><span class="badge badge-<?=e($q[4])?> badge-pill p-3"><?=e($q[5])?></span></div></a></div>
<?php endforeach; ?>
</div>
<?php include __DIR__.'/_footer.php'; ?>
