<div class="row layout-spacing">
    <div class="col-lg-12">
        <div class="statbox widget box box-shadow">
            <div class="widget-content widget-content-area">
                <h4 class="">( <?= $jml_tunggakanbayar ?> ) Tunggakan Sudah Bayar</h4>
                <table id="style-4" class="table style-4  table-hover">
                    <thead>
                        <tr>
                            <th class="text-center">Undian</th>
                            <th class="text-center">Identitas</th>
                            <th class="text-center">Alamat</th>
                            <th class="text-center">Status Bayar</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($tunggakan_bayar as $Sudah_bayar) : ?>
                            <tr>
                                <td class="text-center">
                                    <?= $Sudah_bayar->no_urut ?>
                                </td>
                                <td class="text-left">
                                    No Regist : <?= $Sudah_bayar->regist_undian ?><br>
                                    NIK : <?= $Sudah_bayar->nik ?><br>
                                    Nama : <?= $Sudah_bayar->nm_anggota ?><br>
                                    <?= $Sudah_bayar->no_hp ?>
                                </td>
                                <td class="text-left">
                                    <?= $Sudah_bayar->alamat_lengkap ?><br>
                                    RT. <?= $Sudah_bayar->nm_rt ?> RW. <?= $Sudah_bayar->nm_rw ?><br>
                                    Dk. <?= $Sudah_bayar->nm_desa ?>, Kec.
                                    <?= $Sudah_bayar->nm_kecamatan ?><br>
                                    Kab. Kudus, Kode Pos : <?= $Sudah_bayar->kd_pos ?>
                                </td>
                                <td class="text-center">
                                    <?php
                                    if ($Sudah_bayar->status_nota == 'PROSES_TUNGGAKAN') : ?>
                                        <span class="shadow-none badge badge-primary">VERIFIKASI</span>
                                    <?php else : ?>
                                        <span class="shadow-none badge badge-success">LUNAS</span>
                                    <?php endif;
                                    ?>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>