<div class="tab-pane fade" id="tabs_tabungan" role="tabpanel" aria-labelledby="tabungan_tabs">
    <table id="style-22" class="table style-22  table-hover">
        <thead>
            <tr>
                <th class="text-center">Tanggal</th>
                <th class="text-center">Debit</th>
                <th class="text-center">Kredit</th>
                <th class="text-center">Keterangan</th>
                <th class="text-center">Aksi</th>
            </tr>
        </thead>
        <tbody>
            <?php $no = 1; ?>
            <?php foreach ($tabungan as $Data_tabungan) : ?>
                <tr>
                    <td class="text-center">
                        <?= date('d', strtotime($Data_tabungan->tgl_simpanan)) . ' ' . $this->mycustom->bulanIndo(date('m', strtotime($Data_tabungan->tgl_simpanan))) . ' ' . date('Y', strtotime($Data_tabungan->tgl_simpanan)) ?>
                    </td>
                    <td class="text-right">
                        <?php if ($Data_tabungan->status_simpanan == 'MASUK') : ?>
                            <?= number_format($Data_tabungan->besar_transaksi, 0, ',', '.') ?>,-<br>
                        <?php endif; ?>
                    </td>
                    <td class="text-right">
                        <?php if ($Data_tabungan->status_simpanan == 'KELUAR') : ?>
                            <?= number_format($Data_tabungan->besar_transaksi, 0, ',', '.') ?>,-<br>
                        <?php endif; ?>
                    </td>
                    <td>
                        <?= $Data_tabungan->ket_transaksi ?>
                    </td>
                    <td>
                        <a class="btn btn-danger btn-sm"
                            href="<?= base_url('kasir/identitas/tabungan_anggota/hapus/' . $this->encrypt->encode($Data_tabungan->id)) ?>"
                            style="color: white;">Hapus</a>
                    </td>
                </tr>
                <?php $no++; ?>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>