<div class="tab-pane fade" id="tabs_gaji" role="tabpanel" aria-labelledby="gaji_tabs">
    <table id="style-24" class="table style-24  table-hover">
        <a style="float: right;" class="btn btn-primary btn-sm" href="javascript:void(0);" data-toggle="modal"
            data-target="#tambahGajiKaryawan" style="color: white;">Tambah</a>
        <h4>Histori Slip Gaji</h4>
        <thead>
            <tr>
                <th class="text-center">No</th>
                <th class="text-center">Bulan Gaji</th>
                <th class="text-center">Rangkuman Gaji</th>
                <th class="text-center">Pembayaran</th>
                <th class="text-center">Detail</th>
            </tr>
        </thead>
        <tbody>
            <?php $no = 1; ?>
            <?php foreach ($gaji as $Gaji_karyawan) : ?>
            <tr>
                <td>
                    <center><?= $no ?></center>
                </td>
                <td class="text-right">
                    <?= $this->mycustom->bulanIndo(date('m', strtotime($Gaji_karyawan->tgl_gaji)))  ?>
                    <?= date('Y', strtotime($Gaji_karyawan->tgl_gaji))  ?>
                </td>
                <td class="text-left">
                    Pokok : <?= number_format($Gaji_karyawan->gaji_pokok, 0, ',', '.') ?>,- <br>
                    Bonus : <?= number_format($Gaji_karyawan->ttl_bonus, 0, ',', '.') ?>,-<br>
                    Potong : <?= number_format($Gaji_karyawan->ttl_potongan, 0, ',', '.') ?>,-<br>
                    Total : <?= number_format($Gaji_karyawan->ttl_gaji, 0, ',', '.') ?>,-
                </td>
                <td class="text-left">
                    <?php if ($identitas['nm_bank'] == null) : ?>
                    <center>
                        Pembayaran Tunai<br>
                    </center>
                    <?php else: ?>
                    Bank : <?= $identitas['nm_bank'] ?><br>
                    Nomor Rekening : <?= $identitas['norek'] ?><br>
                    Atas Nama : <?= $identitas['atas_nama'] ?><br>
                    <?php endif; ?>
                    <center>
                        <?php
                            if ($Gaji_karyawan->sts_gaji == 'PROSES') : ?>
                        <span class="shadow-none badge badge-danger">Gaji Proses</span>
                        <?php else : ?>
                        <span class="shadow-none badge badge-success">Selesai</span>
                        <?php endif;
                            ?>
                    </center>
                </td>
                <td class="text-center">
                    <a class="btn btn-primary btn-sm"
                        href="<?= base_url('keuangan/identitas/detail_gaji/' . $this->encrypt->encode($Gaji_karyawan->id)) ?>"
                        style="color: white;">Detail</a>
                </td>
            </tr>
            <?php $no++; ?>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>