fixes of kelulusan and resit and marhun and notifikasi

This commit is contained in:
hafifierahman
2021-01-14 08:48:25 +08:00
parent a32deccf82
commit f6de532b78
16 changed files with 1162 additions and 87 deletions
+6 -4
View File
@@ -94,8 +94,10 @@
<!-- Right Side Of Navbar -->
<ul class="navbar-nav ml-auto">
@php $auth_user = Auth::user(); @endphp
@if ($auth_user['roles'] == 'khazanah')
@if ($auth_user['roles'] == 'ppc' || $auth_user['roles'] == 'pc')
<li class="nav-item dropdown" style="margin-right:10px;">
<a id="navbarDropdown" class="nav-link " href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
<i id="bell" class="fa fa-bell"></i>
@@ -113,7 +115,7 @@
<script>
// Enable pusher logging - don't include this in production
Pusher.logToConsole = true;
// Pusher.logToConsole = true;
var pusher = new Pusher('26b0ec2f297f94b7aa9b', {
cluster: 'ap1',
@@ -170,7 +172,7 @@
<script>
// Enable pusher logging - don't include this in production
Pusher.logToConsole = true;
// Pusher.logToConsole = true;
var pusher = new Pusher('26b0ec2f297f94b7aa9b', {
cluster: 'ap1',
@@ -226,7 +228,7 @@
@endif
@else
<li class="nav-item dropdown">
<a id="navbarDropdown" class="nav-link dropdown-toggle" onclick="trigbiasa()" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
{{ Auth::user()->name }}
</a>
@@ -197,6 +197,65 @@
});
</script>
@elseif($auth_user['roles'] == 'operasi')
<li class="nav-item dropdown" style="margin-right:10px;">
<a id="navbarDropdown" class="nav-link " href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
<i id="bell" class="fa fa-bell"></i>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<div id="divbiasa">
<a class="dropdown-item" id="gadailinkz" href="#">
Tiada Data
</a>
</div>
</div>
</li>
<script>
// Enable pusher logging - don't include this in production
Pusher.logToConsole = true;
var pusher = new Pusher('26b0ec2f297f94b7aa9b', {
cluster: 'ap1',
encrypted: true
});
var channel = pusher.subscribe('status-liked');
channel.bind('my-event', function(data) {
let message = JSON.stringify(data);
$('#bell').css("color", "red");
$('#linkz').text("Teller Pohon Kelulusan");
$("#linkz").attr("href", "{{ url('kelulusan') }}");
const Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 5000,
timerProgressBar: true,
didOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
})
Toast.fire({
icon: 'error',
title: 'Kelulusan Dipohon Sekarang!'
})
});
$("#navbarDropdown").click(function(){
$('#bell').css("color", "grey");
});
</script>
@endif