<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 Pernikahan</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-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">No Registrasi</label>: <?php echo e($perPas->idenPas->no_registrasi); ?>

								</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-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Tanggal Registrasi</label>: <?php echo e(date('d-m-Y', strtotime($perPas->idenPas->tgl_registrasi))); ?>

								</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. IDENTITAS PASANGAN</h4>
						<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 p-0'>
								<label class='p-l-25' style="font-size: 18px;">Identitas Calon Suami</label>
								<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0'>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">NIK</label>: <?php echo e($idenPas->nik_suami); ?>

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

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

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

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

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

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

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

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Desa</label>: <?php echo e(ucwords(strtolower($idenPas->desa->nama_desa))); ?>

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Kecamatan KTP</label>: <?php echo e(ucwords(strtolower($idenPas->kecamatan->nama_kecamatan))); ?>

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Kabupaten KTP</label>: <?php echo e(ucwords(strtolower($idenPas->kabupaten->nama_kabupaten))); ?>

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Provinsi KTP</label>: <?php echo e(ucwords(strtolower($idenPas->provinsi->nama_provinsi))); ?>

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Pernah menikah sebelumnya</label>: <?php if($idenPas->pernah_menikah_suami == '1'){echo "Ya";}else{echo "Tidak";} ?>
										</div>
									</div>
								</div>
							</div>
							<div class='col-lg-6 col-md-6 col-sm-12 col-xs-12 p-0'>
								<label class='p-l-25' style="font-size: 18px;">Identitas Calon Istri</label>
								<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 p-0'>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">NIK</label>: <?php echo e($idenPas->bumil->nik); ?>

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

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Tmp, Tgl Lahir</label>: <?php echo e($idenPas->bumil->tmp_lahir); ?>, <?php echo e(date('d-m-Y', strtotime($idenPas->bumil->tgl_lahir))); ?>

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

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

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

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

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

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Desa KTP</label>: <?php echo e(ucwords(strtolower($idenPas->bumil->desa->nama_desa))); ?>

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Kecamatan KTP</label>: <?php echo e(ucwords(strtolower($idenPas->bumil->kecamatan->nama_kecamatan))); ?>

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Kabupaten KTP</label>: <?php echo e(ucwords(strtolower($idenPas->bumil->kabupaten->nama_kabupaten))); ?>

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Provinsi KTP</label>: <?php echo e(ucwords(strtolower($idenPas->bumil->provinsi->nama_provinsi))); ?>

										</div>
									</div>
									<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
										<div class="form-group m-t-0 m-b-5">
											<label class="control-label col-md-4 col-sm-4 col-xs-6" id='modal-label' for="first-name">Pernah menikah sebelumnya</label>: <?php if($idenPas->pernah_menikah_istri == '1'){echo "Ya";}else{echo "Tidak";} ?>
										</div>
									</div>
								</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> 2. DATA PERNIKAHAN</h4>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Persyaratan Administrasi</label>: <?php if($perPas->syarat_administrasi == 1): ?> Lengkap <?php else: ?> Tidak Lengkap <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Apakah sudah ada akad nikah di desa, sebelum ke KUA ?</label>: <?php if($perPas->akad_sebelum_kua == 1): ?> Ya, Tanggal <?php echo e(date('d-m-Y', strtotime($perPas->tgl_akad))); ?> <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Apakah sudah menerima vitamin pengantin dari Puskesmas ?</label>: <?php if($perPas->menerima_vitamin == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Mengikuti konseling/SUSCATIN</label>: <?php if($perPas->ikut_konseling == 1): ?> Ya <?php else: ?> Tidak <?php endif; ?>
							</div>
						</div>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tanggal pernikahan</label>: <?php echo e(date('d-m-Y', strtotime($perPas->tgl_pernikahan))); ?>

							</div>
						</div>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">No Registrasi Pernikahan</label>: <?php echo e($perPas->no_reg_pernikahan); ?>

							</div>
						</div>
						<div class="clearfix"></div>
						<?php if(Sentinel::getUser()->level_user == 5 || Sentinel::getUser()->level_user == 7): ?>
						<h4 class="labelGreen m-0 m-b-5"><i class="fa fa-puzzle-piece m-r-15"></i> 3. DATA KESEHATAN</h4>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tanggal Pemeriksaan</label>: 
								<?php if(empty($kesPas)): ?>
									-
								<?php else: ?>
									<?php echo e(date('d-m-Y', strtotime($kesPas->tgl_periksa))); ?>

								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Kesehatan Umum</label>: 
								<?php if(empty($kesPas)): ?>
									-
								<?php else: ?>
									<?php if($kesPas->kesehatan_umum == 1): ?>
										Baik
									<?php else: ?>
										Kurang
									<?php endif; ?>
								<?php endif; ?>
							</div>
						</div>


						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Berat Badan</label>: 
								<?php if(empty($kesPas)): ?>
									-
								<?php else: ?>
									<?php echo e($kesPas->berat_badan); ?> Kg
								<?php endif; ?>
							</div>
						</div>
						<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
							<div class="form-group m-t-0 m-b-5">
								<label class="control-label col-md-6 col-sm-5 col-xs-6" id='modal-label' for="first-name">Tinggi Badan</label>: 
								<?php if(empty($kesPas)): ?>
									-
								<?php else: ?>
									<?php echo e($kesPas->tinggi_badan); ?> Cm
								<?php endif; ?>
							</div>
						</div>
						<div class="clearfix"></div>
						<?php endif; ?>
					</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>