<?php  if (!defined('DASHBOARD_ROOT')) { http_response_code(403); exit; } function renderProxyHealth(): string { $proxies=Database::fetchAll("SELECT node_id,wg_ip,status,last_heartbeat FROM nodes WHERE node_role IN('proxy','shield','filter')"); $html="<div class=\"proxy-health\"><h3>Proxy Health</h3>"; foreach($proxies as $p){$html.="<div class=\"proxy-card\"><span>".UI::e($p["node_id"])."</span>".UI::badge($p["status"],$p["status"]==="online"?"success":"danger")."<span>".UI::e($p["last_heartbeat"]??"")."</span></div>";} return $html."</div>"; } 