fix panjar

This commit is contained in:
fifi97
2021-07-08 10:42:49 +08:00
parent 40d426b733
commit f5b8484cd1
3 changed files with 46 additions and 73 deletions
+32 -5
View File
@@ -186,11 +186,38 @@
confirmButtonText: 'Teruskan!'
}).then((result) => {
if (result.isConfirmed) {
Swal.fire(
'Deleted!',
'Your file has been deleted.',
'success'
)
$.ajax({
method: 'post',
url: '{{ route("khazanah.deletepanjar") }}',
data: {
"_token": "{{ csrf_token() }}",
'recno' : rec_no
},
success:function(data){
if(data === 'berjaya')
{
Swal.fire(
'Deleted!',
'Your file has been deleted.',
'success'
)
}else{
Swal.fire(
'Tidak Berjaya!',
'Data tidak berjaya dihapuskan.',
'error'
)
}
}
});
}
});
}