<?php use function App\Core\e; $section = 'sosyal-kayitlar'; ?>
<div class="panel zpanel zpanel-app">
    <?php require BASE_PATH . '/app/Views/zpanel/_sidebar.php'; ?>
    <section class="panel-body zpanel-main">
        <div class="zpanel-head"><div><p class="eyebrow">ZPanel</p><h1>Kullanici Engel/Arkadaslik Kayitlari</h1><p class="muted">Sadece goruntuleme MVP. Admin mudahalesi TODO.</p></div></div>
        <div class="zpanel-grid two">
            <section class="zpanel-card"><div class="zpanel-card-head"><h2>Arkadaslik kayitlari</h2></div><div class="table-scroll"><table class="zpanel-table compact"><thead><tr><th>Requester</th><th>Receiver</th><th>Status</th><th>Tarih</th></tr></thead><tbody><?php foreach (($friendships ?? []) as $row): ?><tr><td><?= e($row['requester_username'] ?? '-') ?></td><td><?= e($row['receiver_username'] ?? '-') ?></td><td><?= e($row['status'] ?? '-') ?></td><td><?= e($row['created_at'] ?? '') ?></td></tr><?php endforeach; ?><?php if (empty($friendships)): ?><tr><td colspan="4">Kayit yok.</td></tr><?php endif; ?></tbody></table></div></section>
            <section class="zpanel-card"><div class="zpanel-card-head"><h2>Engellenen kullanicilar</h2></div><div class="table-scroll"><table class="zpanel-table compact"><thead><tr><th>Engelleyen</th><th>Engellenen</th><th>Tarih</th></tr></thead><tbody><?php foreach (($blocks ?? []) as $row): ?><tr><td><?= e($row['blocker_username'] ?? '-') ?></td><td><?= e($row['blocked_username'] ?? '-') ?></td><td><?= e($row['created_at'] ?? '') ?></td></tr><?php endforeach; ?><?php if (empty($blocks)): ?><tr><td colspan="3">Kayit yok.</td></tr><?php endif; ?></tbody></table></div></section>
        </div>
    </section>
</div>
