<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" id='custom-close' 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 Kunjungan ke - <?php echo e($kunjungan->kunjungan); ?></h4>
			</div>
			<div class="clearfix"></div>
			<div class="modal-body">
				<section class="panel panel-default m-b-0">
					<div class="panel-body">
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0'>
								<div class="form-group m-t-0 m-b-20">
									<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Periode</label>: Periode Kehamilan Ke <?php echo e($kunjungan->periode->kehamilan); ?>

								</div>
							</div>
							<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0'>
								<div class="form-group m-t-0 m-b-20">
									<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Nama Ibu</label>: <?php echo e($kunjungan->bumil->nama_bumil); ?>

								</div>
							</div>
							<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0'>
								<div class="form-group m-t-0 m-b-20">
									<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Usia Ibu</label>: <?php echo e($kunjungan->periode->usia_ibu); ?> Tahun
								</div>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0'>
								<div class="form-group m-t-0 m-b-20">
									<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Usia Kehamilan</label>: <?php echo e($kunjungan->usia_kehamilan); ?> Minggu
								</div>
							</div>
							<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0'>
								<div class="form-group m-t-0 m-b-20">
									<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Jarak kehamilan dari anak terakhir</label>: 
									<?php if($kunjungan->periode->jarak_tahun != null): ?>
										<?php echo e($kunjungan->periode->jarak_tahun); ?> 
									<?php else: ?>
										0 
									<?php endif; ?>
									Tahun, 
									<?php if($kunjungan->periode->jarak_bulan != null): ?>
										<?php echo e($kunjungan->periode->jarak_bulan); ?> 
									<?php else: ?>
										0 
									<?php endif; ?>
									Bulan
								</div>
							</div>
							<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0'>
								<div class="form-group m-t-0 m-b-20">
									<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Golongan Darah</label>: <?php echo e($kunjungan->periode->gol_darah); ?>

								</div>
							</div>
						</div>
						<div class="clearfix"></div>
						<hr class="lineTopGreen">
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Tanggal Kunjungan </label>: <?php echo e(date('d-m-Y', strtotime($kunjungan->tgl_kunjungan))); ?>

							</div>
						</div>
						<div class="clearfix"></div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Berat Badan </label>: 
								<?php if($kunjungan->berat_badan != null): ?>
									<?php echo e($kunjungan->berat_badan); ?> Kg
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Tinggi Badan </label>: 
								<?php if($kunjungan->tinggi_badan != null): ?>
									<?php echo e($kunjungan->tinggi_badan); ?> Cm
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">LILA (Lingkar Lengan Atas) </label>: 
								<?php if($kunjungan->lila != null): ?>
									<?php echo e($kunjungan->lila); ?> Cm
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">HB </label>: 
								<?php if($kunjungan->hb != null): ?>
									<?php echo e($kunjungan->hb); ?> g/dl
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Tekanan Darah </label>: 
									<?php if($kunjungan->sistole != null): ?>
										<b>Sistole</b> : <?php echo e($kunjungan->sistole); ?> mm, <b>Diastole</b> : <?php echo e($kunjungan->diastole); ?> HG
									<?php else: ?>
										-
									<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Faktor Risiko </label>: 
								<?php if($kunjungan->faktor_resiko == 1): ?>
									KEK
								<?php elseif($kunjungan->faktor_resiko == 2): ?>
									Diabetes
								<?php elseif($kunjungan->faktor_resiko == 3): ?>
									Eklampsi
								<?php elseif($kunjungan->faktor_resiko == 4): ?>
									Anemia
								<?php elseif($kunjungan->faktor_resiko == 5): ?>
									Tidak Ada
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Letak Janin </label>: 
								<?php if($kunjungan->letak_janin == 1): ?>
									Ke
								<?php elseif($kunjungan->letak_janin == 2): ?>
									Su
								<?php elseif($kunjungan->letak_janin == 3): ?>
									Li
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Denyut Jantung Janin </label>: 
								<?php if($kunjungan->denyut_jantung_janin != null): ?>
									<?php echo e($kunjungan->denyut_jantung_janin); ?> / Menit
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Tinggi Fundus </label>: 
								<?php if($kunjungan->tinggi_fundus != null): ?>
									<?php echo e($kunjungan->tinggi_fundus); ?> Cm
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Kaki Bengkak </label>: 
								<?php if($kunjungan->kaki_bengkak == 1): ?>
									Ya
								<?php elseif($kunjungan->kaki_bengkak == 2): ?>
									Tidak
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Imunisasi TT </label>: 
								<?php if($kunjungan->imunisasi_tt == 1): ?>
									Ya
								<?php elseif($kunjungan->imunisasi_tt == 2): ?>
									Tidak
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Konsumsi Suplemen Fe </label>: 
								<?php if($kunjungan->suplemen_fe == 1): ?>
									Ya
								<?php elseif($kunjungan->suplemen_fe == 2): ?>
									Tidak
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-20">
								<label class="control-label col-lg-6 col-md-6 col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Konsumsi Protein Hewani per Hari </label>: 
								<?php if($kunjungan->protein_hewani ==  1): ?>
									1 Kali
								<?php elseif($kunjungan->protein_hewani == 2): ?>
									2 Kali
								<?php elseif($kunjungan->protein_hewani == 3): ?>
									3 Kali
								<?php elseif($kunjungan->protein_hewani == 4): ?>
									4 Kali
								<?php elseif($kunjungan->protein_hewani == 5): ?>
									<?php echo e($kunjungan->protein_hewani_lain); ?> Kali
								<?php else: ?>
									-
								<?php endif; ?>
							</div>
						</div>
						<div class="clearfix"></div>
						<h4 class="labelGreen m-0 m-b-15"><i class="fa fa-puzzle-piece m-l-15"></i> Detail Pemeriksa </h4>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-25">
								<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">NIK</label>: <?php echo e($tngMedis->nik); ?>

							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-25">
								<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Email</label>: <?php echo e($tngMedis->email); ?>

							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-25">
								<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Nama Pemeriksa</label>: <?php echo e($tngMedis->nama); ?>

							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-25">
								<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Alamat</label>: <?php echo e($AlamatTngMedis); ?>

							</div>
						</div>
						<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
							<div class="form-group m-t-0 m-b-25">
								<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">No Telepon</label>: <?php echo e($TlpTngMedis); ?>

							</div>
						</div>
					</div>
				</section>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-info" data-dismiss="modal">Ok</button>
			</div>
		</div>
	</div>
</div>
<div class="showGambar"></div>

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