HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/hrms-production/resources/views/components/dashboard-modal.blade.php
{{-- Ajax Data --}}
<script>
    $(document).ready(function() {
        $.ajax({
        type: "GET",
        url: "{{ url('/get-pending-verification') }}",
        dataType: "json",
        success: function(response) {

            if (response.GetEmpPendingCategoryDetail > 0) {
                $("span#GetEmpPendingCategoryDetail").html(response.GetEmpPendingCategoryDetail);
            } else {
                $('#GetEmpPendingCategoryDetail_li').css('display', 'none')
            }

            if (response.PendingPoliceVerification > 0) {
                $("span#PendingPoliceVerification").html(response.PendingPoliceVerification);
            } else {
                $('#PendingPoliceVerification_li').css('display', 'none')
            }
            if (response.PendingMedicalCertificate > 0) {
                $("span#PendingMedicalCertificate").html(response.PendingMedicalCertificate);
            } else {
                $('#PendingMedicalCertificate_li').css('display', 'none')
            }
            // if (response.TotalPendingEligibilityExamEmp > 0) {
            //     $("span#TotalPendingEligibilityExamEmp").html(response.TotalPendingEligibilityExamEmp);
            // } else {
            //     $('#TotalPendingEligibilityExamEmp_li').css('display', 'none')
            // }

            if (response.GetPendingPermanency > 0) {
                $("span#GetPendingPermanency").html(response.GetPendingPermanency);
            } else {
                $('#GetPendingPermanency_li').css('display', 'none')
            }

            if (response.GetPendingProbationPeriod > 0) {
                $("span#GetPendingProbationPeriod").html(response.GetPendingProbationPeriod);
            } else {
                $('#GetPendingProbationPeriod_li').css('display', 'none')
            }

            if (response.GetPendingEmpAddress > 0) {
                $("span#GetPendingEmpAddress").html(response.GetPendingEmpAddress);
            } else {
                $('#GetPendingEmpAddress_li').css('display', 'none')
            }

            if (response.GetEmpPendingGeneralDetail > 0) {
                $("span#GetEmpPendingGeneralDetail").html(response.GetEmpPendingGeneralDetail);
            } else {
                $('#GetEmpPendingGeneralDetail_li').css('display', 'none')
            }
            
            if (response.GetEmpPendingPensionScheme > 0) {
                $("span#GetEmpPendingPensionScheme").html(response.GetEmpPendingPensionScheme);
            } else {
                $('#GetEmpPendingPensionScheme_li').css('display', 'none')
            }

            if (response.GetPendingTenurePeriod > 0) {
                $("span#GetPendingTenurePeriod").html(response.GetPendingTenurePeriod);
            } else {
                $('#GetPendingTenurePeriod_li').css('display', 'none')
            }

            if (response.TotalNotification > 0) {
                $("span#TotalEmpNotification").html(response.TotalNotification);
            } else {
                $("span#totalEmployeeNo").css('display', 'none');
            }

            // All Employees Count
            $("span#AllEmployeeCount").html(response.GetAllEmpCount);

            // Pending Approval
            $("span#PendingApproval").html(response.GetPendinApproval);
            
        }
    });
  });
</script>