 <!-- informasi pendaftar -->
 <div class="container-informasi-pendaftar p-4">
     <div class="row my-3 content-user">
         <!-- biodata -->
         <div class="col-md-6">
             <h2>Biodata</h2>
             <table class="table table-sm">
                 <tbody>
                     <tr>
                         <th scope="row">Nama</th>
                         <td>:</td>
                         <td><?= $siswa['nama']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">No Registrasi</th>
                         <td>:</td>
                         <td><?= $siswa['koreg']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">No Urut Pendaftaran</th>
                         <td>:</td>
                         <td><?= $siswa['noDaftar']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">NISN</th>
                         <td>:</td>
                         <td><?= $siswa['nisn']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">NIK</th>
                         <td>:</td>
                         <td><?= $siswa['nik']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Pendaftaran</th>
                         <td>:</td>
                         <td><?= $siswa['tglDaftar']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Alamat</th>
                         <td>:</td>
                         <td><?= $siswa['alamat']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Detail</th>
                         <td>:</td>
                         <td>Rt <?= $siswa['rt'] . ', Rw ' . $siswa['rw']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Desa</th>
                         <td>:</td>
                         <td> <?= $alamat['desa']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Kecamatan</th>
                         <td>:</td>
                         <td> <?= $alamat['kecamatan']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Kota</th>
                         <td>:</td>
                         <td> <?= $alamat['kota']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Provinsi</th>
                         <td>:</td>
                         <td> <?= $alamat['provinsi']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Tempat, Tanggal Lahir</th>
                         <td>:</td>
                         <td><?= $siswa['tempatLahir'] . ', ' . $siswa['tglLahir']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">Usia</th>
                         <td>:</td>
                         <td><?= $siswa['usia']; ?> tahun</td>
                     </tr>


                 </tbody>
             </table>
         </div>
         <div class="col-md-6">
             <h2>Sekolah</h2>
             <table class="table table-sm">
                 <tbody>
                     <tr>
                         <th scope="row">Asal Sekolah</th>
                         <td>:</td>
                         <td><?= $siswa['sekolahAsal']; ?></td>
                     </tr>
                     <tr>
                         <th scope="row">NPSN</th>
                         <td>:</td>
                         <td><?= $siswa['npsn']; ?></td>
                     </tr>

                     <tr>
                         <th scope="row">
                             <h5 class="text-success">Pendaftaran</h5>
                         </th>
                         <td></td>
                         <td></td>
                     </tr>
                     <tr>
                         <th scope="row">Jalur PPDB</th>
                         <td>:</td>
                         <td><?= $pendaftar['ppdb']; ?></td>
                     </tr>
                     <?php if ($siswa['id_jalur'] == 4) { ?>
                         <tr>
                             <th scope="row">Prestasi</th>
                             <td>:</td>
                             <td><?= isset($pendaftar['kejuaraan'] )?$pendaftar['kejuaraan']:'-'; ?></td>
                         </tr>
                         <tr>
                             <th scope="row">Nama Kejuaraan</th>
                             <td>:</td>
                             <td><?= $pendaftar['namaKejuaraan']; ?></td>
                         </tr>

                         <tr>
                             <th scope="row">Kategori</th>
                             <td>:</td>
                             <td><?= $pendaftar['satuan']; ?></td>
                         </tr>
                         <tr>
                             <th scope="row">Penyelengara</th>
                             <td>:</td>
                             <td><?=$pendaftar['peyelengara']; ?></td>
                         </tr>
                         <tr>
                             <th scope="row">SKOR Prestasi Kejuaraan</th>
                             <td>:</td>
                             <td><?php echo isset($pendaftar['skor'])?$pendaftar['skor']:'-'; ?></td>
                         </tr>
                         <tr>
                             <th scope="row">Skor Uji kompetensi/Praktek</th>
                             <td>:</td>
                             <td><?php echo isset($pendaftar['skorKompetensi'])? $pendaftar['skorKompetensi']:'-'; ?></td>
                         </tr>
                         <tr>
                             <th scope="row">Total Skor</th>
                             <td>:</td>
                             <td><?php echo isset( $pendaftar['total_skor_kejuaraan'])? $pendaftar['total_skor_kejuaraan']:'-'; ?></td>
                         </tr>
                         <tr>
                             <th scope="row">Peringkat Sementara</th>
                             <td>:</td>
                             <td><?= $pendaftar['peringkat']; ?></td>
                         </tr>
                         <tr>
                             <th scope="row" colspan="3">
                                 <h6 class="text-success">SKOR PENDAFTAR DI JALUR YG SAMA</h6>
                             </th>
                         </tr>
                         <tr>
                             <th scope="row">Skor Kejuaraan Tertinggi </th>
                             <td>:</td>
                             <td><?= $skor['skorTerbesar']; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Skor Kejuaraan Terbawah</th>
                             <td>:</td>
                             <td><?= $skor['skorTerkecil']; ?></td>
                         </tr>
                         <tr>
                             <th scope="row">Usia Tertua </th>
                             <td>:</td>
                             <td><?= $usia['usiaTertua']; ?> Tahun</td>
                         </tr>
                         <tr>
                             <th scope="row">Usia Termuda</th>
                             <td>:</td>
                             <td><?= $usia['usiaTemuda']; ?> Tahun</td>
                         </tr>
                         <tr>
                             <th scope="row">Jarak Terdekat</th>
                             <td></td>
                             <td><?= $jarak['jarakTerdekat'] ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Jarak Terjauh</th>
                             <td></td>
                             <td><?= $jarak['jarakTerjauh'] ?> m.</td>
                         </tr>
                         <!-- statistik pendaftar -->
                         <tr>
                             <th scope="row" colspan="3">
                                 <h6 class="text-success">Statistik Pendaftar Di jalur Yang Sama</h6>
                             </th>
                         </tr>
                         <tr>
                             <th scope="row">Pendaftar</th>
                             <td></td>
                             <td><?= $statistik['pendaftar'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Quota Pendaftaran</th>
                             <td></td>
                             <td><?= $pendaftar['quota'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Terverifikasi</th>
                             <td></td>
                             <td><?= $statistik['terverivikasi'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Belum Terverifikasi</th>
                             <td></td>
                             <td><?= $statistik['belumTerverifikasi'] ?> Orang</td>
                         </tr>
                     <?php } else if ($siswa['id_jalur'] == 2) { ?>
                         <tr>
                             <th scope="row">Jenis Afirmasi</th>
                             <td>:</td>
                             <td><?= $pendaftar['jenisAfirmasi']; ?></td>
                         </tr>
                         <tr>
                             <th scope="row">No jenis Afirmasi</th>
                             <td>:</td>
                             <td><?= $pendaftar['no_afirmasi']; ?></td>
                         </tr>

                         <tr>
                             <th scope="row">Jarak</th>
                             <td>:</td>
                             <td><?= $pendaftar['jarak']; ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Peringkat Sementara</th>
                             <td>:</td>
                             <td><?= isset( $pendaftar['peringkat'])?$pendaftar['peringkat']:''; ?></td>
                         </tr>
                         <tr>
                             <th scope="row" colspan="3">
                                 <h6 class="text-success">SKOR PENDAFTAR DI JALUR YG SAMA</h6>
                             </th>
                         </tr>
                         <tr>
                             <th scope="row">Jarak Terdekat</th>
                             <td></td>
                             <td><?= $jarak['jarakTerdekat'] ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Jarak Terjauh</th>
                             <td></td>
                             <td><?= $jarak['jarakTerjauh'] ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Usia Tertua </th>
                             <td>:</td>
                             <td><?= $usia['usiaTertua']; ?> Tahun</td>
                         </tr>
                         <tr>
                             <th scope="row">Usia Termuda</th>
                             <td>:</td>
                             <td><?= $usia['usiaTemuda']; ?> Tahun</td>
                         </tr>
                         <?php
                         $cekJalurAfirmasi = CekData::getInfoJalur(2);
                            if($cekJalurAfirmasi['input_nilai']==1){
                         ?>

                         <tr>
                             <th scope="row">Rata-rata Raport Tertinggi</th>
                             <td></td>
                             <td><?= $nilai['nilaiTerbesar'] ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Rata-rata Raport Terbawah</th>
                             <td></td>
                             <td><?= $nilai['nilaiTerkecil'] ?> m.</td>
                         </tr>
                         <?php }?>
                         <!-- statistik pendaftar -->
                         <tr>
                             <th scope="row" colspan="3">
                                 <h6 class="text-success">Statistik Pendaftar Di jalur Yang Sama</h6>
                             </th>
                         </tr>
                         <tr>
                             <th scope="row">Pendaftar</th>
                             <td></td>
                             <td><?= $statistik['pendaftar'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Quota Pendaftaran</th>
                             <td></td>
                             <td><?= $pendaftar['quota'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Terverifikasi</th>
                             <td></td>
                             <td><?= $statistik['terverivikasi'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Belum Terverifikasi</th>
                             <td></td>
                             <td><?= $statistik['belumTerverifikasi'] ?> Orang</td>
                         </tr>


                     <?php } else if ($siswa['id_jalur'] == 6) { ?>
                         <tr>
                             <th scope="row">Jumlah Rata-rata Nilai</th>
                             <td>:</td>
                             <td><?php echo isset( $pendaftar['total'])? $pendaftar['total']:'-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Rangking</th>
                             <td>:</td>
                             <td><?php echo isset($pendaftar['rank'])?$pendaftar['rank']:'-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Skor Rangking</th>
                             <td>:</td>
                             <td><?php echo isset( $pendaftar['skorRank'])? $pendaftar['skorRank']:'-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Total Skor Nilai</th>
                             <td>:</td>
                             <td><?php echo isset( $pendaftar['totalSkor'])? $pendaftar['totalSkor']:'-' ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Skor Jarak</th>
                             <td>:</td>
                             <td><?= $pendaftar['jarak']; ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Peringkat Sementara</th>
                             <td>:</td>
                             <td><?= $pendaftar['peringkat']; ?></td>
                         </tr>
                         <tr>
                             <th scope="row" colspan="3">
                                 <h6 class="text-success">SKOR PENDAFTAR DI JALUR YG SAMA</h6>
                             </th>
                         </tr>
                         <tr>
                             <th scope="row">Rata-rata Raport Tertinggi</th>
                             <td></td>
                             <td><?php echo isset($nilai['nilaiTerbesar']) ? $nilai['nilaiTerbesar'] : '-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Rata-rata Raport Terbawah</th>
                             <td></td>
                             <td><?php echo isset($nilai['nilaiTerkecil']) ? $nilai['nilaiTerkecil'] : '-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Jarak Terdekat</th>
                             <td></td>
                             <td><?= $jarak['jarakTerdekat'] ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Jarak Terjauh</th>
                             <td></td>
                             <td><?= $jarak['jarakTerjauh'] ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Usia Tertua </th>
                             <td>:</td>
                             <td><?= $usia['usiaTertua']; ?> Tahun</td>
                         </tr>
                         <tr>
                             <th scope="row">Usia Termuda</th>
                             <td>:</td>
                             <td><?= $usia['usiaTemuda']; ?> Tahun</td>
                         </tr>

                         <!-- statistik pendaftar -->
                         <tr>
                             <th scope="row" colspan="3">
                                 <h6 class="text-success">Statistik Pendaftar Di jalur Yang Sama</h6>
                             </th>
                         </tr>
                         <tr>
                             <th scope="row">Pendaftar</th>
                             <td></td>
                             <td><?= $statistik['pendaftar'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Quota Pendaftaran</th>
                             <td></td>
                             <td><?= $pendaftar['quota'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Terverifikasi</th>
                             <td></td>
                             <td><?= $statistik['terverivikasi'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Belum Terverifikasi</th>
                             <td></td>
                             <td><?= $statistik['belumTerverifikasi'] ?> Orang</td>
                         </tr>

                     <?php } else { ?>
                         <tr>
                             <th scope="row">Jumlah Rata-rata Nilai</th>
                             <td>:</td>
                             <td><?php echo isset( $pendaftar['total'])? $pendaftar['total']:'-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Rangking</th>
                             <td>:</td>
                             <td><?php echo isset($pendaftar['rank'])?$pendaftar['rank']:'-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Skor Rangking</th>
                             <td>:</td>
                             <td><?php echo isset($pendaftar['skorRank'])?$pendaftar['skorRank']:'-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Total Skor</th>
                             <td>:</td>
                             <td><?php echo isset( $pendaftar['totalSkor'])? $pendaftar['totalSkor']:'-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Skor Jarak</th>
                             <td>:</td>
                             <td><?= $pendaftar['jarak']; ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Peringkat Sementara</th>
                             <td>:</td>
                             <td><?= $pendaftar['peringkat']; ?></td>
                         </tr>

                         <tr>
                             <th scope="row" colspan="3">
                                 <h6 class="text-success">SKOR PENDAFTAR DI JALUR YG SAMA</h6>
                             </th>
                         </tr>
                         <tr>
                             <th scope="row">Jarak Terdekat</th>
                             <td></td>
                             <td><?= $jarak['jarakTerdekat'] ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Jarak Terjauh</th>
                             <td></td>
                             <td><?= $jarak['jarakTerjauh'] ?> m.</td>
                         </tr>
                         <tr>
                             <th scope="row">Usia Tertua </th>
                             <td>:</td>
                             <td><?= $usia['usiaTertua']; ?> Tahun </td>
                         </tr>
                         <tr>
                             <th scope="row">Usia Termuda</th>
                             <td>:</td>
                             <td><?= $usia['usiaTemuda']; ?> Tahun</td>
                         </tr>
                         <tr>
                             <th scope="row">Rata-rata Raport Tertinggi</th>
                             <td></td>
                             <td><?php echo isset($nilai['nilaiTerbesar']) ? $nilai['nilaiTerbesar'] : '-'; ?> </td>
                         </tr>
                         <tr>
                             <th scope="row">Rata-rata Raport Terbawah</th>
                             <td></td>
                             <td><?php echo isset($nilai['nilaiTerkecil']) ? $nilai['nilaiTerkecil'] : '-'; ?></td>
                         </tr>
                         <!-- statistik pendaftar -->
                         <tr>
                             <th scope="row" colspan="3">
                                 <h6 class="text-success">Statistik Pendaftar Di jalur Yang Sama</h6>
                             </th>
                         </tr>
                         <tr>
                             <th scope="row">Pendaftar</th>
                             <td></td>
                             <td><?= $statistik['pendaftar'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Quota Pendaftaran</th>
                             <td></td>
                             <td><?= $pendaftar['quota'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Terverifikasi</th>
                             <td></td>
                             <td><?= $statistik['terverivikasi'] ?> Orang</td>
                         </tr>
                         <tr>
                             <th scope="row">Belum Terverifikasi</th>
                             <td></td>
                             <td><?= $statistik['belumTerverifikasi'] ?> Orang</td>
                         </tr>
                     <?php } ?>
                 </tbody>
             </table>
         </div>
     </div>
     <div class="row my-4">
         <div class="col-12 col-md-6 text-center">
             <a href="<?= base_url('Operator/unsetStatus') ?>" class="btn btn-danger">kembali</a>
         </div>
         <div class="col-12 col-md-6 text-center">
             <a href="<?= base_url('Operator/cetakBuktiDaftar/') . $siswa['koreg'] ?>" Target="_blank" class="btn btn-primary">Cetak Bukti Pendaftaran</a>
         </div>
     </div>
 </div>
 <br><br><br><br><br>
 <!-- end informasi pendaftar -->