<?php
echo '<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Customers</title><link rel="stylesheet" href="/assets/portal_style.css"></head><body>';
echo '<header><h2>Customers (Admin)</h2><a href="/admin/dashboard.php">Back</a></header>';
echo '<div id="adminCustomers"></div>';
echo '<script type="module">import {apiFetch} from "/assets/api_client.js"; async function load(){ const res=await apiFetch("customers/list.php"); console.log(res); document.getElementById("adminCustomers").innerText=JSON.stringify(res.data||[],null,2);} load();</script>';
echo '</body></html>';
