<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-3" class="table style-3  table-hover">
                    <thead>
                        <tr>
                            <th class="text-center">No</th>
                            <th class="text-center">Keterangan</th>
                            <th class="text-center">Nominal</th>
                            <th class="text-center">Status</th>
                            <th class="text-center">Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $a = 1; ?>
                        <?php foreach ($detail_gaji as $Detail_gaji) : ?>
                        <tr>
                            <td class="text-center">
                                <?= $a; ?>
                            </td>
                            <td class="text-left">
                                <?= $Detail_gaji->ket_gaji ?>
                            </td>
                            <td class="text-right">
                                Rp <?= number_format($Detail_gaji->nominal, 0, ',', '.') ?>,-
                            </td>
                            <td class="text-center">
                                <?php
                                    if ($Detail_gaji->status == 'TAMBAH') : ?>
                                <span class="shadow-none badge badge-success">Bonus / Reward</span>
                                <?php elseif ($Detail_gaji->status == 'NETRAL') : ?>
                                <span class="shadow-none badge badge-warning">Beban Perusahaan</span>
                                <?php else : ?>
                                <span class="shadow-none badge badge-danger">Potongan Gaji</span>
                                <?php endif;
                                    ?>
                            </td>
                            <td class="text-center">
                                <?php if ($gaji['sts_gaji'] == 'PROSES') : ?>
                                <a href="javascript:void(0);" class="btn btn-primary btn-sm" id="detail_gaji"
                                    data-target="#gaji_detail" class="bs-tooltip" data-toggle="modal"
                                    data-gaji_id="<?= $Detail_gaji->gaji_id ?>" data-detail_id="<?= $Detail_gaji->id ?>"
                                    data-ket_gaji="<?= $Detail_gaji->ket_gaji ?>"
                                    data-nominal="<?= $Detail_gaji->nominal ?>"
                                    data-status="<?= $Detail_gaji->status ?>">Detail</a>
                                <?php endif;  ?>
                            </td>
                        </tr>
                        <?php $a++; ?>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>