<!DOCTYPE html>
<html lang="en">

<head>
  <title>Bukti Verifikasi </title>
  <style>
    .ttd {
      display: table;
      /* display: flex; */
      margin-top: 20px;
      width: 100%;
      height: 30px;

      /* justify-content: space-around; */
    }

    .ttd-kiri {
      float: left;
      width: 40%;
      height: 100px;

    }

    .ttd-kanan {
      width: 40%;
      height: 100px;
      font-size: 10px;
      float: right;
    }

    .ttd-kanan p {
      line-height: 1px;
    }

    .namaKepsek {
      margin-top: 80px;
    }

    .logo-sekolah {
      position: absolute;
      width: 70px;
      left: 0;
      float: right;
      top: 0;
    }

    .logo-dinas {
      position: absolute;
      width: 70px;
      top: 0;
      left: 0;
    }



    h1,
    h2 {

      font-size: 16px;
      text-align: center;
      line-height: 1px;
    }

    h3 {
      font-size: 18px;
      font-weight: bold;
      line-height: 1.3px;
      text-align: center
    }

    p {
      font-size: 10px;
      /* line-height: 1.4px; */
      /* text-align: center */
    }


    .td1 {
      width: 30%;

    }

    .td {
      width: 40%;

    }

    /* .td2 {
      width: 30%;
      text-align: right;
    } */

    .td3 {
      width: 5%;
    }

    hr {
      margin-top: -6px;
      height: 1px;
      color: black;
    }

    .judul {
      line-height: 1px;
      text-transform: uppercase;
      margin-top: 1px;
      font-size: 12px;
      font-weight: bold;
      text-align: center;
    }

    table {
      font-size: 0.7em;
      line-height: 18px;
      width: 100%;
    }

    table td {
      height: .8px;

    }

    .yang {
      text-align: left;
      font-size: 12px;
      margin-top: 5px;
    }

    .alamat {
      text-align: center;
    }

    /* .container {
      width: 100%;

    } */

    .kiri {
      width: 46%;
      float: left;
      position: absolute;
    }

    .kanan {
      width: 48%;
      float: right;
      padding-left: 25px;
      border-left: 1px dotted black;
      margin-left: 30px;

    }

    .jalur {
      text-align: center;
      border: 1px solid lightseagreen;
      border-radius: 5px;
      background-color: #eaeaea;
    }

    .no-urut {
      width: 3em;
      height: 3em;
      border: 1px solid black;
      bottom: 0;
      position: absolute;
      z-index: 1000;
      float: right;
      text-align: center;
    }

    .title-no-urut {
      font-size: .6em;
    }
  </style>
</head>

<body>

  <div class="container">
    <!-- bagian kiri -->
    <div class="kiri">
      <div class="logo-sekolah">
        <img src="<?= base_url('assets/img/logo/') . $dataSekolah['logo'] ?>">
      </div>
      <div class="logo-dinas">
        <img src="<?= base_url('assets/img/logo/') ?>kabBogor.png">
      </div>
      <div style="text-align: center; position:absolute; width: 100%; margin-top:-80px; ">
        <h1>PEMERINTAH KABUPATEN BOGOR</h1>
        <h2>DINAS PENDIDIKAN</h2>
        <h3><?= $dataSekolah['nama_sekolah']; ?></h3>
        <p class="alamat" style="font-size:9px"><?= $dataSekolah['alamat']; ?></p>
      </div>
      <div class="no-urut" style="position: absolute; padding:2px; border-radius:2px;">
        <div class="title-no-urut">No Urut</div>
        <p><b><?= $user['noDaftar'] ?></b></p>
      </div>
      <hr>
      <p class="judul"> Tanda bukti verifikasi berkas</p>
      <p class="judul"> Pendaftaran penerimaan peserta didik baru</p>
      <p class="judul"><?= $dataSekolah['nama_sekolah']; ?> TP.2022/2023</p>
      <p class="yang">Yang bertanda tangan di bawah ini panitia ppdb <?= $dataSekolah['nama_sekolah']; ?> menerangkan bahwa : </p>

      <table>
        <tr class="tr">
          <td class="td1">No Registrasi</td>
          <td class="td3">:</td>
          <td><?= $user['koreg'] ?></td>
          <td class="td2">NISN</td>
          <td>:</td>
          <td><?= $user['nisn'] ?></td>

        </tr>
        <tr>
          <td>Nama</td>
          <td class="td3">:</td>
          <td style="text-transform: uppercase;"><?= $user['nama'] ?></td>

        </tr>
        <tr>
          <td>Tanggal Lahir</td>
          <td class="td3">:</td>
          <td><?= $user['tglLahir'] ?></td>
          <td class="td2">JK</td>
          <td>:</td>
          <td><?= $user['jk'] ?></td>
        </tr>
        <tr>
            <td>Usia</td>
            <td class="td3">:</td>
            <td><?= $user['usia'] . ' tahun' ?></td>
        </tr>
        <tr>
          <td>NIK</td>
          <td class="td3">:</td>
          <td><?= $user['nik'] ?></td>
        </tr>
        <tr>
          <td>Sekolah Asal</td>
          <td class="td3">:</td>
          <td><?= $user['sekolahAsal'] ?></td>
          <td>NPSN</td>
          <td class="td3">:</td>
          <td><?= $user['npsn'] ?></td>
        </tr>
        <tr>
          <td>Tanggal Daftar</td>
          <td class="td3">:</td>
          <td><?= $user['tglDaftar'] ?></td>
        </tr>
        <tr>
          <td>Titik Kordinat</td>
          <td class="td3">:</td>
          <td><?= $user['longitude'] ?></td>
        </tr>
         <!-- data nilai peserta -->
         <?php if($dataJalur['input_nilai']==1):?>
          <p>Data Skor Nilai</p>
          <tr>
          <td>Jml. Rata Rata Nilai</td>
          <td class="td3">:</td>
          <td><?= $dataNilai['total'] ?></td>
         </tr>
         <?php if($dataNilai['isRank']!=0 || $dataNilai['isRank'] != null || $dataNilai['isRank'] != ""):?>
         <tr>
          <td>Rangking</td>
          <td class="td3">:</td>
          <td><?= $dataNilai['rank'] ?></td>
         </tr>
         <tr>
          <td>Skor Rangking</td>
          <td class="td3">:</td>
          <td><?= $dataNilai['skorRank'] ?></td>
         </tr>
         <?php endif?>
         <tr>
          <td>Total Skor Nilai </td>
          <td class="td3">:</td>
          <td><?= $dataNilai['totalSkor'] ?></td>
         </tr>
          <?php endif; ?>

        <?php if ($user['id_jalur'] == 4) { ?>

          <?php if ($user['skorKompetensi'] == 0 || $user['skorKompetensi'] == null) { ?>
            <tr>
              <td>Skor Prestasi</td>
              <td class="td3">:</td>
              <td><?= $user['skor']; ?></td>
            </tr>
          <?php } else { ?>
            <tr>
              <td>Skor Prestasi</td>
              <td class="td3">:</td>
              <td><?= ($user['skor'])-($user['skorKompetensi']); ?></td>
            </tr>
            <tr>
              <td>Skor kompetensi</td>
              <td class="td3">:</td>
              <td><?= $user['skorKompetensi']; ?></td>
            </tr>
            <tr>
              <td>Total Score</td>
              <td class="td3">:</td>
              <td><?= $user['skor']; ?></td>
            </tr>
          <?php }; ?>
       
          <tr>
            <td>Jml. N. Rata"</td>
            <td class="td3">:</td>
            <td class="td"><?= $dataNilai['totalSkor'] ?></td>
          </tr>
        <?php } elseif ($user['id_jalur'] == 6) { ?>
          <tr>
            <td>Jml. N. Rata"</td>
            <td class="td3">:</td>
            <td class="td"><?= $dataNilai['totalSkor'] ?></td>
          </tr>
          <tr>
            <td>Usia</td>
            <td class="td3">:</td>
            <td><?= $user['usia'] . ' tahun' ?></td>
          </tr>
          <tr>
            <td>Jarak</td>
            <td class="td3">:</td>
            <td><?= $user['jarak'] . ' meter' ?></td>
          </tr>

        <?php } else { ?>
          <tr>
            <td>Jarak</td>
            <td class="td3">:</td>
            <td><?= $user['jarak'] . ' meter' ?></td>
          </tr>
          <tr>
            <td>Usia</td>
            <td class="td3">:</td>
            <td><?= $user['usia'] . ' tahun' ?></td>
          </tr>
          <tr>
            <td>Jml. N. Rata"</td>
            <td class="td3">:</td>
            <td class="td"><?= $dataNilai['totalSkor'] ?></td>
          </tr>
        <?php } ?>
      </table>
      <div class="jalur">
       
        <p>
          <?php if ($user['id_jalur'] == 2) { ?>
            <?= $dataJalur['ppdb'] . ' - ' . $dataAfirmasi['nama_jenis_afirmasi'] ?>
          <?php } else { ?>
            <?= $dataJalur['ppdb'] ?>
          <?php } ?>
        </p>
      </div>
      <p class="yang">Telah terverifikasi sebagai calon ppdb <?= $dataSekolah['nama_sekolah']; ?> TP.2022/2023.</p>
      <div class="ttd">
        <div class="ttd-kiri">
        </div>
        <div class="ttd-kanan">
          <p class="kecamatan"><?= $dataSekolah['kecamatan'] . ', ' . date('d-F-Y'); ?></p>
          <p class="kecamatan">Di verifikasi Oleh:</p>
          <p class="namaKepsek"><?= $user['prosesBy'] ?></p>
          <p class="nip"></p>
        </div>
      </div>
      <div style="clear: both;"></div>
    </div>
    <!-- akhir bagian kiri -->
    <div class="kanan">
      <div class="logo-sekolah">
        <img src="<?= base_url('assets/img/logo/') . $dataSekolah['logo'] ?>">
      </div>
      <div class="logo-dinas">
        <img src="<?= base_url('assets/img/logo/') ?>kabBogor.png">
      </div>
      <div style="text-align: center; position:absolute; width: 100%; margin-top:-80px;">
        <h1>PEMERINTAH KABUPATEN BOGOR</h1>
        <h2>DINAS PENDIDIKAN</h2>
        <h3><?= $dataSekolah['nama_sekolah']; ?></h3>
        <p class="alamat" style="font-size:9px"><?= $dataSekolah['alamat']; ?></p>
      </div>
      <div class="no-urut" style="position: absolute; padding:2px; border-radius:2px;">
        <div class="title-no-urut">No Urut</div>
        <p><b><?= $user['noDaftar'] ?></b></p>
      </div>
      <hr>
      <p class="judul"> Tanda bukti verifikasi berkas</p>
      <p class="judul"> Pendaftaran penerimaan peserta didik baru</p>
      <p class="judul"><?= $dataSekolah['nama_sekolah']; ?> TP. 2022/2023</p>

      <p class="yang">Yang bertanda tangan di bawah ini panitia ppdb <?= $dataSekolah['nama_sekolah']; ?> menerangkan bahwa : </p>
      <table>
        <tr>
          <td class="td1">No Registrasi</td>
          <td class="td3">:</td>
          <td class="td"><?= $user['koreg'] ?></td>
          <td class="td2">NISN</td>
          <td>:</td>
          <td><?= $user['nisn'] ?></td>
        </tr>
        <tr>
          <td>Nama</td>
          <td class="td3">:</td>
          <td class="td" style="text-transform: uppercase;"><?= $user['nama'] ?></td>
        </tr>
        <tr>
          <td>Tanggal Lahir</td>
          <td class="td3">:</td>
          <td class="td"><?= $user['tglLahir'] ?></td>
          <td class="td2">JK</td>
          <td>:</td>
          <td><?= $user['jk'] ?></td>
        </tr>
        <tr>
          <td>NIK</td>
          <td class="td3">:</td>
          <td class="td"><?= $user['nik'] ?></td>
        </tr>
        <tr>
          <td>Sekolah Asal</td>
          <td class="td3">:</td>
          <td class="td"><?= $user['sekolahAsal'] ?></td>
        </tr>
        <tr>
          <td>NPSN Sekolah Asal</td>
          <td class="td3">:</td>
          <td class="td"><?= $user['npsn'] ?></td>
        </tr>
        <tr>
          <td>Tanggal Daftar</td>
          <td class="td3">:</td>
          <td class="td"><?= $user['tglDaftar'] ?></td>
        </tr>
        <tr>
          <td>Titik Kordinat</td>
          <td class="td3">:</td>
          <td class="td"><?= $user['longitude'] ?></td>
        </tr>
        <?php if ($user['id_jalur'] == 4) { ?>
          <?php if ($user['skorKompetensi'] == 0 || $user['skorKompetensi'] == null) { ?>
            <tr>
              <td>Skor Prestasi</td>
              <td class="td3">:</td>
              <td><?= $user['skor']; ?></td>
            </tr>
          <?php } else { ?>
            <tr>
              <td>Skor Prestasi</td>
              <td class="td3">:</td>
              <td><?= ($user['skor'])-($user['skorKompetensi']); ?></td>
            </tr>
            <tr>
              <td>Skor kompetensi</td>
              <td class="td3">:</td>
              <td><?= $user['skorKompetensi']; ?></td>
            </tr>
            <tr>
              <td>Total Score</td>
              <td class="td3">:</td>
              <td><?= $user['skor']; ?></td>
            </tr>
          <?php }; ?>
          <tr>
            <td>Usia</td>
            <td class="td3">:</td>
            <td><?= $user['usia'] . ' tahun' ?></td>
          </tr>
          <tr>
            <td>Jml. N. Rata"</td>
            <td class="td3">:</td>
            <td class="td"><?= $dataNilai['totalSkor'] ?></td>
          </tr>
        <?php } elseif ($user['id_jalur'] == 6) { ?>
          <tr>
            <td>Jml. N. Rata"</td>
            <td class="td3">:</td>
            <td class="td"><?= $dataNilai['totalSkor'] ?></td>
          </tr>
          <tr>
            <td>Usia</td>
            <td class="td3">:</td>
            <td><?= $user['usia'] . ' tahun' ?></td>
          </tr>
          <tr>
            <td>Jarak</td>
            <td class="td3">:</td>
            <td><?= $user['jarak'] . ' meter' ?></td>
          </tr>

        <?php } else { ?>
          <tr>
            <td>Jarak</td>
            <td class="td3">:</td>
            <td><?= $user['jarak'] . ' meter' ?></td>
          </tr>
          <tr>
            <td>Usia</td>
            <td class="td3">:</td>
            <td><?= $user['usia'] . ' tahun' ?></td>
          </tr>
          <tr>
            <td>Jml. N. Rata"</td>
            <td class="td3">:</td>
            <td class="td"><?= $dataNilai['totalSkor'] ?></td>
          </tr>
        <?php } ?>
      </table>
      <div class="jalur">
        <p>
          <?php if ($dataJalur['id'] == 2) { ?>
            <?= $dataJalur['ppdb'] . ' - ' . $dataAfirmasi['nama_jenis_afirmasi'] ?>
          <?php } else { ?>
            <?= $dataJalur['ppdb'] ?>
          <?php } ?>
        </p>
      </div>
      <p class="yang">Telah terverifikasi sebagai calon ppdb <?= $dataSekolah['nama_sekolah']; ?> TP. 2022/2023.</p>
      <div class="ttd">
        <div class="ttd-kiri">
        </div>
        <div class="ttd-kanan">
          <p class="kecamatan"><?= $dataSekolah['kecamatan'] . ', ' .  date('d F Y'); ?></p>
          <p class="kecamatan">Di verifikasi Oleh:</p>
          <p class="namaKepsek"></p>
          <p class="nip">.......................</p>
        </div>
      </div>
      <div style="clear: both;"></div>
    </div>
    <div style="clear: both"></div>
  </div>


</body>

</html>