<?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> 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>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>
							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>
							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>
							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>
							Tanggal 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>
							Tanggal Berakhir
						</label>
						<p class="form-control-static" >
							<?= $this->fungsi->tgl_indo($key->tgl_akhir) ?>
						</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
						</label>
						<p class="form-control-static" >
							<?= $key->keterangan_status ?>
						</p>
					</fieldset>
				</div>				
			</div>
		</div>
		<div class="card-footer">
			
		</div>
	</div>
<?php 
	} 
?>
