<div class="content-header">
    <div class="row align-items-center">
        <div class="content-header-left col-md-6 col-12 mb-md-0 mb-1">
            <h3 class="content-header-title"><?= $judul ?></h3>
            <div class="row breadcrumbs-top">
                <div class="breadcrumb-wrapper col-12">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">Informasi</a>
                        </li>
                        <li class="breadcrumb-item active"><?= $judul ?>
                        </li>
                    </ol>
                </div>
            </div>
        </div>
        <div class="content-header-right col-md-6 col-12">
            <div class="float-md-right">
                <a href="<?= route('informasi.gaji.home'); ?>">
                    <button type="button" class="btn_tambah btn btn-secondary">
                        <i class="fa fa-arrow-left"></i> KEMBALI
                    </button>
                </a>
            </div>
        </div>
    </div>
</div>

<div class="card card-rounded">
    <div class="card-content">
        <div class="card-body">
            <div class="row">
                <div class="col-md-2 text-bold-600"><label>Nomor Induk Karyawan</label></div>
                <div class="col-md-4"><label>: <?= ((isset($data))? $data->nik :'') ?></label></div>
                <div class="col-md-2 text-bold-600"><label>Cabang</label></div>
                <div class="col-md-4"><label>: <?= ((isset($data))? $data->kode_cabang.' - '.$data->nama_cabang :'') ?></label></div>
            </div>
            <div class="row">
                <div class="col-md-2 text-bold-600"><label>Nama Karyawan</label></div>
                <div class="col-md-4"><label>: <?= ((isset($data))? $data->nama_karyawan :'') ?></label></div>
                <div class="col-md-2 text-bold-600"><label>Departemen</label></div>
                <div class="col-md-4"><label>: <?= ((isset($data))? $data->kode_departemen.' - '.$data->nama_departemen :'') ?></label></div>
            </div>
            <div class="row">
                <div class="col-md-2 text-bold-600"><label>Periode Gaji</label></div>
                <div class="col-md-4"><label>: <?= ((isset($data))? $data->periode:'') ?></label></div>
                <div class="col-md-2 text-bold-600"><label>Jabatan</label></div>
                <div class="col-md-4"><label>: <?= ((isset($data))? $data->kode_jabatan.' - '.$data->nama_jabatan :'') ?></label></div>
            </div>
            <br>
            <br>
            <hr>
            <div class="row">
                <div class="col-md-4">
                    <div class="row">
                        <div class="col-md-12 text-bold-600 font-size-large">PENDAPATAN</div>
                    </div>
                    <hr>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Gaji Pokok</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->gaji_pokok,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Tunjangan Jabatan</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->t_jabatan,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Tunjangan Transport</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->t_transport,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Tunjangan Makan</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->t_makan,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Tunjangan Istri</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->t_istri,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Tunjangan Anak</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->t_anak,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Lembur</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->lembur,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Komisi</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->komisi,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Lain - Lain</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->t_lain,2,",",".") :'') ?></div>
                    </div>
                    <hr>
                    <div class="row mt-2 font-weight-bold" style="font-size:15px">
                        <div class="col-md-8">TOTAL PENADAPATAN</div>
                        <div class="col-md-4 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->ttl_penerimaan,2,",",".") :'') ?></div>
                    </div>
                    
                </div>
                <div class="col-md-4">
                    <div class="row">
                        <div class="col-md-12 text-bold-600 font-size-large">TUNJANGAN DIBIAYAI PERUSAHAAN</div>
                    </div>
                    <hr>
                    <div class="row mt-1">
                        <div class="col-md-8 ">BPJS Ketenagakerjaan</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->tbp_bpjstk,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">BPJS Kesehatan</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->tbp_bpjs_kesehatan,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Lain - Lain</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->tbp_lain,2,",",".") :'') ?></div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="row">
                        <div class="col-md-12 text-bold-600 font-size-large">POTONGAN</div>
                    </div>
                    <hr>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Absensi</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->p_absensi,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Keterlambatan</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->p_keterlambatan,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Koperasi</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->p_koperasi,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Asuransi Kesehatan</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->p_asuransi_kesehatan,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">BPJS Ketenagakerjaan</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->p_bpjs_tk,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">BPJS Kesehatan</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->p_bpjs_kesehatan,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1">
                        <div class="col-md-8 ">Lain - Lain</div>
                        <div class="col-md-4 text-bold-600 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->p_lain,2,",",".") :'') ?></div>
                    </div>
                    <hr>
                    <div class="row mt-2 font-weight-bold" style="font-size:15px">
                        <div class="col-md-8">TOTAL POTONGAN</div>
                        <div class="col-md-4 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->ttl_potongan,2,",",".") :'') ?></div>
                    </div>
                    <div class="row mt-1 font-weight-bold" style="font-size:15px">
                        <div class="col-md-8">GAJI DITERIMA</div>
                        <div class="col-md-4 text-right"><?= ((isset($data))? "<span class='pull-left'>Rp</span>".number_format($data->gaji_diterima,2,",",".") :'') ?></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>