<?php
require_once __DIR__.'/../includes/functions.php';
$admin = require_admin();
$adminTitle = 'Link Health';
$links = mj_v288_link_scan(dirname(__DIR__));
include __DIR__.'/_header.php';
?>

<div class="card"><div class="card-body"><h5>Internal Link / File Health</h5><p class="text-muted">This checks key public, user account and admin files so missing links do not become 404/500 errors.</p><div class="table-responsive"><table class="table table-striped"><thead><tr><th>File</th><th>Status</th></tr></thead><tbody><?php foreach($links as $l): ?><tr><td><?=e($l['file'])?></td><td><?=$l['exists']?'<span class="badge badge-success">Found</span>':'<span class="badge badge-danger">Missing</span>'?></td></tr><?php endforeach; ?></tbody></table></div></div></div>

<?php include __DIR__.'/_footer.php'; ?>
