<div class="az-content az-content-dashboard">
  <div class="container">
	<div class="az-content-body">
		<div class="row row-sm mg-b-20">
		<div class="col-lg-6">
			<h2>Rangkuman Data Anda</h2>
		</div>
		<div class="col-lg-6">
		  <a class="btn btn-az-primary float-sm-right" href="<?php echo base_url();?>Pendaftaran/cetakKartuPendaftaran" target="_blank">
			<i class="fa fa-download"></i> Unduh Kartu Pendaftaran
		  </a>
		</div>
		</div>
	  <br>
	  <hr>
	  <div class="az-content-label mg-b-5">Data Diri</div>
	  <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");
			$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>
		</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" : "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">Email</p>
		</div>
		<div class="col-lg-10">
		  <strong>
			<p>
				: <?php echo $calonsiswa->email;?>
			</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." 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." 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">
		  <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>
		</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>
	  <div class="az-content-label mg-b-5">Data Keluarga</div>
	  <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 -->
	  <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 perbulan</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>
	  <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 perbulan</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>
	  <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>
	  <div class="az-content-label mg-b-5">Asal Sekolah & Nilai Raport</div>
	  <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>
	  <div class="az-content-label mg-b-5">Prestasi</div>
	  <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>
				</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>
							</tr>
							<?php
						}
					}
				?>
			  </tbody>
			</table>
		  </div><!-- table-responsive -->
		</div><!-- col-4 -->
	  </div><!-- row -->
	  <br>
	  <hr>
	  <div class="az-content-label mg-b-5">Jurusan Yang Dipilih</div>
	  <hr>
	  <div class="row row-sm mg-b-20">
		<div class="col-lg-2">
		  <p class="mg-b-10">Jurusan Pilihan Pertama</p>
		</div>
		<div class="col-lg-10">
		  <strong>
			<p>
				: <?php echo $jurusan->jurusan;?>
			</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">Jurusan Pilihan Kedua</p>
		</div>
		<div class="col-lg-10">
		  <strong>
			<p>
				: <?php echo $jurusan2->jurusan;?>
			</p>
		  </strong>
		</div><!-- col-4 -->
	  </div><!-- row -->
	  <br>
	  <br>
	  <div class="row row-sm mg-b-20">
		<div class="col-lg-12">
		  <a class="btn btn-az-primary float-sm-right" href="<?php echo base_url();?>Pendaftaran/cetakKartuPendaftaran" target="_blank">
			<i class="fa fa-download"></i> Unduh Kartu Pendaftaran
		  </a>
		</div><!-- col-4 -->
	  </div><!-- row -->
	</div>
  </div>
</div><!-- az-content -->