fix skit2
This commit is contained in:
@@ -7,24 +7,6 @@
|
||||
@include('modal.agh')
|
||||
|
||||
|
||||
@if(Session::has('aghinformation'))
|
||||
@php list($message, $type) = explode('|', Session::get('aghinformation')); @endphp
|
||||
<script> Swal.fire({
|
||||
icon: '{{ $type }}',
|
||||
title: 'Status!',
|
||||
text: '{{ $message }}'
|
||||
}).then(function(){
|
||||
|
||||
var type = '{{ $type }}';
|
||||
urlroute = var urlroute = '{{ route("resit.ansurans", ":id") }}';
|
||||
|
||||
if(type === 'success')
|
||||
window.open(urlroute, '_blank');
|
||||
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12 col-lg-12">
|
||||
@@ -425,6 +407,35 @@
|
||||
<script>
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "{{ $cawangan_info['kodcaw'] }}";
|
||||
var ppc = "{{ Auth::user()->name }}";
|
||||
|
||||
//Pusher for AGH
|
||||
|
||||
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
|
||||
cluster: 'ap1',
|
||||
encrypted: true
|
||||
});
|
||||
|
||||
var channel = pusher.subscribe('notice-agh');
|
||||
channel.bind('my-agh', function(data) {
|
||||
|
||||
if(data.kodcaw.toUpperCase() === kodcaw.toUpperCase() && data.pc.toUpperCase() === ppc.toUpperCase())
|
||||
{
|
||||
Swal.fire({
|
||||
icon: data.typeerror,
|
||||
title: data.message
|
||||
}).then(function(){
|
||||
$('#AGHModal').hide();
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
//End Pusher for AGH
|
||||
|
||||
|
||||
|
||||
var tablegadai = $('#myTable').DataTable({
|
||||
"scrollX": true
|
||||
@@ -543,6 +554,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
function checkAGH()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function checktuntutbaki(e)
|
||||
{
|
||||
let tarikhtuntut = $(e).data('tarikhtuntut');
|
||||
|
||||
Reference in New Issue
Block a user