<div class="app-menu">
                <ul class="accordion-menu">
                  
                    <li>
                        <a href="index.php"><i class="fa fa-home"></i>Home</a>
                    </li>
                  <li>
                        <a href="?"><i class="fa fa-tachometer-alt"></i>Beranda</a>
                    </li>
                   
                   <li>
                        <a href="?pg=settinbk"><i class="fa fa-tools"></i>Pengaturan Konseling</a>
                    </li>
				
				  <li>
                   <a href=""><i class="fa fa-tachometer-alt"></i> Master Pelanggaran <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
                       <li>
					  <a href="?pg=kategori">Kategori Pelanggaran</a>
                    </li>
				 <li>
                        <a href="?pg=subkategori">Sub Kategori Pelanggaran</a>
                    </li>
				 <li>
                        <a href="?pg=pelanggaran">Jenis Pelanggaran</a>
                    </li>
			</ul>
			</li>
			 <li>
                        <a href="?pg=tindakan"><i class="fa fa-users-cog"></i>Setting Tindakan</a>
                    </li>
					
				 <li>
                   <a href=""><i class="fa fa-envelope"></i>Data Surat Peringatan <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
                       <li>
					  <a href="?pg=surat">Surat Peringatan 1</a>
                    </li>
				 <li>
                        <a href="?pg=surat&ac=sp2">Surat Peringatan 2</a>
                    </li>
				 <li>
                        <a href="?pg=surat&ac=sp3">Surat Peringatan 3</a>
                    </li>
			</ul>
			</li>	
					 <li>
                        <a href="#" id="btnxml"><i class="fa fa-trash"></i>Reset Pelanggaran</a>
						
                    </li>
					
					
                </ul>
            </div>
        </div>
		<script>
   $("#btnxml").click(function() {
        var id = $(this).data('id');
        swal({
            title: 'Konfirmasi ',
            text: 'Yakin akan mereset data ini??',
            type: 'warning',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: 'Ya, Reset!'
        }).then((result) => {
            if (result.value) {
                $.ajax({
                    url: '?pg=surat&ac=reset',
                    data: "id=" + id,
                    type: "POST",
                    success: function(respon) {
                        iziToast.info(
            {
                title: 'Sukses!',
                message: 'Data berhasil direset',
				titleColor: '#FFFF00',
				messageColor: '#fff',
				backgroundColor: 'rgba(0, 0, 0, 0.5)',
				 progressBarColor: '#FFFF00',
                  position: 'topRight'		  
                });
                        setTimeout(function() {
                            window.location.reload();
                        }, 2000);
                    }
                });
            }
            return false;
        })

    });
</script>