<%- include('../partials/admin-header') %>
<h1>仪表盘</h1>
<div class="stats">
  <div class="stat-card"><div class="num"><%= stats.merchants %></div><div class="label">商家</div></div>
  <div class="stat-card"><div class="num"><%= stats.products %></div><div class="label">产品</div></div>
  <div class="stat-card"><div class="num"><%= stats.channels %></div><div class="label">TG 频道</div></div>
  <div class="stat-card"><div class="num"><%= stats.tasks %></div><div class="label">监控任务</div></div>
  <div class="stat-card"><div class="num"><%= stats.recentLogs %></div><div class="label">24h 检测</div></div>
</div>
<p style="color:#888; font-size:14px; margin-bottom:20px;">这是 VPS补货监控 的管理后台。从导航栏进入各模块管理数据。</p>

<div class="form-card">
  <h2>当前推送文案预览</h2>
  <% if (preview) { %>
    <pre class="preview-box"><%= preview %></pre>
  <% } else { %>
    <p class="muted">还没有产品数据，先去「产品」里添加一条。</p>
  <% } %>
</div>
<%- include('../partials/footer') %>
