<?php

$pageTitle = 'Kiểm duyệt nội dung - PET SPA';
$activeAdminPage = 'moderation';
require BASE_PATH . '/app/views/layouts/header.php';
require BASE_PATH . '/app/views/layouts/navbar.php';

$sections = [
    ['route' => 'admin/moderation/posts', 'icon' => 'bi-file-earmark-text', 'title' => 'Bài viết', 'text' => 'Ẩn/khôi phục bài viết đã xuất bản.'],
    ['route' => 'admin/moderation/gallery', 'icon' => 'bi-images', 'title' => 'Gallery', 'text' => 'Ẩn/hiện ảnh Gallery.']
];
?>

<main class="admin-area"><div class="container-fluid"><div class="row g-4">
    <div class="col-lg-3 col-xl-2"><?php require BASE_PATH . '/app/views/layouts/admin-sidebar.php'; ?></div>
    <div class="col-lg-9 col-xl-10">
        <h1 class="h3 mb-1">Kiểm duyệt nội dung</h1>
        <p class="text-muted mb-4">Admin chỉ điều chỉnh trạng thái hiển thị, không thay thế Owner CRUD.</p>
        <div class="row g-3">
            <?php foreach ($sections as $section): ?>
                <div class="col-md-6 col-xl-3"><a class="card h-100 text-decoration-none text-dark" href="<?= BASE_URL ?>/?url=<?= htmlspecialchars($section['route']) ?>"><div class="card-body"><i class="bi <?= htmlspecialchars($section['icon']) ?> fs-3"></i><h2 class="h5 mt-3"><?= htmlspecialchars($section['title']) ?></h2><p class="text-muted mb-0 small"><?= htmlspecialchars($section['text']) ?></p></div></a></div>
            <?php endforeach; ?>
        </div>
    </div>
</div></div></main>

<?php require BASE_PATH . '/app/views/layouts/footer.php'; ?>
