<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 - {{ $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 {{ $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>: {{ $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>: {{ $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>: {{ $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>: 
									@if($kunjungan->periode->jarak_tahun != null)
										{{ $kunjungan->periode->jarak_tahun }} 
									@else
										0 
									@endif
									Tahun, 
									@if($kunjungan->periode->jarak_bulan != null)
										{{ $kunjungan->periode->jarak_bulan }} 
									@else
										0 
									@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>: {{ $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>: {{ 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>: 
								@if($kunjungan->berat_badan != null)
									{{ $kunjungan->berat_badan }} Kg
								@else
									-
								@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>: 
								@if($kunjungan->tinggi_badan != null)
									{{ $kunjungan->tinggi_badan }} Cm
								@else
									-
								@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>: 
								@if($kunjungan->lila != null)
									{{ $kunjungan->lila }} Cm
								@else
									-
								@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>: 
								@if($kunjungan->hb != null)
									{{ $kunjungan->hb }} g/dl
								@else
									-
								@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>: 
									@if($kunjungan->sistole != null)
										<b>Sistole</b> : {{ $kunjungan->sistole }} mm, <b>Diastole</b> : {{ $kunjungan->diastole }} HG
									@else
										-
									@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>: 
								@if($kunjungan->faktor_resiko == 1)
									KEK
								@elseif($kunjungan->faktor_resiko == 2)
									Diabetes
								@elseif($kunjungan->faktor_resiko == 3)
									Eklampsi
								@elseif($kunjungan->faktor_resiko == 4)
									Anemia
								@elseif($kunjungan->faktor_resiko == 5)
									Tidak Ada
								@else
									-
								@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>: 
								@if($kunjungan->letak_janin == 1)
									Ke
								@elseif($kunjungan->letak_janin == 2)
									Su
								@elseif($kunjungan->letak_janin == 3)
									Li
								@else
									-
								@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>: 
								@if($kunjungan->denyut_jantung_janin != null)
									{{ $kunjungan->denyut_jantung_janin }} / Menit
								@else
									-
								@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>: 
								@if($kunjungan->tinggi_fundus != null)
									{{ $kunjungan->tinggi_fundus }} Cm
								@else
									-
								@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>: 
								@if($kunjungan->kaki_bengkak == 1)
									Ya
								@elseif($kunjungan->kaki_bengkak == 2)
									Tidak
								@else
									-
								@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>: 
								@if($kunjungan->imunisasi_tt == 1)
									Ya
								@elseif($kunjungan->imunisasi_tt == 2)
									Tidak
								@else
									-
								@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>: 
								@if($kunjungan->suplemen_fe == 1)
									Ya
								@elseif($kunjungan->suplemen_fe == 2)
									Tidak
								@else
									-
								@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>: 
								@if($kunjungan->protein_hewani ==  1)
									1 Kali
								@elseif($kunjungan->protein_hewani == 2)
									2 Kali
								@elseif($kunjungan->protein_hewani == 3)
									3 Kali
								@elseif($kunjungan->protein_hewani == 4)
									4 Kali
								@elseif($kunjungan->protein_hewani == 5)
									{{ $kunjungan->protein_hewani_lain }} Kali
								@else
									-
								@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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>