tebus separuh

This commit is contained in:
afiq
2021-02-28 11:05:42 +08:00
parent f10749b1c4
commit b674864086
12 changed files with 78 additions and 41 deletions
+9 -9
View File
@@ -1145,21 +1145,21 @@
success:function(data){
console.log(data);
}, error: function(xhr, status, error) {
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
}
});
var urlroute = '{{ route("resit.tebusseparuh", ":id") }}';
urlroute = urlroute.replace(':id', norujukan);
Swal.fire(
'Berjaya!',
'Tebus Separuh Berjaya',
'success'
) .then(function() {
window.open(urlroute, '_blank');
window.location.replace("{{ url()->previous() }}");
})
'Berjaya!',
'Tebus Separuh Berjaya',
'success'
) .then(function() {
window.open(urlroute, '_blank');
window.location.replace("{{ url()->previous() }}");
})
},error: function (request, status, error) {
console.log(request.responseText);
}