fix kelulusan

This commit is contained in:
hafifierahman
2021-01-17 08:47:05 +08:00
parent fb6d301884
commit 8f7ce44ee9
11 changed files with 340 additions and 208 deletions
+10 -2
View File
@@ -122,12 +122,18 @@
encrypted: true
});
var cawangankhazanah = '{{ $auth_user["cawangan"] }}';
var channel = pusher.subscribe('status-liked');
channel.bind('my-event', function(data) {
let message = JSON.stringify(data);
// let message = JSON.stringify(data);
if(cawangankhazanah == data.cawangan)
{
$('#bell').css("color", "red");
$('#linkz').text("Teller Pohon Kelulusan");
$('#linkz').text(data.namateller + " Memohon Kelulusan");
$("#linkz").attr("href", "{{ url('kelulusan') }}");
const Toast = Swal.mixin({
@@ -146,6 +152,8 @@
icon: 'error',
title: 'Kelulusan Dipohon Sekarang!'
})
}
});
@@ -223,12 +223,12 @@
encrypted: true
});
var channel = pusher.subscribe('status-liked');
channel.bind('my-event', function(data) {
var channel = pusher.subscribe('operasi-notify');
channel.bind('operasi-event', function(data) {
let message = JSON.stringify(data);
$('#bell').css("color", "red");
$('#linkz').text("Teller Pohon Kelulusan");
$('#linkz').text(data.namateller + " Pohon Kelulusan");
$("#linkz").attr("href", "{{ url('kelulusan') }}");
const Toast = Swal.mixin({