<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <title>Daftar Kos</title>
</head>
<body>
    <h2>Daftar Kos Anda</h2>

    <?php if ($kos_list): ?>
        <ul>
            <?php foreach ($kos_list as $kos): ?>
                <li><?= $kos->nama_kos ?> — <?= $kos->alamat ?> (<?= $kos->jumlah_kamar ?> kamar)</li>
            <?php endforeach; ?>
        </ul>
    <?php else: ?>
        <p>Belum ada kos terdaftar.</p>
    <?php endif; ?>

    <a href="<?= site_url('admin/kos/tambah') ?>">Tambah Kos Baru</a>
</body>
</html>
