<div class="modal fade" id="detail-dialog" tabindex="-1" role="dialog" aria-labelledby="product-detail-dialog">
	<div class="modal-dialog modal-lg" >
		<div class="modal-content">
			<div class="modal-header modalHeaderGreen">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title modalHeaderTitle" id="product-detail-dialog"><i class="fa fa-info m-r-15 m-l-5"></i> Detail Data Kesehatan</h4>
			</div>
			<div class="modal-body">
				<section class="panel panel-default m-b-0">
					<div class="panel-body">
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
								<div class="form-group m-t-0 m-b-5">
									<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">NIK Istri</label>: <?php echo e($bumil->nik); ?>

								</div>
							</div>
							<div class="clearfix"></div>
							<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
								<div class="form-group m-t-0 m-b-5">
									<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">No Registrasi</label>: 
									<?php
										if($kesPas->identitas_pasangan_id != 0){
											echo $kesPas->idenPas->no_registrasi;
										}else{
											echo "Pindahan / Lanjutan";
										}
									?>
								</div>
							</div>
							<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
								<div class="form-group m-t-0 m-b-5">
									<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tanggal Registrasi</label>: 
									<?php
										if($kesPas->identitas_pasangan_id != 0){
											echo date('d-m-Y', strtotime($kesPas->idenPas->tgl_registrasi));
										}else{
											echo "-";
										}
									?>
								</div>
							</div>
							<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
								<div class="form-group m-t-0 m-b-5">
									<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Nama Calon Suami</label>: 
									<?php
										if($kesPas->identitas_pasangan_id != 0){
											echo $kesPas->idenPas->nama_suami;
										}else{
											echo $bumil->nama_suami;
										}
									?>
								</div>
							</div>
							<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
								<div class="form-group m-t-0 m-b-5">
									<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Nama Calon Istri</label>: <?php echo e($bumil->nama_bumil); ?>

								</div>
							</div>
							<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
								<div class="form-group m-t-0 m-b-5">
									<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tanggal Pemeriksaan</label>: <?php echo e(date('d-m-Y', strtotime($kesPas->tgl_periksa))); ?>

								</div>
							</div>
						</div>
						<div class="clearfix"></div>
						<h4 class="labelGreen m-0 m-b-5"><i class="fa fa-puzzle-piece m-r-15"></i> 1. POLI UMUM</h4>
						<label class="control-label col-lg-12 col-md-12 col-sm-12 col-xs-12" style="font-size: 18px">Anamnese dan Riwayat Penyakit</label>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">TBC</label>: <?php if($kesPas->tbc == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Diabetes Militus</label>: <?php if($kesPas->diabetes == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Jantung</label>: <?php if($kesPas->jantung == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Hipertensi</label>: <?php if($kesPas->hipertensi == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Infeksi Kandungan</label>: <?php if($kesPas->infeksi_kandungan == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Penyakit Lain</label>: <?php if($kesPas->penyakit_lain == 1): ?> Ya, <?php echo e($kesPas->nama_penyakit); ?> <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<label class="control-label col-lg-12 col-md-12 col-sm-12 col-xs-12" style="font-size: 18px">Pemeriksaan</label>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tekanan Darah</label>: <b>Sistole : </b><?php echo e($kesPas->sistole); ?> mm, <b>Diastole : </b> <?php echo e($kesPas->diastole); ?> Hg
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Kesehatan Umum</label>: <?php if($kesPas->kesehatan_umum == 1): ?> Baik <?php else: ?> Kurang <?php endif; ?>
							</div>
						</div>
						<div class="clearfix"></div>
						<h4 class="labelGreen m-0 m-b-5"><i class="fa fa-puzzle-piece m-r-15"></i> 2. POLI KIA</h4>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Imunisasi TT</label>: <?php if($kesPas->imunisasi_tt == 1): ?> Ya, <?php echo e($kesPas->ket_imun_tt); ?> <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Menggunakan kontrasepsi </label>: <?php if($kesPas->kontrasepsi == 1): ?> Ya, jenis <?php echo e($kesPas->jenis_kontrasepsi); ?> <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Ingin punya anak dalam waktu 1 tahun</label>: <?php if($kesPas->ingin_anak_batuta == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class="clearfix"></div>
						<h4 class="labelGreen m-0 m-b-15"><i class="fa fa-puzzle-piece m-r-15"></i> 3. LABORATORIUM</h4>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Hemoglobin (Hb) </label>: <?php echo e($kesPas->hb); ?>

							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tes kehamilan </label>: <?php if($kesPas->test_kehamilan == 1): ?> Positif <?php else: ?> Negatif <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tes lain </label>: <?php echo e($kesPas->test_lain); ?>

							</div>
						</div>
						<div class="clearfix"></div>
						<h4 class="labelGreen m-0 m-b-15"><i class="fa fa-puzzle-piece m-r-15"></i> 4. POJOK GIZI</h4>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Berat badan </label>: <?php echo e($kesPas->berat_badan); ?> Kg
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tinggi badan </label>: <?php echo e($kesPas->tinggi_badan); ?> Cm
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Lingkar lengan atas (lila) </label>: <?php echo e($kesPas->lingkar_lengan_atas); ?> Cm
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Lingkar pinggang</label>: <?php echo e($kesPas->lingkar_pinggang); ?> Cm
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Lingkar Panggul</label>: <?php echo e($kesPas->lingkar_panggul); ?> Cm
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Menerima Vit. Pengantin </label>: <?php if($kesPas->vitamin_pengantin == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-5 col-sm-5 col-xs-6" id='modal-label' for="first-name">Menerima buku saku </label>: <?php if($kesPas->buku_saku == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class="clearfix"></div>
					</div>
				</section>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-info" data-dismiss="modal">Ok</button>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	var onLoad = (function() {
		$('#detail-dialog').find('.modal-dialog').css({
			'width'     : '80%'
		});
		$('#detail-dialog').modal('show');
	})();
	$('#detail-dialog').on('hidden.bs.modal', function () {
		$('.modal-dialog').html('');
	})
</script>