<?php
foreach ($data as $key) {
?>
    <div class="card card-rounded card-abu">
        <div class="card-header">
            <h4 class="card-title" id="heading-labels">
                <div class="row">
                    <div class="col-md-12">
                        <i class="fa fa-building-o"></i> <?= $this->fungsi->status_pekerjaan($key->status) ?>
                    </div>
                </div>
                <div class="row form-detail-karyawan">
                    <div class="col-md-12 text-right">
                        <a href="#" class="btn btn_edit_pekerjaan btn-outline-secondary round" id="<?= md5($key->id_karir_pekerjaan) ?>"> <i class="fa fa-pencil"></i> Edit Data</a>
                        <a href="#" class="btn btn_delete_pekerjaan btn-outline-secondary round" id="<?= md5($key->id_karir_pekerjaan) ?>"> <i class="fa fa-trash"></i> <?= ucwords(strtolower($this->lang->line('hapus'))) ?> Data</a>
                    </div>
                </div>
            </h4>
        </div>
        <div class="card-body">
            <div class="row form-detail-karyawan">
                <div class="col-md-6">
                    <fieldset class="form-group">
                        <label><?= $this->lang->line('nomor_surat_keputusan') ?></label>
                        <p class="form-control-static"><?= $key->nomor_surat_keputusan ?></p>
                    </fieldset>
                </div>
                <div class="col-md-6">
                    <fieldset class="form-group">
                        <label>
                            <?= $this->lang->line('jabatan') ?>
                        </label>
                        <p class="form-control-static">
                            <?= isset($key) ? $key->kode_jabatan . " - " . $key->nama_jabatan : "" ?>
                        </p>
                    </fieldset>
                </div>
                <div class="col-md-6">
                    <fieldset class="form-group">
                        <label>
                            <?= $this->lang->line('cabang') ?>
                        </label>
                        <p class="form-control-static">
                            <?= isset($key->nama_cabang) ? $key->kode_cabang . " - " . $key->nama_cabang : "" ?>
                        </p>
                    </fieldset>
                </div>
                <div class="col-md-6">
                    <fieldset class="form-group">
                        <label>
                            <?= $this->lang->line('departemen') ?>
                        </label>
                        <p class="form-control-static">
                            <?= isset($key->nama_departemen) ? $key->kode_departemen . " - " . $key->nama_departemen : "" ?>
                        </p>
                    </fieldset>
                </div>
                <div class="col-md-6">
                    <fieldset class="form-group">
                        <label>
                            <?= $this->lang->line('tgl_mulai') ?>
                        </label>
                        <p class="form-control-static">
                            <?= $this->fungsi->tgl_indo($key->tgl_mulai) ?>
                        </p>
                    </fieldset>
                </div>
                <div class="col-md-6">
                    <fieldset class="form-group">
                        <label>
                            <?= $this->lang->line('tgl_berakhir') ?>
                        </label>
                        <p class="form-control-static">
                            <?= $this->fungsi->tgl_indo($key->tgl_berakhir) ?>
                        </p>
                    </fieldset>
                </div>
                <div class="col-md-12">
                    <fieldset class="form-group">
                        <label>
                            Status
                        </label>
                        <p class="form-control-static">
                            <?= $this->fungsi->status_pekerjaan($key->status) ?>
                        </p>
                    </fieldset>
                </div>
                <div class="col-md-12">
                    <fieldset class="form-group mb-0">
                        <label>
                            <!-- Deskripsi Kerjaan -->
                            <?= $this->lang->line('keterangan_status') ?>
                        </label>
                        <p class="form-control-static">
                            <?= $key->keterangan_status ?>
                        </p>
                    </fieldset>
                </div>
            </div>
        </div>
        <div class="card-footer">

        </div>
    </div>
<?php
}
?>
