This commit is contained in:
2025-12-10 21:20:56 +01:00
parent 9eddc2ba17
commit 330c5bad9d
11 changed files with 148 additions and 47 deletions

View File

@@ -0,0 +1,61 @@
<?php
$pageTitle = 'Email Template System Dashboard';
$pageId = 'dashboard';
$navActive = 'dashboard';
require __DIR__ . '/accountsetup_config.php';
require dirname(__DIR__) . '/../structure/layout_start.php';
?>
<main class="max-w-5xl mx-auto p-4 md:p-6 flex-1 w-full">
<section class="stat-grid" id="dashboardCounts">
<div class="stat-card">
<h4>Templates</h4>
<strong id="count-templates"></strong>
</div>
<div class="stat-card">
<h4>Sections</h4>
<strong id="count-sections"></strong>
</div>
<div class="stat-card">
<h4>Blocks</h4>
<strong id="count-blocks"></strong>
</div>
<div class="stat-card">
<h4>Snippets</h4>
<strong id="count-snippets"></strong>
</div>
</section>
<section class="section-card">
<div class="flex items-center justify-between mb-3">
<h3 class="font-semibold text-base text-slate-900">Aktivität</h3>
<button type="button" class="btn" id="btn-refresh">Aktualisieren</button>
</div>
<ul id="activityList" class="space-y-2 text-sm text-slate-600"></ul>
</section>
<section class="section-card">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-base text-slate-900">Nutzung & Speicher</h3>
<span class="text-xs text-slate-500">Letzte 30 Tage</span>
</div>
<div class="overflow-auto">
<table class="usage-table" id="usageTable">
<thead>
<tr>
<th>Datum</th>
<th>Aktionen</th>
<th>Templates veröffentlicht</th>
<th>Versandtests</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</section>
</main>
<div id="toast-root"></div>
<?php
tpl_add_script(app_asset_url('/assets/js/toast.js'));
tpl_add_script(app_asset_url('/assets/js/dashboard.js'), 'footer', false, false, '', null, true);
require dirname(__DIR__) . '/../structure/layout_end.php';