<div id="page-wrapper">
	<div class="main-page">
		<div class="forms">
			<div class=" form-grids row form-grids-right">
				<div class="widget-shadow " data-example-id="basic-forms"> 
					<div class="form-title">
						<h4>Detail Pegawai</h4>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12 grids-right widget-shadow">
				<br>
				<ul id="myTabs" class="nav nav-tabs" role="tablist">
					<li role="presentation" class="active">
						<a href="#personal" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="false">Personal</a>
					</li>
					<li role="presentation" class="">
						<a href="#kepegawaian" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true">Kepegawaian</a>
					</li>
					<li role="presentation" class="">
						<a href="#keluarga" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true">Keluarga</a>
					</li>
					<li role="presentation" class="">
						<a href="#pendidikan" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true">Pendidikan</a>
					</li>
					<li role="presentation" class="">
						<a href="#kesehatan" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true">Kesehatan</a>
					</li>
				</ul>
				<div id="myTabContent" class="tab-content">
					<div role="tabpanel" class="tab-pane fade active in" id="personal" aria-labelledby="home-tab">
						<br>
						<div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Nama</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: <?php echo ($pegawai->gelar_depan != NULL ? $pegawai->gelar_depan." " : "").$pegawai->nama.($pegawai->gelar_belakang != NULL ? " ".$pegawai->gelar_belakang : "");?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">NIP/NPP</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->no_pegawai == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->no_pegawai;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Alamat</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->alamat == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->alamat;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Nomor Telepon / HP</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->nohp == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->nohp;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Email</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->email == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->email;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Tempat, Tanggal Lahir</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->tempat_lahir == NULL)
										{
											$tempat = "-";
										}
										else
										{
											$tempat = $pegawai->tempat_lahir;
										}
										if($pegawai->tanggal_lahir == NULL)
										{
											$tanggal = "-";
										}
										else
										{
											$tanggal = $pegawai->tanggal_lahir;
										}
										
										echo $tempat.", ".$tanggal;
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Jenis Kelamin</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->jenkel == NULL)
										{
											echo "-";
										}
										else
										{
											if($pegawai->jenkel == "L")
											{
												echo "Laki-Laki";
											}
											else
											{
												echo "Perempuan";
											}
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Golongan Darah</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->gol_darah == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->gol_darah;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">File KTP</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->foto_ktp == NULL)
										{
											echo "-";
										}
										else
										{
											?>
												<a href="<?php echo base_url();?>assets/pegawai/docs/<?php echo $pegawai->foto_ktp;?>" download>Klik di sini untuk mendownload KTP Anda!</a>
											<?php
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">File KK</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->foto_kk == NULL)
										{
											echo "-";
										}
										else
										{
											?>
												<a href="<?php echo base_url();?>assets/pegawai/docs/<?php echo $pegawai->foto_kk;?>" download>Klik di sini untuk mendownload file KK Anda!</a>
											<?php
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">File Ijazah Terakhir</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->foto_ijazah_terakhir == NULL)
										{
											echo "-";
										}
										else
										{
											?>
												<a href="<?php echo base_url();?>assets/pegawai/docs/<?php echo $pegawai->foto_ijazah_terakhir;?>" download>Klik di sini untuk mendownload file KTP Ijazah Terakhir Anda!</a>
											<?php
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Lainnya</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->lain == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->lain;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-12">
							  <a href="<?php echo base_url();?>Admin/personalEdit/<?php echo $id_pegawai;?>" class="btn btn-md btn-primary pull-right">
								<i class="fa fa-pencil"></i> Ubah Data Personal
							  </a>
							</div><!-- col-4 -->
						</div><!-- row -->
					</div>
					<div role="tabpanel" class="tab-pane fade" id="kepegawaian" aria-labelledby="home-tab">
						<br>
						<div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Nama</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: <?php echo $pegawai->nama;?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">NIP/NPP</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->no_pegawai == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->no_pegawai;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Unit Kerja</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($kepegawaian == NULL)
										{
											echo "-";
										}
										else
										{
											echo $kepegawaian->unit_kerja;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Status Kepegawaian</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($kepegawaian == NULL)
										{
											echo "-";
										}
										else
										{
											echo $kepegawaian->status_kepegawaian;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Tahun Masuk</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($kepegawaian == NULL)
										{
											echo "-";
										}
										else
										{
											echo $kepegawaian->tahun_masuk;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">File SPK/SK</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($kepegawaian == NULL)
										{
											echo "-";
										}
										else
										{
											?>
												<a href="<?php echo base_url();?>assets/pegawai/docs/<?php echo $kepegawaian->foto_spksk;?>" download>Klik di sini untuk mendownload SPK/SK Anda!</a>
											<?php
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-12">
							  <a href="<?php echo base_url();?>Admin/pegawaiEdit/<?php echo $id_pegawai;?>" class="btn btn-md btn-primary pull-right">
								<i class="fa fa-pencil"></i> Ubah Data Kepegawaian
							  </a>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <br>
						  <hr>
						  <h3>Riwayat Jabatan</h3>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/jabatanAdd/<?php echo $id_pegawai;?>" class="btn btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Riwayat Jabatan
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							  <br>
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Unit</th>
								  <th>Jabatan</th>
								  <th>Tahun</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($jabatan == NULL)
									{
										?>
										<tr>
											<td colspan="5"><center>Tidak ada data jabatan.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($jabatan as $jb)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $jb['unit_kerja'];?></td>
											  <td><?php echo $jb['jabatan'];?></td>
											  <td><?php echo $jb['tahun'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/jabatanEdit/<?php echo $jb['id_jabatan'];?>/<?php echo $id_pegawai;?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/jabatanDelete/<?php echo $jb['id_jabatan'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus riwayat jabatan ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
						  <br>
						  <hr>
						  <h3>Riwayat SK</h3>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/riwayatSKAdd/<?php echo $id_pegawai;?>" class="btn btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Riwayat SK
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							  <br>
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Nomor SK</th>
								  <th>Tahun</th>
								  <th>Status Kepegawaian</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($riwayat_sk == NULL)
									{
										?>
										<tr>
											<td colspan="5"><center>Tidak ada riwayat SK.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($riwayat_sk as $rsk)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $rsk['nomor_sk'];?></td>
											  <td><?php echo $rsk['tahun'];?></td>
											  <td><?php echo $rsk['status_kepegawaian'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/riwayatSKEdit/<?php echo $rsk['id_riwayat_sk'];?>/<?php echo $id_pegawai;?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/riwayatSKDelete/<?php echo $rsk['id_riwayat_sk'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus riwayat SK ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
						  <br>
						  <hr>
						  <h3>Riwayat Nilai Pegawai</h3>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/nilaiAdd/<?php echo $id_pegawai;?>" class="btn btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Nilai Pegawai
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							  <br>
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Tahun</th>
								  <th>Nilai</th>
								  <th>Catatan</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($nilai_pegawai == NULL)
									{
										?>
										<tr>
											<td colspan="5"><center>Tidak ada nilai pegawai.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($nilai_pegawai as $np)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $np['tahun'];?></td>
											  <td><?php echo $np['nilai'];?></td>
											  <td><?php echo ($np['catatan'] != NULL ? $np['catatan'] : "-");?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/nilaiEdit/<?php echo $np['id_nilai_pegawai'];?>/<?php echo $id_pegawai;?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/nilaiDelete/<?php echo $np['id_nilai_pegawai'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus riwayat nilai pegawai ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
						  <br>
						  <hr>
						  <h3>Riwayat Pembinaan</h3>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/pembinaanAdd/<?php echo $id_pegawai;?>" class="btn btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Riwayat Pembinaan
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							  <br>
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Tahun</th>
								  <th>Nomor Surat</th>
								  <th>Keterangan</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($riwayat_pembinaan == NULL)
									{
										?>
										<tr>
											<td colspan="5"><center>Tidak ada riwayat pembinaan.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($riwayat_pembinaan as $rp)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $rp['tahun'];?></td>
											  <td><?php echo $rp['nomor_surat'];?></td>
											  <td><?php echo $rp['keterangan'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/pembinaanEdit/<?php echo $rp['id_riwayat_pembinaan'];?>/<?php echo $id_pegawai;?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/pembinaanDelete/<?php echo $rp['id_riwayat_pembinaan'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus riwayat pembinaan ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
						  <?php /**
						  <hr>
						  <br>
						  <h3>Riwayat Perubahan Gaji</h3>
						  <br>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/gajiAdd/<?php echo $id_pegawai;?>" class="btn btn-sm btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Riwayat Gaji
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>Perubahan Ke-</th>
								  <th>Gaji</th>
								  <th>Mulai Berlaku</th>
								  <th>Alasan Perubahan Gaji</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($gaji == NULL)
									{
										?>
										<tr>
											<td colspan="5"><center>Tidak ada gaji.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($gaji as $g)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td>Rp <?php echo number_format($g['gaji'],0,",",".");?></td>
											  <td><?php echo $g['mulai_berlaku'];?></td>
											  <td><?php echo $g['alasan_perubahan_gaji'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/editGaji/<?php echo $g['id_gaji'];?>" class="btn btn-warning">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/deleteGaji/<?php echo $g['id_gaji'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" onclick="return confirm('Apakah Anda ingin menghapus riwayat gaji ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
						  **/ ?>
					</div>
					<div role="tabpanel" class="tab-pane fade" id="keluarga" aria-labelledby="home-tab">
						<br>
						<div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Nama</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: <?php echo $pegawai->nama;?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">NIP/NPP</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->no_pegawai == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->no_pegawai;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						   <br>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/keluargaAdd/<?php echo $id_pegawai;?>" class="btn btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Anggota Keluarga
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							  <br>
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Nama</th>
								  <th>Hubungan</th>
								  <th>Profesi</th>
								  <th>Tanggal Lahir</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($keluarga == NULL)
									{
										?>
										<tr>
											<td colspan="6"><center>Tidak ada data keluarga.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($keluarga as $k)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $k['nama'];?></td>
											  <td><?php echo $k['hubungan'];?></td>
											  <td><?php echo $k['pekerjaan_suami_istri'];?></td>
											  <td><?php echo $k['tanggal_lahir'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/keluargaEdit/<?php echo $k['id_keluarga_pegawai'];?>/<?php echo $id_pegawai;?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/keluargaDelete/<?php echo $k['id_keluarga_pegawai'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus anggota keluarga ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
					</div>
					<div role="tabpanel" class="tab-pane fade" id="pendidikan" aria-labelledby="home-tab">
						<br>
						<div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Nama</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: <?php echo $pegawai->nama;?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">NIP/NPP</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->no_pegawai == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->no_pegawai;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
						  <br>
						  <br>
						  <h3>Riwayat Pendidikan</h3>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/pendidikanAdd/<?php echo $id_pegawai;?>" class="btn btn-sm btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Pendidikan
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Nama Satuan Pendidikan</th>
								  <th>Tahun Masuk</th>
								  <th>Tahun Lulus</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($pendidikan == NULL)
									{
										?>
										<tr>
											<td colspan="5"><center>Tidak ada riwayat pendidikan.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($pendidikan as $pd)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $pd['instansi'];?></td>
											  <td><?php echo $pd['tahun_masuk'];?></td>
											  <td><?php echo $pd['tahun_lulus'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/pendidikanEdit/<?php echo $pd['id_pendidikan'];?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/pendidikanDelete/<?php echo $pd['id_pendidikan'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus riwayat pendidikan ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
						  <br>
						  <br>
						  <br>
						  <br>
						  <h3>Riwayat Pelatihan</h3>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/pelatihanAdd/<?php echo $id_pegawai;?>" class="btn btn-sm btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Pelatihan
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Nama Pelatihan</th>
								  <th>Tahun</th>
								  <th>Sertifikat</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($pelatihan == NULL)
									{
										?>
										<tr>
											<td colspan="5"><center>Tidak ada riwayat pelatihan.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($pelatihan as $pl)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $pl['nama_pelatihan'];?></td>
											  <td><?php echo $pl['tahun'];?></td>
											  <td><?php echo $pl['sertifikat'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/pelatihanEdit/<?php echo $pl['id_pelatihan'];?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/pelatihanDelete/<?php echo $pl['id_pelatihan'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus riwayat pelatihan ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
						  <br>
						  <br>
						  <br>
						  <br>
						  <h3>Riwayat Prestasi</h3>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/prestasiAdd/<?php echo $id_pegawai;?>" class="btn btn-sm btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Prestasi
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Nama Kegiatan / Lomba / Kejuaraan</th>
								  <th>Prestasi</th>
								  <th>Tingkat</th>
								  <th>Tahun</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($prestasi == NULL)
									{
										?>
										<tr>
											<td colspan="6"><center>Tidak ada riwayat prestasi.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($prestasi as $pr)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $pr['kegiatan'];?></td>
											  <td><?php echo $pr['prestasi'];?></td>
											  <td><?php echo $pr['tingkat'];?></td>
											  <td><?php echo $pr['tahun'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/prestasiEdit/<?php echo $pr['id_prestasi'];?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/prestasiDelete/<?php echo $pr['id_prestasi'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus riwayat prestasi ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
					</div>
					<div role="tabpanel" class="tab-pane fade" id="kesehatan" aria-labelledby="home-tab">
						<br>
						<div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">Nama</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: <?php echo $pegawai->nama;?>
								</p>
							  </strong>
							</div><!-- col-4 -->
						  </div><!-- row -->
							<div class="row row-sm mg-b-20">
							<div class="col-lg-2">
							  <p class="mg-b-10">NIP/NPP</p>
							</div>
							<div class="col-lg-10">
							  <strong>
								<p>
									: 
									<?php
										if($pegawai->no_pegawai == NULL)
										{
											echo "-";
										}
										else
										{
											echo $pegawai->no_pegawai;
										}
									?>
								</p>
							  </strong>
							</div><!-- col-4 -->
							</div><!-- col-4 -->
						 <br>
						  <div class="table-responsive">
							<div class="row row-sm mg-b-20 ">
								<div class="col-lg-12 ">
								  <a href="<?php echo base_url();?>Admin/kesehatanAdd/<?php echo $id_pegawai;?>" class="btn btn-sm btn-success pull-right">
									<i class="fa fa-plus"></i> Tambah Riwayat Penyakit
								  </a>
								</div><!-- col-4 -->
							  </div><!-- row -->
							<table class="table table-hover mg-b-0">
							  <thead>
								<tr>
								  <th>No</th>
								  <th>Penyakit Yang Pernah / Sedang Diderita</th>
								  <th>Tahun</th>
								  <th>Tingkat Penyakit</th>
								  <th>Apakah menular?</th>
								  <th>Sudah sembuh?</th>
								  <th>Kelola</th>
								</tr>
							  </thead>
							  <tbody>
								<?php
									if($penyakit == NULL)
									{
										?>
										<tr>
											<td colspan="7"><center>Tidak ada riwayat penyakit.</center></td>
										</tr>
										<?php
									}
									else
									{
										$no = 0;
										foreach($penyakit as $p)
										{
											$no++;
											?>
											<tr>
											  <th scope="row"><?php echo $no;?></th>
											  <td><?php echo $p['penyakit'];?></td>
											  <td><?php echo $p['tahun'];?></td>
											  <td><?php echo $p['tingkat'];?></td>
											  <td><?php echo $p['menular'];?></td>
											  <td><?php echo $p['sembuh'];?></td>
											  <td>
												<a href="<?php echo base_url();?>Admin/kesehatanEdit/<?php echo $p['id_penyakit'];?>" class="btn btn-warning" title="Edit">
													<i class="fa fa-pencil"></i>
												</a>
												<a href="<?php echo base_url();?>Admin/kesehatanDelete/<?php echo $p['id_penyakit'];?>/<?php echo $id_pegawai;?>" class="btn btn-danger" title="Edit" onclick="return confirm('Apakah Anda yakin ingin menghapus riwayat penyakit ini?');">
													<i class="fa fa-trash"></i>
												</a>
											  </td>
											</tr>
											<?php
										}
									}
								?>
							  </tbody>
							</table>
						  </div><!-- table-responsive -->
					</div>
				</div>
			</div>
			<div class="clearfix"> </div>
		</div>
	</div>
</div>