<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-4" class="table style-4  table-hover">
                    <thead>
                        <tr>
                            <th class="text-center">No</th>
                            <th class="text-center">Aksi</th>
                            <th class="text-center">Kelompok</th>
                            <th class="text-center">Anggota</th>
                            <th class="text-center">Detail</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $no = 1; ?>
                        <?php foreach ($arisan_selesai as $Arisan_selesai) : ?>
                            <tr>
                                <td>
                                    <center><?= $no ?></center>
                                </td>
                                <td class="text-center">
                                    <a class="btn btn-primary btn-sm" target="_blank"
                                        href="<?= base_url('arisan/operasional/laporan_motor/'  . $this->encrypt->encode($Arisan_selesai->regist_arisan)) ?>"
                                        style="color: white;">Detail</a>
                                </td>
                                <td class="text-left">
                                    Arisan Motor <?= $Arisan_selesai->ket_arisan ?>
                                    ke-<?= $Arisan_selesai->nm_kelompok ?><br>
                                    Registrasi : <?= $Arisan_selesai->regist_arisan ?><br>
                                    Iuran /Bulan : Rp <?= $Arisan_selesai->tagihan_iuran ?> ,-<br>
                                    Tempo : <?= $Arisan_selesai->tempo ?> Bulan
                                </td>
                                <td class="text-left">
                                    Target : <?= $Arisan_selesai->target_anggota ?><br>
                                    Aktif : <?php
                                            foreach ($anggota_aktif as $Anggota_aktif) :
                                                if ($Arisan_selesai->regist_arisan == $Anggota_aktif->regist_arisan) :
                                                    $total = $Anggota_aktif->anggota_aktif;
                                                    echo $total . ' Anggota';
                                                endif;
                                            endforeach;
                                            ?> <br>
                                    Menang : <?php
                                                foreach ($anggota_menang as $Anggota_menang) :
                                                    if ($Arisan_selesai->regist_arisan == $Anggota_menang->regist_arisan) :
                                                        $total = $Anggota_menang->anggota_menang;
                                                        echo $total . ' Anggota';
                                                    endif;
                                                endforeach;
                                                ?> <br>
                                    Mundur : <?php
                                                foreach ($anggota_mundur as $Anggota_mundur) :
                                                    if ($Arisan_selesai->regist_arisan == $Anggota_mundur->regist_arisan) :
                                                        $total = $Anggota_mundur->anggota_mundur;
                                                        echo $total . ' Anggota';
                                                    endif;
                                                endforeach;
                                                ?><br>
                                </td>
                                <td class="text-left">
                                    Fee Admin : Rp <?= $Arisan_selesai->admin_arisan ?> ,-<br>
                                    Dana Kehilangan : Rp <?= $Arisan_selesai->dana_kehilangan ?> ,-<br>
                                    Harga Modal : Rp <?= $Arisan_selesai->hg_standar ?> ,-<br>
                                    Saldo Anggota : Rp <?= $Arisan_selesai->hg_standar ?> ,-<br>
                                </td>
                            </tr>
                            <?php $no++; ?>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>