![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/pdf-ai.com/public_html/resources/views/layouts/ |
<!-- Back to top -->
<a href="#top" id="back-to-top"><i class="fa fa-angle-double-up"></i></a>
<!-- Jquery -->
<script src="{{URL::asset('plugins/jquery/jquery-3.6.0.min.js')}}"></script>
<!-- Bootstrap 5 -->
<script src="{{URL::asset('plugins/bootstrap-5.0.2/js/bootstrap.bundle.min.js')}}"></script>
<!-- Sidemenu -->
<script src="{{URL::asset('plugins/sidemenu/sidemenu.js')}}"></script>
<!-- P-scroll -->
<script src="{{URL::asset('plugins/p-scrollbar/p-scrollbar.js')}}"></script>
<script src="{{URL::asset('plugins/p-scrollbar/p-scroll.js')}}"></script>
@yield('js')
<!-- Simplebar JS -->
<script src="{{URL::asset('plugins/simplebar/js/simplebar.min.js')}}"></script>
<!-- Tippy JS -->
<script src="{{URL::asset('plugins/tippy/popper.min.js')}}"></script>
<script src="{{URL::asset('plugins/tippy/tippy-bundle.umd.min.js')}}"></script>
<!-- Toastr JS -->
<script src="{{URL::asset('plugins/toastr/toastr.min.js')}}"></script>
<!-- Custom js-->
<script src="{{URL::asset('js/custom.js')}}"></script>
<!-- Google Analytics -->
@if (config('services.google.analytics.enable') == 'on')
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config('services.google.analytics.id') }}"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ config('services.google.analytics.id') }}');
</script>
@endif
<!-- Mark as Read JS-->
<script type="text/javascript">
function sendMarkRequest(id = null) {
return $.ajax("{{ route('user.notifications.mark') }}", {
method: 'POST',
data: {"_token": "{{ csrf_token() }}", id}
});
}
var totalNotifications;
var totalNotifications_a;
var totalNotifications_b;
$(function() {
$('.mark-as-read').on('click', function() {
let request = sendMarkRequest($(this).data('id'));
request.done(() => {
$(this).parents('div.dropdown-item').remove();
});
document.getElementById("total-notifications").innerHTML = --totalNotifications;
document.getElementById("total-notifications-a").innerHTML = --totalNotifications_a;
document.getElementById("total-notifications-b").innerHTML = --totalNotifications_b;
});
$('#mark-all').on('click', function() {
let request = sendMarkRequest();
request.done(() => {
$('div.notify-menu').remove();
})
document.getElementById("total-notifications").innerHTML = 0;
});
});
$(document).ready(function(){
if (document.getElementById("total-notifications")) {
totalNotifications = "{{ auth()->user()->unreadNotifications->where('type', '<>', 'App\Notifications\GeneralNotification')->count() }}";
document.getElementById("total-notifications").innerHTML = totalNotifications;
}
if (document.getElementById("total-notifications-a")) {
totalNotifications_a = "{{ auth()->user()->unreadNotifications->where('type', '<>', 'App\Notifications\GeneralNotification')->count() }}";
document.getElementById("total-notifications-a").innerHTML = totalNotifications_a;
}
if (document.getElementById("total-notifications-b")) {
totalNotifications_b = "{{ auth()->user()->unreadNotifications->where('type', '<>', 'App\Notifications\GeneralNotification')->count() }}";
document.getElementById("total-notifications-b").innerHTML = totalNotifications_b;
}
});
tippy('[data-tippy-content]', {
animation: 'scale-extreme',
theme: 'material',
});
toastr.options.showMethod = 'slideDown';
toastr.options.hideMethod = 'slideUp';
toastr.options.progressBar = true;
</script>