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