<div class="page-head">
    <div><h1>单页管理</h1><div class="desc">关于我们 / 服务优势 / 客户案例 / 荣誉资质</div></div>
</div>
<div class="admin-card">
    <table class="admin-table">
        <tr><th>标识</th><th>标题</th><th>模式</th><th>更新时间</th><th>操作</th></tr>
        <?php foreach ($pages as $p): ?>
            <?php $m = empty($p['mode']) ? 'fixed' : $p['mode']; ?>
            <tr>
                <td class="muted"><?php echo e($p['slug']); ?></td>
                <td><b><?php echo e($p['title']); ?></b></td>
                <td><span class="mode-badge <?php echo $m === 'builder' ? 'builder' : 'fixed'; ?>"><?php echo $m === 'builder' ? '可视化编辑' : '固定版面'; ?></span></td>
                <td class="muted"><?php echo e(format_date($p['updated_at'])); ?></td>
                <td><a class="btn-soft btn-sm" href="<?php echo site_url('admin/pages/edit/' . $p['id']); ?>">编辑</a></td>
            </tr>
        <?php endforeach; ?>
    </table>
    <style>
    .mode-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}
    .mode-badge.fixed{background:#f1f5f9;color:#475569}
    .mode-badge.builder{background:#e0f2fe;color:#0369a1}
    </style>
</div>
