<div id="page-wrapper">
	<div class="main-page">
		<div class="forms">
			<div class=" form-grids row form-grids-right">
				<div class="widget-shadow " data-example-id="basic-forms"> 
					<div class="form-title">
						<h4>Informasi Detail Calon Siswa </h4>
					</div>
					<br>
					<h3 style="padding-left:20px;">Data Diri</h3>
				  <hr>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nomor Pendaftaran</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <strong><?php echo $calonsiswa->nomor_pendaftaran;?></strong
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nama</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->nama;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">NIK</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->nik;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Tempat Lahir</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->tempat_lahir;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Tanggal Lahir</p>
					</div>
					<div class="col-lg-10">
					  <?php
						$bulan 	= array("","Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember");
						if($calonsiswa->tanggal_lahir != NULL)
						{
							$pecah 	= explode("-",$calonsiswa->tanggal_lahir);
							$tahun 	= $pecah[0];
							$sasi	= (int)$pecah[1];
							$month	= $bulan[$sasi];
							$tanggal= $pecah[2];
							?>
							<strong>
								<p>
									: <?php echo $tanggal." ".$month." ".$tahun;?>
								</p>
							</strong>
							<?php
						}
						else
						{
							?>
							<strong>
								<p>
									: <?php echo $calonsiswa->tanggal_lahir;?>
								</p>
							</strong>
							<?php
						}
					  ?>
					  
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Jenis Kelamin</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->jen_kel == "L" ? "Laki-Laki" : ($calonsiswa->jen_kel == "P" ? "Perempuan" : ""));?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Agama</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->agama;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nomor HP (Whatsapp)</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->no_hp;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Alamat</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->alamat;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Transportasi</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->transportasi;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Jarak Rumah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->jarak != NULL ? $calonsiswa->jarak." kilometer" : "");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Waktu Tempuh</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->waktu_tempuh != NULL ? $calonsiswa->waktu_tempuh." menit" : "");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Cita-Cita</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->cita_cita;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Hobi</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->hoby;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Pas Foto</p>
					</div>
					<div class="col-lg-10">
					  <?php
						if($calonsiswa->foto != NULL)
						{
							?>
							  <strong>
								<p>
									<span style="vertical-align: top !important;">:</span> <img src="<?php echo base_url();?>files/calon_siswa/foto/<?php echo $calonsiswa->foto;?>" height="200px">
								</p>
							  </strong>
							<?php
						}
						else
						{
							echo "<strong>:</strong>";
						}
					  ?>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Mempunyai Kartu KIP?</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->kip != NULL ? $calonsiswa->kip : "<i>(tidak punya)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Mempunyai Kartu KKS?</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->kks != NULL ? $calonsiswa->kks : "<i>(tidak punya)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Mempunyai Kartu PKH?</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->pkh != NULL ? $calonsiswa->pkh : "<i>(tidak punya)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <hr>
				  <h3 style="padding-left:20px;">Data Keluarga</h3>
				  <hr>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nomor KK</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->no_kk;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nama Kepala Keluarga</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->nama_kk;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Pekerjaan Kepala Keluarga</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->pekerjaan_kk;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Anak Ke-</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->anak_ke;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Jumlah Saudara</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->jumlah_saudara;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <br>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nama Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->nama_ayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Status Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
						: <?php echo ($calonsiswa->status_ayah == "H" ? "Masih Hidup" : "Meninggal");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">NIK Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->nik_ayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Tempat Lahir Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->tempat_lahir_ayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Tanggal Lahir Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->tanggal_lahir_ayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Pendidikan Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->pendidikan_ayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Pekerjaan Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->pekerjaan_ayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Penghasilan Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->hasilayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nomor HP Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->no_hp_ayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Alamat Ayah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->alamat_ayah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <br>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nama Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->nama_ibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Status Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
						: <?php echo ($calonsiswa->status_ibu == "H" ? "Masih Hidup" : "Meninggal");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">NIK Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->nik_ibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Tempat Lahir Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->tempat_lahir_ibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Tanggal Lahir Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->tanggal_lahir_ibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Pendidikan Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->pendidikan_ibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Pekerjaan Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->pekerjaan_ibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Penghasilan Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->hasilibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nomor HP Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->no_hp_ibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Alamat Ibu</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->alamat_ibu;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <br>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nama Wali</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->nama_wali != NULL ? $calonsiswa->nama_wali : "<i>(tidak diisi)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">NIK Wali</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->nik_wali != NULL ? $calonsiswa->nik_wali : "<i>(tidak diisi)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Pekerjaan Wali</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->pekerjaan_wali != NULL ? $calonsiswa->pekerjaan_wali : "<i>(tidak diisi)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Penghasilan Wali</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->hasilwali != NULL ? $calonsiswa->hasilwali : "<i>(tidak diisi)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nomor HP Wali</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->no_hp_wali != NULL ? $calonsiswa->no_hp_wali : "<i>(tidak diisi)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Alamat Wali</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo ($calonsiswa->alamat_wali != NULL ? $calonsiswa->alamat_wali : "<i>(tidak diisi)</i>");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <hr>
				  <h3 style="padding-left:20px;">Asal Sekolah & Nilai Raport</h3>
				  <hr>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">NISN</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->nisn;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Asal Sekolah</p>
					</div>
					<div class="col-lg-10">
					  <strong>
						<p>
							: <?php echo $calonsiswa->asal_sekolah;?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-2">
					  <p class="mg-b-10">Nilai Raport</p>
					</div>
					<div class="col-lg-10">
					  <div class="table-responsive">
						<table class="table table-striped mg-b-0">
						  <thead>
							<tr>
							  <th>Mapel</th>
							  <th>Semester 1</th>
							  <th>Semester 2</th>
							  <th>Semester 3</th>
							  <th>Semester 4</th>
							  <th>Semester 5</th>
							  <th>Rata-Rata</th>
							</tr>
						  </thead>
						  <tbody>
							<?php
								if($calonsiswa->kode_asal_sekolah == "M")
								{
									if($raport->agm_smt1 == NULL)
									{
										?>
										<tr>
										  <th scope="row">Al Qur'an Hadits</th>
										  <td><?php echo $raport->aqh_smt1;?></td>
										  <td><?php echo $raport->aqh_smt2;?></td>
										  <td><?php echo $raport->aqh_smt3;?></td>
										  <td><?php echo $raport->aqh_smt4;?></td>
										  <td><?php echo $raport->aqh_smt5;?></td>
										  <td><?php echo number_format(($raport->aqh_smt1+$raport->aqh_smt2+$raport->aqh_smt3+$raport->aqh_smt4+$raport->aqh_smt5)/5,2);?></td>
										</tr>
										<tr>
										  <th scope="row">Sejarah Kebudayaan Islam</th>
										  <td><?php echo $raport->ski_smt1;?></td>
										  <td><?php echo $raport->ski_smt2;?></td>
										  <td><?php echo $raport->ski_smt3;?></td>
										  <td><?php echo $raport->ski_smt4;?></td>
										  <td><?php echo $raport->ski_smt5;?></td>
										  <td><?php echo number_format(($raport->ski_smt1+$raport->ski_smt2+$raport->ski_smt3+$raport->ski_smt4+$raport->ski_smt5)/5,2);?></td>
										</tr>
										<tr>
										  <th scope="row">Fiqih</th>
										  <td><?php echo $raport->fqh_smt1;?></td>
										  <td><?php echo $raport->fqh_smt2;?></td>
										  <td><?php echo $raport->fqh_smt3;?></td>
										  <td><?php echo $raport->fqh_smt4;?></td>
										  <td><?php echo $raport->fqh_smt5;?></td>
										  <td><?php echo number_format(($raport->fqh_smt1+$raport->fqh_smt2+$raport->fqh_smt3+$raport->fqh_smt4+$raport->fqh_smt5)/5,2);?></td>
										</tr>
										<tr>
										  <th scope="row">Akidah Akhlak</th>
										  <td><?php echo $raport->akh_smt1;?></td>
										  <td><?php echo $raport->akh_smt2;?></td>
										  <td><?php echo $raport->akh_smt3;?></td>
										  <td><?php echo $raport->akh_smt4;?></td>
										  <td><?php echo $raport->akh_smt5;?></td>
										  <td><?php echo number_format(($raport->akh_smt1+$raport->akh_smt2+$raport->akh_smt3+$raport->akh_smt4+$raport->akh_smt5)/5,2);?></td>
										</tr>
										<?php
									}
									else
									{
										?>
										<tr>
										  <th scope="row">Agama</th>
										  <td><?php echo $raport->agm_smt1;?></td>
										  <td><?php echo $raport->agm_smt2;?></td>
										  <td><?php echo $raport->agm_smt3;?></td>
										  <td><?php echo $raport->agm_smt4;?></td>
										  <td><?php echo $raport->agm_smt5;?></td>
										  <td><?php echo number_format(($raport->agm_smt1+$raport->agm_smt2+$raport->agm_smt3+$raport->agm_smt4+$raport->agm_smt5)/5,2);?></td>
										</tr>
										<?php
									}
								}
								else
								{
									?>
									<tr>
									  <th scope="row">Agama</th>
									  <td><?php echo $raport->agm_smt1;?></td>
									  <td><?php echo $raport->agm_smt2;?></td>
									  <td><?php echo $raport->agm_smt3;?></td>
									  <td><?php echo $raport->agm_smt4;?></td>
									  <td><?php echo $raport->agm_smt5;?></td>
									  <td><?php echo number_format(($raport->agm_smt1+$raport->agm_smt2+$raport->agm_smt3+$raport->agm_smt4+$raport->agm_smt5)/5,2);?></td>
									</tr>
									<?php
								}
							?>
							<tr>
							  <th scope="row">Bahasa Indonesia</th>
							  <td><?php echo $raport->bind_smt1;?></td>
							  <td><?php echo $raport->bind_smt2;?></td>
							  <td><?php echo $raport->bind_smt3;?></td>
							  <td><?php echo $raport->bind_smt4;?></td>
							  <td><?php echo $raport->bind_smt5;?></td>
							  <td><?php echo number_format(($raport->bind_smt1+$raport->bind_smt2+$raport->bind_smt3+$raport->bind_smt4+$raport->bind_smt5)/5,2);?></td>
							</tr>
							<tr>
							  <th scope="row">Matematika</th>
							  <td><?php echo $raport->mtk_smt1;?></td>
							  <td><?php echo $raport->mtk_smt2;?></td>
							  <td><?php echo $raport->mtk_smt3;?></td>
							  <td><?php echo $raport->mtk_smt4;?></td>
							  <td><?php echo $raport->mtk_smt5;?></td>
							  <td><?php echo number_format(($raport->mtk_smt1+$raport->mtk_smt2+$raport->mtk_smt3+$raport->mtk_smt4+$raport->mtk_smt5)/5,2);?></td>
							</tr>
							<tr>
							  <th scope="row">Bahasa Inggris</th>
							  <td><?php echo $raport->bing_smt1;?></td>
							  <td><?php echo $raport->bing_smt2;?></td>
							  <td><?php echo $raport->bing_smt3;?></td>
							  <td><?php echo $raport->bing_smt4;?></td>
							  <td><?php echo $raport->bing_smt5;?></td>
							  <td><?php echo number_format(($raport->bing_smt1+$raport->bing_smt2+$raport->bing_smt3+$raport->bing_smt4+$raport->bing_smt5)/5,2);?></td>
							</tr>
							<tr>
							  <th scope="row">IPA</th>
							  <td><?php echo $raport->ipa_smt1;?></td>
							  <td><?php echo $raport->ipa_smt2;?></td>
							  <td><?php echo $raport->ipa_smt3;?></td>
							  <td><?php echo $raport->ipa_smt4;?></td>
							  <td><?php echo $raport->ipa_smt5;?></td>
							  <td><?php echo number_format(($raport->ipa_smt1+$raport->ipa_smt2+$raport->ipa_smt3+$raport->ipa_smt4+$raport->ipa_smt5)/5,2);?></td>
							</tr>
							<tr>
							  <th scope="row">IPS</th>
							  <td><?php echo $raport->ips_smt1;?></td>
							  <td><?php echo $raport->ips_smt2;?></td>
							  <td><?php echo $raport->ips_smt3;?></td>
							  <td><?php echo $raport->ips_smt4;?></td>
							  <td><?php echo $raport->ips_smt5;?></td>
							  <td><?php echo number_format(($raport->ips_smt1+$raport->ips_smt2+$raport->ips_smt3+$raport->ips_smt4+$raport->ips_smt5)/5,2);?></td>
							</tr>
						  </tbody>
						</table>
					  </div><!-- table-responsive -->
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <br>
				  <hr>
				   <h3 style="padding-left:20px;">Prestasi</h3>
				  <hr>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-12">
					  <div class="table-responsive">
						<table class="table table-striped mg-b-0">
						  <thead>
							<tr>
							  <th>No</th>
							  <th>Tingkat</th>
							  <th>Juara</th>
							  <th>Nama Kejuaran</th>
							  <th>Tahun</th>
							  <th>Sertifikat</th>
							</tr>
						  </thead>
						  <tbody>
							<?php
								if($prestasi == NULL)
								{
									?>
									<td colspan="6">Tidak ada data pretasi.</td>
									<?php
								}
								else
								{
									$no = 0;
									foreach($prestasi as $p)
									{
										$no++;
										?>
										<tr>
											<th scope="row"><?php echo $no;?></th>
											<td><?php echo $p['tingkat'];?></td>
											<td><?php echo $p['juara'];?></td>
											<td><?php echo $p['nama_kejuaraan'];?></td>
											<td><?php echo $p['tahun'];?></td>
											<td>
												<a href="<?php echo base_url();?>files/calon_siswa/prestasi/<?php echo $p['sertifikat'];?>" class="btn btn-success" target="_blank" target="_blank"><i class="fa fa-eye"></i> Lihat Seritifikat</a>
												<a download="Sertifikat <?php echo $calonsiswa->nama." ".$p['nama_kejuaraan'];?>.png" href="<?php echo base_url();?>files/calon_siswa/prestasi/<?php echo $p['sertifikat'];?>" class="btn btn-xs btn-primary">
												<i class="fa fa-download"></i> Download Sertifikat
											</a></td>
										</tr>
										<?php
									}
								}
							?>
						  </tbody>
						</table>
					  </div><!-- table-responsive -->
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <hr>
				   <h3 style="padding-left:20px;">Jurusan</h3>
				  <hr>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-3">
					  <p class="mg-b-10">Jurusan Pilihan Pertama</p>
					</div>
					<div class="col-lg-9">
					  <strong>
						<p>:
							<?php
								$k = 0;
								foreach($jurusan as $j)
								{
									if($j['id_jurusan'] == $calonsiswa->id_jurusan)
									{
										echo $j['jurusan'];
										$k++;
									}
								}
								if($k == 0)
								{
									echo "-";
								}
							?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-3">
					  <p class="mg-b-10">Jurusan Pilihan Kedua</p>
					</div>
					<div class="col-lg-9">
					  <strong>
						<p>:
							<?php
								$k = 0;
								foreach($jurusan as $j)
								{
									if($j['id_jurusan'] == $calonsiswa->id_jurusan2)
									{
										echo $j['jurusan'];
										$k++;
									}
								}
								if($k == 0)
								{
									echo "-";
								}
							?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <br>
				  <hr>
				   <h3 style="padding-left:20px;">Berkas</h3>
				  <hr>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-12">
					  <div class="table-responsive">
						<table class="table table-striped mg-b-0">
						  <thead>
							<tr>
							  <th>No</th>
							  <th>Kategori Berkas</th>
							  <th>Nama Berkas</th>
							  <th>Kelola</th>
							</tr>
						  </thead>
						  <tbody>
							<?php
								if($berkas == NULL)
								{
									?>
									<td colspan="4">Tidak ada data berkas.</td>
									<?php
								}
								else
								{
									?>
									<tr>
										<th scope="row">1</th>
										<td>Pas Foto</td>
										<td>Foto</td>
										<td>
											<a href="<?php echo base_url();?>files/calon_siswa/foto/<?php echo $calonsiswa->foto;?>" class="btn btn-success" target="_blank" target="_blank"><i class="fa fa-eye"></i> Lihat Berkas</a>
											<a href="<?php echo base_url();?>files/calon_siswa/foto/<?php echo $calonsiswa->foto;?>" class="btn btn-primary" target="_blank" download><i class="fa fa-download"></i> Download</a>
										</td>
									</tr>
									<?php /**<tr> HAPUS BUKTI PEMBAYARAN
										<th scope="row">2</th>
										<td>Bukti Pembayaran</td>
										<td>Nota/Struk Bukti Pembayaran</td>
										<td>
											<a href="<?php echo base_url();?>files/calon_siswa/docs/<?php echo $calonsiswa->bukti_pembayaran;?>" class="btn btn-primary" target="_blank" download><i class="fa fa-download"></i> Download</a>
										</td>
									</tr> **/?>
									<?php
									$ni = 1;
									foreach($berkas as $b)
									{
										$ni++;
										?>
										<tr>
											<th scope="row"><?php echo $ni;?></th>
											<td><?php echo $b['kategori_berkas'];?></td>
											<td><?php echo $b['nama_berkas'];?></td>
											<td>
												<a href="<?php echo base_url();?>files/calon_siswa/docs/<?php echo $b['file_berkas'];?>" class="btn btn-success" target="_blank" target="_blank"><i class="fa fa-eye"></i> Lihat Berkas</a>
												<a href="<?php echo base_url();?>files/calon_siswa/docs/<?php echo $b['file_berkas'];?>" class="btn btn-primary" target="_blank" download><i class="fa fa-download"></i> Download</a>
											</td>
										</tr>
										<?php
									}
								}
							?>
						  </tbody>
						</table>
					  </div><!-- table-responsive -->
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>
				  <?php /**<hr>
				   <h3 style="padding-left:20px;">Nominal Pembayaran</h3>
				  <hr>
				  <div class="row row-sm mg-b-20">
					<div class="col-lg-3">
					  <p class="mg-b-10">Nominal Pembayaran</p>
					</div>
					<div class="col-lg-9">
					  <strong>
						<p>
							: Rp <?php echo number_format($calonsiswa->nominal_pembayaran,0,",",".");?>
						</p>
					  </strong>
					</div><!-- col-4 -->
				  </div><!-- row -->
				  <br>**/ ?>
				  <br>
				  <div class="col-sm-12">
					<a href="<?php echo base_url();?>admin/Admin" class="btn btn-danger pull-right"><i class="fa fa-reply"></i> Kembali</a>
				  </div>
				  <br>
				  <br>
				  <br>
				</div>
			</div>
		</div>
	</div>
</div>