<div id="content" class="main-content">
    <div class="layout-px-spacing">
        <div class="row layout-top-spacing">
            <div class="col-lg-12">
                <blockquote class="blockquote media-object">
                    <div class="media">
                        <div class="media-body align-self-center">
                            <p class="d-inline">
                                ( <?= $jml_anggota ?> ) Anggota Arisan
                            </p>
                        </div>
                    </div>
                    <small class="text-left"><cite title="Source Title"><?= $this->mycustom->hariIndo(date('l', strtotime(date('Y-m-d')))) ?>,
                            <?= date('d', strtotime(date('Y-m-d')))  ?>
                            <?= $this->mycustom->bulanIndo(date('m', strtotime(date('Y-m-d'))))  ?>
                            <?= date('Y', strtotime(date('Y-m-d')))  ?></cite></small>
                </blockquote>
            </div>
        </div>
        <div class="row layout-spacing">
            <div class="col-lg-12">
                <div class="statbox widget box box-shadow">
                    <div class="widget-content widget-content-area">
                        <table id="style-3" class="table style-3  table-hover">
                            <thead>
                                <tr>
                                    <th class="text-center">No</th>
                                    <th class="text-center">Identitas</th>
                                    <th class="text-center">Alamat</th>
                                    <th class="text-center">Aksi</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $no = 1; ?>
                                <?php foreach ($anggota_arisan as $Anggota_arisan) : ?>
                                    <tr>
                                        <td class="text-left">
                                            <?= $no ?>
                                        </td>
                                        <td class="text-left">
                                            NIK : <?= $Anggota_arisan->nik ?><br>
                                            Nama : <?= $Anggota_arisan->nm_anggota ?><br>
                                            Nomor HP : <?= $Anggota_arisan->no_hp ?><br>
                                            <?php if ($Anggota_arisan->jk == 1) : ?>
                                                Laki-laki
                                            <?php else : ?>
                                                Perempuan
                                            <?php endif; ?>
                                        </td>
                                        <td class="text-left">
                                            <?= $Anggota_arisan->alamat_lengkap ?><br>
                                            RT. <?= $Anggota_arisan->nm_rt ?> RW. <?= $Anggota_arisan->nm_rw ?><br>
                                            Dk. <?= $Anggota_arisan->nm_desa ?>, Kec.
                                            <?= $Anggota_arisan->nm_kecamatan ?><br>
                                            <?= $Anggota_arisan->kot_kab ?> - <?= $Anggota_arisan->prov ?>
                                        </td>
                                        <td class="text-center">
                                            <a class="btn btn-primary btn-sm" href="<?= base_url('arisan/identitas/anggota/' . $this->encrypt->encode($Anggota_arisan->anggota_id)) ?>">Detail</a>
                                        </td>
                                    </tr>
                                    <?php $no++; ?>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>