<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-20" class="table style-20  table-hover">
                    <thead>
                        <tr>
                            <th class="text-center">Tanggal Bayar</th>
                            <th class="text-center">Identitas</th>
                            <th class="text-center">Angsuran</th>
                            <th class="text-center">Transaksi</th>
                            <th class="text-center">Status Nota</th>
                            <th class="text-center">Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($transaksi_koperasi as $Transaksi_koperasi) : ?>
                            <tr>
                                <td class="text-center">
                                    <?= date('d', strtotime($Transaksi_koperasi->tgl_pembayaran)) ?>
                                    <?= $this->mycustom->bulanIndo(date('m', strtotime($Transaksi_koperasi->tgl_pembayaran))) ?>
                                    <?= date('Y', strtotime($Transaksi_koperasi->tgl_pembayaran)) ?> <br>
                                    <?= $Transaksi_koperasi->kd_nota ?>
                                </td>
                                <td class="text-left">
                                    NIK : <?= $Transaksi_koperasi->nik ?><br>
                                    Nama : <?= $Transaksi_koperasi->nm_anggota ?><br>
                                    No. HP : <?= $Transaksi_koperasi->no_hp ?>
                                </td>
                                <td class="text-left">
                                    Tagihan :
                                    <?= (number_format($Transaksi_koperasi->bsr_bayar, 0, ',', '.')) ?>,-<br>
                                    Angs Ke : <?= $Transaksi_koperasi->angs_ke ?><br>
                                    Sisa Angs : <?= ($Transaksi_koperasi->tempo_pinjaman - $Transaksi_koperasi->angs_ke) ?>
                                </td>
                                <td class="text-center">
                                    <?php if ($Transaksi_koperasi->status_kas == 'MASUK') : ?>
                                        <span class="shadow-none badge badge-primary">MASUK</span>
                                    <?php else : ?>
                                        <span class="shadow-none badge badge-danger">KELUAR</span>
                                    <?php endif; ?>
                                </td>
                                <td class="text-center">
                                    <?php if ($Transaksi_koperasi->status_nota == 'PROSES') : ?>
                                        <span class="shadow-none badge badge-danger">VERIFIKASI</span>
                                    <?php else : ?>
                                        <span class="shadow-none badge badge-success">TERIMA</span>
                                    <?php endif; ?>
                                </td>
                                <td class="text-center">
                                    <?php if ($Transaksi_koperasi->status_nota == 'PROSES') : ?>
                                        <a class="btn btn-primary btn-sm"
                                            href="<?= base_url('kasir/beranda/verifikasi_angsuran/' . $this->encrypt->encode($Transaksi_koperasi->kd_nota)) ?>"
                                            style="color: white;">Verifikasi</a>
                                    <?php endif; ?>
                                    <?php if ($Transaksi_koperasi->produk_id == 21) : ?>
                                        <a class="btn btn-primary btn-sm"
                                            href="<?= base_url('kasir/beranda/verifikasi_heboh/' . $this->encrypt->encode($Transaksi_koperasi->kd_nota)) ?>"
                                            style="color: white;">Transaksi_koperasi</a>
                                    <?php elseif ($Transaksi_koperasi->produk_id == 22) : ?>
                                        <a class="btn btn-primary btn-sm"
                                            href="<?= base_url('kasir/beranda/verifikasi_motor/' . $this->encrypt->encode($Transaksi_koperasi->kd_nota)) ?>"
                                            style="color: white;">Transaksi_koperasi</a>
                                    <?php endif; ?>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>