<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>: {{ $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>: {{ 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>: {{ $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>: {{ $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>: {{ $idenPas->tmp_lahir_suami }}, {{ 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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>: {{ 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>: {{ 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>: {{ 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>: {{ 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 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-6 col-xs-6" id='modal-label' for="first-name">Foto Suami</label>:
											<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
												<div class="crop-edit">
													<center>
														@if($idenPas->foto_suami != null)
															<img id="preview-photo-suami" src="{!! url('dist/img/suami/'.$idenPas->foto_suami) !!}" class="img-polaroid" min-height="250" width="70%">
														@else
															<img id="preview-photo-suami" src="{!! url('dist/img/default_image.jpg') !!}" class="img-polaroid" min-height="250" width="70%">
														@endif
													</center>
												</div>
											</div>
										</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>: {{ $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>: {{ $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>: {{ $idenPas->bumil->tmp_lahir }}, {{ 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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>: {{ $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>: {{ 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>: {{ 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>: {{ 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>: {{ 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 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-6 col-xs-6" id='modal-label' for="first-name">Foto Istri</label>:
											<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
												<div class="crop-edit">
													<center>
														@if($idenPas->bumil->foto != null)
															<img id="preview-photo-istri" src="{!! url('dist/img/istri/'.$idenPas->bumil->foto) !!}" class="img-polaroid-istri" min-height="250" width="70%">
														@else
															<img id="preview-photo-istri" src="{!! url('dist/img/default_image.jpg') !!}" class="img-polaroid" min-height="250" width="70%">
														@endif
													</center>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="clearfix m-b-5"></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>: @if($perPas->syarat_administrasi == 1) Lengkap @else Tidak Lengkap @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>: @if($perPas->akad_sebelum_kua == 1) Ya, Tanggal {{ date('d-m-Y', strtotime($perPas->tgl_akad)) }} @else Tidak @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>: @if($perPas->menerima_vitamin == 1) Ya @else Tidak @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>: @if($perPas->ikut_konseling == 1) Ya @else Tidak @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>: {{ 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>: {{ $perPas->no_reg_pernikahan }}
							</div>
						</div>
						<div class="clearfix"></div>
						@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>: 
								@if(empty($kesPas))
									-
								@else
									{{ date('d-m-Y', strtotime($kesPas->tgl_periksa)) }}
								@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>: 
								@if(empty($kesPas))
									-
								@else
									@if($kesPas->kesehatan_umum == 1)
										Baik
									@else
										Kurang
									@endif
								@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>: 
								@if(empty($kesPas))
									-
								@else
									{{ $kesPas->berat_badan }} Kg
								@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>: 
								@if(empty($kesPas))
									-
								@else
									{{ $kesPas->tinggi_badan }} Cm
								@endif
							</div>
						</div>
						<div class="clearfix"></div>
						@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>