<?php
require_once __DIR__.'/../includes/functions.php';
require_once __DIR__.'/../includes/v292_admin_portal_helpers.php';
$admin=require_admin(); mj292_ensure_schema();
$adminTitle='Activation Checker'; $adminSubtitle='Check paid services that should already be active after payment approval.';
$checks=mj292_activation_checks(true);
include __DIR__.'/_header.php';
?>
<div class="alert alert-primary"><b>Rule:</b> Admin approves payment only. Renewal, sponsored, featured, extra listing slots, extra company slots and receipts should activate automatically after approval.</div>
<div class="card mj-v292-card"><div class="card-header"><h3 class="card-title"><i class="fas fa-bolt mr-2"></i>Activation Exceptions</h3></div><div class="card-body">
<?php if(!$checks): ?><div class="text-center text-success p-5"><i class="fas fa-check-circle fa-3x mb-3"></i><h4>All paid activation checks passed</h4></div><?php else: foreach($checks as $c): ?><a class="mj-v292-action" href="<?=e($c['url'])?>"><span><b><?=e($c['title'])?></b><br><small><?=e($c['message'])?></small></span><span class="badge badge-warning">Review</span></a><?php endforeach; endif; ?>
</div></div>
<?php include __DIR__.'/_footer.php'; ?>
