<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-10" class="table style-10  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">Angsuran</th>
                            <th class="text-center">Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $no = 1; ?>
                        <?php foreach ($data_kerja as $Data_kerja) : ?>
                        <?php if ($Data_kerja->login_id == $data_id_login) : ?>
                        <tr>
                            <td>
                                <center><?= $no ?></center>
                            </td>
                            <td class="text-left">
                                Kontrak : <?= $Data_kerja->nik ?><br>
                                KTP : <?= $Data_kerja->kontrak_id ?><br>
                                Nama : <?= $Data_kerja->nm_anggota ?><br>
                                No Hp : <?= $Data_kerja->no_hp ?>
                            </td>
                            <td class="text-left">
                                <?= $Data_kerja->alamat_lengkap ?>,<br>
                                RT. <?= $Data_kerja->nm_rt ?> / RW. <?= $Data_kerja->nm_rw ?>, Ds.
                                <?= $Data_kerja->nm_desa ?><br>
                                Kec. <?= $Data_kerja->nm_kecamatan ?>, <?= $Data_kerja->kot_kab ?> <br>
                                <?= $Data_kerja->prov ?>
                            </td>
                            <td class="text-left">
                                <?= $this->mycustom->hariIndo(date('l', strtotime($Data_kerja->tgl_tempo))) ?>,
                                <?= date('d', strtotime($Data_kerja->tgl_tempo)) ?>
                                <?= $this->mycustom->bulanIndo(date('m', strtotime($Data_kerja->tgl_tempo))) ?>
                                <?= date('Y', strtotime($Data_kerja->tgl_tempo)) ?><br>
                                Angs : <?= $Data_kerja->angs_ke ?>/<?= $Data_kerja->tempo ?>
                                @<?php if ($Data_kerja->produk_id == 121) : echo 'Mingguan';
                                            elseif ($Data_kerja->produk_id == 122) : echo 'Dua Mingguan';
                                            elseif ($Data_kerja->produk_id == 123) : echo 'Bulanan';
                                            elseif ($Data_kerja->produk_id == 124) : echo 'Musiman';
                                            elseif ($Data_kerja->produk_id == 123) : echo 'Bulanan Anggota';
                                            elseif ($Data_kerja->produk_id == 123) : echo 'Bulanan Karyawan';
                                            endif; ?><br>
                                Bayar : <?= number_format($Data_kerja->bsr_bayar, 0, ',', '.') ?>,-
                            </td>
                            <td class="text-center">
                                <?php if ($Data_kerja->status_angsuran == 'PROSES') : ?>
                                <span class="shadow-none badge badge-warning">Verifikasi</span>
                                <?php else: ?>
                                <div class="btn-group mr-2">
                                    <button class="btn btn-primary btn-sm dropdown-toggle" style="width: 100px;"
                                        type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                        Pilihan <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
                                            viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
                                            stroke-linecap="round" stroke-linejoin="round"
                                            class="feather feather-chevron-down">
                                            <polyline points="6 9 12 15 18 9"></polyline>
                                        </svg>
                                    </button>
                                    <div class="dropdown-menu">
                                        <a href="https://wa.me/62<?= substr($Data_kerja->nomor_hp_asli, 1, 100) ?>"
                                            class="dropdown-item">Notifikasi</a>
                                        <a href="<?= base_url('kabag_marketing/beranda/angsuran/bayar/' . $this->encrypt->encode($Data_kerja->angsuran_id)) ?>"
                                            class="dropdown-item">Bayar</a>
                                    </div>
                                </div>
                                <?php endif; ?>
                            </td>
                        </tr>
                        <?php $no++; ?>
                        <?php endif; ?>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>