<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>: {{ $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>: {{ $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>: {{ 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>: @if($kesPas->tbc == 1) Ya @else Tidak @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>: @if($kesPas->diabetes == 1) Ya @else Tidak @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>: @if($kesPas->jantung == 1) Ya @else Tidak @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>: @if($kesPas->hipertensi == 1) Ya @else Tidak @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>: @if($kesPas->infeksi_kandungan == 1) Ya @else Tidak @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>: @if($kesPas->penyakit_lain == 1) Ya, {{ $kesPas->nama_penyakit }} @else Tidak @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>{{ $kesPas->sistole }} mm, <b>Diastole : </b> {{ $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>: @if($kesPas->kesehatan_umum == 1) Baik @else Kurang @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>: @if($kesPas->imunisasi_tt == 1) Ya, {{ $kesPas->ket_imun_tt }} @else Tidak @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>: @if($kesPas->kontrasepsi == 1) Ya, jenis {{ $kesPas->jenis_kontrasepsi }} @else Tidak @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>: @if($kesPas->ingin_anak_batuta == 1) Ya @else Tidak @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>: {{ $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>: @if($kesPas->test_kehamilan == 1) Positif @else Negatif @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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>: @if($kesPas->vitamin_pengantin == 1) Ya @else Tidak @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>: @if($kesPas->buku_saku == 1) Ya @else Tidak @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>