<hr class="thick-line" style="clear:both;">
<div style="font-size:14px;padding-top:0px;padding-left:5px;" id="detil_bawah12tahun">
    <table id='infoPerkara' style="font-size:14px;width:100%;" border="0">
        <col width="25%">
        <col width="">
        <tbody>
            <tr style="background-color:#E6FFE3">
                <td>[ <a href="#" id='kembali_kelist_anak_12tahun'>Kembali</a> ]</td>
                 <td colspan="2" style="text-align:right">
                     <?php echo '<a style="color:red" href="#" onClick="popup_form(\''.base_url('add_register_blm_12tahun/popup_hapus_register/'.$enc_id).'\')">[ Hapus Register ]</a>';?>
                 </td>
                </td>
            </tr>
           <tr>
                <td id="first-child" >Nomor Permohonan</td>
                <td><?php echo $data_register[0]->nomor_permohonan;?></td>
                <td style="text-align:right"><?php echo '<a  href="'.base_url().'add_register_blm_12tahun/edit_register/'.$enc_id.'" >[ Edit ]</a>'; ?></td>
                </td>
            </tr>
            <tr>
                <td id="first-child">Tanggal Permohonan</td>
                <td><?php echo $this->tanggalhelper->convertDayDate($data_register[0]->tgl_permohonan);?></td>
            </tr>
           
            <tr>
                <td id="first-child">Nomor Penetapan</td>
                <td><?php echo $data_register[0]->nomor_penetapan;?></td>
            </tr>
            <tr>
                <td id="first-child">Tanggal Penetapan</td>
               <td><?php echo $this->tanggalhelper->convertDayDate($data_register[0]->tgl_penetapan);?></td>
            </tr>
            <tr>
                <td id="first-child">Nomor Laporan Kemasyarakatan</td>
                <td><?php echo $data_register[0]->nomor_lap_kemasyarakatan;?></td>
            </tr>
            <tr>
                <td id="first-child">Tanggal Laporan Kemasyarakatan</td>
               <td><?php echo $this->tanggalhelper->convertDayDate($data_register[0]->tgl_lap_kemasyarakatan);?></td>
            </tr>
            <tr>
                <td id="first-child">Nomor Keputusan Penyidik, Pembimbing Kemasyarakatan dan Pekerja Sosial Profesional
                </td>
                <td><?php echo $data_register[0]->nomor_kep_penyidik;?></td>
            </tr>
            <tr>
                <td id="first-child">Tanggal Keputusan Penyidik, Pembimbing Kemasyarakatan dan Pekerja Sosial Profesional
                </td>
                <td><?php echo $this->tanggalhelper->convertDayDate($data_register[0]->tgl_kep_penyidik);?></td>
            </tr>
             <tr>
                <td id="first-child">Tanggal Dilakukan Tindak Pidana</td>
                <td><?php echo $this->tanggalhelper->convertDayDate($data_register[0]->tgl_tindak_pidana);?></td> 
            </tr>
             <tr>
                <td id="first-child">Uraian Tindak Pidana</td>
                <td><label><?php echo $data_register[0]->uraian_tindak_pidana ?></label></td>
            </tr>
             <tr>
                <td id="first-child">Isi Keputusan Penyidik</td>
                <td><label><?php echo $data_register[0]->isi_kep_penyidik ?></label></td>
            </tr>
            <tr>
                <td id="first-child">Data Anak</td>
                <td colspan="2"> 
                     <?php echo '<a href="#" onClick="popup_form(\''.base_url().'add_pihak_anak_blm_12tahun/'.$enc_id.'/add/'.'\')">[Tambah]</a>'; ?>
                    <?php  if ($data_anak->row()->jumlah_row != 0 ) : ?>
                    <div class="cssTable">
                        <table id="tablePerkaraAll" style="margin:0px;padding:0px;">
                            <col width="5%">
                            <col width="26%">
                            <col width="27%">
                            <col width="13%">
                            <col width="6%">
                            <tbody>
                                <tr>
                                    <td>No</td>
                                    <td>Nama Lengkap</td>
                                    <td>Tempat Lahir</td>
                                    <td>Umur / Tanggal Lahir</td>
                                    <td>Link</td>
                                </tr>
                            <?php foreach ($data_anak->result() as $row) : ?>
                                    <tr>
                                        <td><?php echo ++$no;?></td>
                                        <td><?php echo $row->nama;?></td>
                                         <td><?php echo $row->tempat_lahir;?></td>
                                        <td><?php echo $row->umur.'/'. $this->tanggalhelper->convertDate($row->tanggal_lahir);?></td>
                                        <td><?php 
                                            $idpihak = base64_encode($this->encrypt->encode($row->pihak_id));
                                            $enc=base64_encode($this->encrypt->encode($row->register_id));
                                            $enc_id = base64_encode($this->encrypt->encode($row->id));
                                            $urutan = (empty($row->urutan))? 1:$row->urutan;
                                            echo '<a href="#" onClick="popup_form(\''.base_url('add_pihak_anak_blm_12tahun/'.$enc.'/edit/'.$idpihak).'/urt/'.$urutan.'/'.$enc_id.'\')">[ Edit ]</a>';?></td>

                                    </tr>

                            <?php endforeach ?>
                            </tbody>
                        </table>
                    </div>
                    <?php endif ?>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<script type="text/javascript">
$('#kembali_kelist_anak_12tahun').click(function(){
    openLoadingDialog();
    window.open('<?php echo base_url().$history;?>','_self');
})

</script>