<?php use function App\Core\e; $section = 'yasakli-kelimeler'; ?>
<div class="panel zpanel zpanel-app" data-security-bot data-api-base="<?= e(App\Core\url('/api')) ?>" data-csrf="<?= e($csrfToken ?? '') ?>">
    <?php require BASE_PATH . '/app/Views/zpanel/_sidebar.php'; ?>
    <section class="panel-body zpanel-main">
        <div class="zpanel-head"><div><p class="eyebrow">Zalorox Shield</p><h1>Yasakli Kelimeler</h1><p class="muted">Yorum, mesaj ve icerik taramalarinda kullanilan kelime listesi.</p></div></div>
        <section class="zpanel-card">
            <form class="zpanel-form grid" data-security-create="/zpanel/forbidden-words/create">
                <input type="hidden" name="_csrf" value="<?= e($csrfToken ?? '') ?>">
                <label>Kelime<input name="word" required></label>
                <label>Severity<input name="severity" type="number" min="0" max="100" value="60"></label>
                <button class="pill primary">Ekle</button>
            </form>
        </section>
        <section class="zpanel-card"><div class="security-word-grid">
            <?php foreach (($forbiddenWords ?? []) as $word): ?><div class="word-chip"><span><?= e($word['word'] ?? '') ?></span><small><?= e((string) ($word['severity'] ?? 0)) ?></small><button data-security-delete="/zpanel/forbidden-words/delete" data-id="<?= e($word['id'] ?? '') ?>">Sil</button></div><?php endforeach; ?>
            <?php if (empty($forbiddenWords)): ?><p class="muted">Yasakli kelime yok.</p><?php endif; ?>
        </div></section>
    </section>
</div>
