<link rel="stylesheet" href="/public/assets/css/axiom-studio.css">
<main class="axiom-studio">
<section class="axiom-studio-hero"><div><span class="axiom-studio-kicker">MODULE SDK V1</span><h2>Modules AXIOM</h2><p>Concevez les futurs modules dans un registre séparé avant génération et installation.</p></div><a class="studio-primary" href="/public/administration/axiom/modules/nouveau">＋ Nouveau module</a></section>
<?php if (!empty($_SESSION['flash_success'])): ?><div class="studio-alert success"><?= htmlspecialchars((string)$_SESSION['flash_success']); unset($_SESSION['flash_success']); ?></div><?php endif; ?>
<section class="axiom-studio-section"><div class="axiom-studio-section-head"><div><span class="axiom-studio-kicker">PROJETS STUDIO</span><h3>Définitions enregistrées</h3></div></div>
<div class="axiom-studio-module-grid">
<?php if (!$studioModules): ?><article><div><strong>Aucun projet</strong><code>studio.empty</code></div><small>Créez le premier module AXIOM depuis l'interface.</small></article><?php endif; ?>
<?php foreach ($studioModules as $module): ?><article><div><strong><?= htmlspecialchars((string)$module['name']) ?></strong><code><?= htmlspecialchars((string)$module['code']) ?></code></div><span class="module-version">v<?= htmlspecialchars((string)$module['version']) ?></span><small><?= htmlspecialchars((string)($module['description'] ?: 'Définition en préparation')) ?> · <?= htmlspecialchars((string)$module['status']) ?></small><a class="studio-secondary wide" href="/public/administration/axiom/entity-designer?module_id=<?= (int)$module['id'] ?>">Ouvrir l’Entity Designer →</a></article><?php endforeach; ?>
</div></section>
<section class="axiom-studio-section"><div class="axiom-studio-section-head"><div><span class="axiom-studio-kicker">RUNTIME</span><h3>Modules actuellement reconnus</h3></div></div><div class="axiom-studio-module-grid"><?php foreach ($runtimeModules as $module): ?><article><div><strong><?= htmlspecialchars((string)($module['name'] ?? $module['code'])) ?></strong><code><?= htmlspecialchars((string)$module['code']) ?></code></div><span class="module-version">v<?= htmlspecialchars((string)($module['version'] ?? '0.0.0')) ?></span><small><?= !empty($module['enabled']) ? 'Actif' : 'Inactif' ?></small></article><?php endforeach; ?></div></section>
</main>
