<?php $AuthorizationAction = $this->nativesession->get('getAuthorizationAction');?>
<div style="font-size:14px;margin:0px;border:0px;">
    <table id='infoPerkara' style="font-size:14px;width:100%;">
        <col width="15%">
        <col width="85%">
        <tbody>
            <tr>
                <td class="divider" colspan="2">Data Permohonan Keberatan</td>
            </tr>
        </tbody>
    </table>
    
	<table id="infoPerkara" style="font-size:14px;width:100%;" >
    	<col width="20%">
        <col width="45%">
        <col width="15%">
        <col width="20%">
        <tbody>           
        	<tr>
            	<td id="first-child">Nomor Perkara</td>
                <td>
                	<span><?php echo $nomor_perkara;?></span>
                </td>
                <td align="right">
                    <?php
                    if (($this->authorization->HasRuleEditDataBanding(8, $perkara_id) OR $this->authorization->HasRuleEditDataBanding(17, $perkara_id)) AND empty($putusan_keberatan)){    
                    ?>
                        <a href="#" onClick="popup_form('<?php echo base_url('add_pihak_keberatan/'.$enc);?>')" class="btn btn-default btn-sm">Add Pihak Permohonan</a></br>         
                    <?php
                    }
                    ?>
                </td>
                <td align="right">
                    <?php
                    if (($this->authorization->HasRuleEditDataBanding(8, $perkara_id) OR $this->authorization->HasRuleEditDataBanding(17, $perkara_id)) AND empty($putusan_keberatan)){    
                    ?>
                        <a href="#" onClick="popup_form('<?php echo base_url('edit_keberatan/'.$enc);?>')" class="btn btn-default btn-sm">Edit Data Permohonan Keberatan</a></br>         
                    <?php
                    }
                    ?>
                </td>
            </tr>
            <tr>
            	<td id="first-child">Tanggal Putusan</td>
                <td colspan="3">
                	<span><?php echo $this->tanggalhelper->convertDayDate($tanggal_putusan);?></span>
                </td>
            </tr>
            <tr>
                <td id="first-child">Para Pihak</td>
                <td colspan="3">
                    <span><?php echo $pemohon;?></span>
                </td>
            </tr>
            <tr>
            	<td id="first-child">Tanggal Pendaftaran Keberatan</td>
                <td colspan="3">
                	<span><?php echo $this->tanggalhelper->convertDayDate($tanggal_pendaftaran_keberatan);?></span>
                </td>
            </tr>        
        </tbody>
    </table>
    <div style="padding:3px;"></div>
    <table id='infoPerkara' style="font-size:14px;width:100%;">
        <col width="15%">
        <col width="85%">
        <tbody>
            <tr>
                <td class="divider" colspan="2">Data Proses Keberatan</td>
            </tr>
        </tbody>
    </table>
    <table id="infoPerkara" style="font-size:14px;width:100%;">
        <col width="20%">
        <col width="70%">
        <col width="10%">
        <tbody>
            <tr>
                <td id="first-child">Tanggal Penerimaan Memori</td>
                <td>
                    <span><?php echo $this->tanggalhelper->convertDayDate($penerimaan_memori);?></span>
                </td>
                <?php if ($this->authorization->HasRuleEditVerzet() AND !empty($tanggal_pendaftaran_keberatan) AND empty($putusan_keberatan)){?>               
                    <td align="right">                    
                        <a href="#" onClick="popup_form('<?php echo base_url('edit_keberatan_memori/'.$enc);?>')" class="btn btn-default btn-sm">Edit Data Proses</a></br>
                    </td>
                <?php } ?>
            </tr>
            <tr>
                <td id="first-child">Tanggal Penyerahan Memori</td>
                <td colspan="2">
                    <span><?php echo $this->tanggalhelper->convertDayDate($penyerahan_memori);?></span>
                </td>
            </tr>
            <tr>
                <td id="first-child">Tanggal Penerimaan Kontra Memori</td>
                <td colspan="2">
                    <span><?php echo $this->tanggalhelper->convertDayDate($penerimaan_kontra_memori);?></span>
                </td>
            </tr>
            <tr>
                <td id="first-child">Tanggal Penyerahan Kontra Memori</td>
                <td colspan="2">
                    <span><?php echo $this->tanggalhelper->convertDayDate($penyerahan_kontra_memori);?></span>
                </td>
            </tr>
            
        </tbody>
    </table>
    <div style="padding:3px;"></div>
    <table id='infoPerkara' style="font-size:14px;width:100%;">
        <col width="15%">
        <col width="85%">
        <tbody>
            <tr>
                <td class="divider" colspan="2">Data Penetapan Majelis Hakim</td>
            </tr>
        </tbody>
    </table>
    <table id="infoPerkara" style="font-size:14px;width:100%;">
        <col width="20%">
        <col width="60%">
        <col width="20%">
        <tbody>
            <tr>
                <td id="first-child">Tanggal Penetapan Majelis</td>
                <td>
                    <span>
                        <?php echo $this->tanggalhelper->convertDayDate($penetapan_majelis_hakim);?>
                    </span>
                </td>
                <?php if ($this->authorization->HasRuleAddPenetapanHakim() AND !empty($tanggal_pendaftaran_keberatan) AND empty($putusan_keberatan)){?>
                <td align="right">
                    <a href="#" onClick="popup_form('<?php echo base_url('edit_keberatan_pen_majelis/'.$enc);?>')" class="btn btn-default btn-sm">Edit Penetapan Majelis</a></br>         
                </td>
                <?php } ?>
            </tr>
            <tr>
                <td id="first-child">Majelis Hakim</td>
                <td colspan="2">
                    <span><?php echo $majelis_hakim_text;?></span>
                </td>
            </tr>                        
        </tbody>
    </table>
    <div style="padding:3px;"></div>
    <table id='infoPerkara' style="font-size:14px;width:100%;">
        <col width="15%">
        <col width="85%">
        <tbody>
            <tr>
                <td class="divider" colspan="2">Data Penunjukan Panitera & Jurusita</td>
            </tr>
        </tbody>
    </table>
    <table id="infoPerkara" style="font-size:14px;width:100%;">
        <col width="20%">
        <col width="60%">
        <col width="20%">
        <tbody>
            <tr>
                <td id="first-child">Tanggal Penetapan Panitera Pengganti</td>
                <td>
                    <span>
                        <?php echo $this->tanggalhelper->convertDayDate($penetapan_panitera_pengganti);?>
                    </span>
                </td>
                <?php if ($this->authorization->HasRuleAddPenetapanPanitera($perkara_id, 1) AND !empty($penetapan_majelis_hakim) AND empty($putusan_keberatan)){?>
                <td align="right">
                    <a href="#" onClick="popup_form('<?php echo base_url('edit_keberatan_pen_panitera/'.$enc);?>')" class="btn btn-default btn-sm">Edit Penetapan Panitera Pengganti</a></br>
                </td>
                <?php } ?>
            </tr>
            <tr>
                <td id="first-child">Panitera Pengganti</td>
                <td colspan="2">
                    <span><?php echo $panitera_pengganti_text;?></span>
                </td>
            </tr>            
            <tr><td style='background:#A3DBA8;'></td></tr>
            <tr>
                <td id="first-child">Tanggal Penetapan Jurusita</td>
                <td>
                    <span>
                        <?php echo $this->tanggalhelper->convertDayDate($penetapan_jurusita);?>
                    </span>
                </td>
                <?php 
                if (($this->authorization->HasRuleAddPenetapanJurusita(8,$perkara_id,1) OR $this->authorization->HasRuleAddPenetapanJurusita(17,$perkara_id,1)) AND !empty($penetapan_panitera_pengganti) AND empty($putusan_keberatan)){
                echo '<td align="right">';
                    echo '<a href="#" onClick="popup_form(\''.base_url('edit_keberatan_pen_jurusita/'.$enc).'\')" class="btn btn-default btn-sm">Edit Penunjukan Jurusita</a></br>';
                echo '</td>';
                }                 
                ?>
            </tr>
            <tr>
                <td id="first-child">Jurusita</td>
                <td colspan="2">
                    <span><?php echo $jurusita_text;?></span>
                </td>
            </tr>            
        </tbody>
    </table>
    <div style="padding:3px;"></div>
    <table id='infoPerkara' style="font-size:14px;width:100%;">
        <col width="15%">
        <col width="85%">
        <tbody>
            <tr>
                <td class="divider" colspan="2">Data Penetapan Hari Sidang</td>
            </tr>
        </tbody>
    </table>
    <table id="infoPerkara" style="font-size:14px;width:100%;">
        <col width="20%">
        <col width="60%">
        <col width="20%">
        <tbody>
            <tr>
                <td id="first-child">Tanggal Penetapan Sidang Keberatan</td>
                <td>
                    <span>
                        <?php echo $this->tanggalhelper->convertDayDate($tanggal_penetapan_sidang_keberatan);?>
                    </span>
                </td>
                <?php if ($this->authorization->HasRuleAddPenetapanSidangPertama($perkara_id,1) AND !empty($penetapan_jurusita) AND empty($putusan_keberatan)){    ?>
                <td align="right">
                    <a href="#" onClick="popup_form('<?php echo base_url('edit_keberatan_pen_sidang/'.$enc);?>')" class="btn btn-default btn-sm">Edit Penetapan Sidang Pertama</a></br>         
                </td>
                <?php } ?>
            </tr>
            <tr>
                <td id="first-child">Tanggal Sidang Keberatan</td>
                <td colspan="2">
                    <span><?php echo $this->tanggalhelper->convertDayDate($tanggal_sidang_pertama_keberatan);?></span>
                </td>
            </tr>            
        </tbody>
    </table>
    <div style="padding:3px;"></div>
    <table id='infoPerkara' style="font-size:14px;width:100%;">
        <col width="15%">
        <col width="85%">
        <tbody>
            <tr>
                <td class="divider" colspan="2">Data Putusan</td>
            </tr>
        </tbody>
    </table>
    <table id="infoPerkara" style="font-size:14px;width:100%;">
        <col width="20%">
        <col width="60%">
        <col width="20%">
        <tbody>
            <tr>
            	<td id="first-child">Putusan Keberatan</td>
                <td>
                 	<span>                    	
                    	<?php echo $this->tanggalhelper->convertDayDate($putusan_keberatan);?>
                    </span>
                </td>
                <?php                 
                $canedit = TRUE;
                if ($this->authorization->HasRuleFormHakimPanitera($perkara_id) AND $canedit AND !empty($penetapan_jurusita)){
                ?>                    
                <td align="right">
                    <a href="#" onClick="popup_form('<?php echo base_url('edit_keberatan_putusan/'.$enc);?>')" class="btn btn-default btn-sm">Edit Data Putusan Keberatan</a></br>         
                </td>
                <?php } ?>
            </tr>
            <tr>
            	<td id="first-child">Status Putusan Keberatan</td>
                <td colspan="2">
                 	<span><?php echo ($status_putusan_keberatan_text);?></span>
                </td>
            </tr>
            <tr>
            	<td id="first-child">Amar Putusan Keberatan</td>
                <td colspan="2" style="background:white;">
					<span><?php echo $amar_putusan_keberatan; ?></span>
				</td>
            </tr>
            <tr>
            	<td id="first-child">Dokumen Amar Putusan Keberatan</td>
                <td colspan="2">
                <?php
                    $baseurl=$row->amar_putusan_keberatan_dok;
                    if (($baseurl) and (file_exists($baseurl))){
                        echo "<br><a target='_new' href=$baseurl>Unduh Dokumen</a>";
                    }else{
                        echo "<br><span style='color:red;font-weight:bold'>Dokumen Belum Ada</span>";
                    }
                ?>                	
                </td>
            </tr>
            <?php if ($this->authorization->HasRuleAddJadwalSidang($perkara_id,1) AND !empty($tanggal_sidang_pertama_keberatan)){?>
            <tr>
                <td id="first-child">Cetak Dokumen Putusan</td>
                <td colspan="2">
                    <span class="custom-dropdown custom-dropdown--emerald">
                        <select onchange="pilih_cetak(this)" style="width:200px;z-index:99999" class="custom-dropdown__select custom-dropdown__select--white">
                            <option value='1'>Pilih Dokumen Putusan</option>
                            <option value="<?php echo base_url("c_template_putusan_perdata/popup_putusan_perdata_keberatan/".$enc);?>">Putusan Perdata Sederhana Keberatan</option>
                        </select>
                    </span>
                </td>
            </tr>
            <?php } ?>
            
        </tbody>
    </table>
    <div style="padding:3px;"></div>
    <table id='infoPerkara' style="font-size:14px;width:100%;">
        <col width="15%">
        <col width="85%">
        <tbody>
            <tr>
                <td class="divider" colspan="2">Data Pemberitahuan Putusan</td>
            </tr>
        </tbody>
    </table>
    <table id="infoPerkara" style="font-size:14px;width:100%;" >
        <col width="20%">
        <col width="60%">
        <col width="20%">
        <tbody>
            <tr>
                <td id="first-child">Pemberitahuan Putusan</td>
                <td>
                    <span><?php echo $this->tanggalhelper->convertDayDate($pemberitahuan_putusan); ?></span>
                </td>
                <?php
                if ($this->authorization->HasRuleEditVerzet() AND !empty($putusan_keberatan)){ 
                ?>
                <td align="right">
                   <a href="#" onClick="popup_form('<?php echo base_url('edit_keberatan_pemberitahuan/'.$enc);?>')" class="btn btn-default btn-sm">Edit Data Pemberitahuan</a></br>         
                </td>
                <?php } ?>
            </tr>
            <tr>
                <td id="first-child">Tanggal Pemberitahuan Putusan Keberatan Kepada Penggugat</td>
                <td colspan="2">
                    <span><?php echo $this->tanggalhelper->convertDayDate($pemberitahuan_putusan_keberatan_pihak1);?></span>
                </td>
            </tr>
            <tr>
                <td id="first-child">Tanggal Pemberitahuan Putusan Keberatan Kepada Tergugat</td>
                <td colspan="2">
                    <span><?php echo $this->tanggalhelper->convertDayDate($pemberitahuan_putusan_keberatan_pihak2);?></span>
                </td>
            </tr>
            <tr>
                <td id="first-child">Tanggal Minutasi Keberatan</td>
                <td colspan="2">
                    <span><?php echo $this->tanggalhelper->convertDayDate($tanggal_minutasi_keberatan);?></span>
                </td>
            </tr>            
        </tbody>
    </table>    
</div>
<script type="text/javascript">
closeLoading();
</script>