https://www.moi.gov.kw/main/eservices/gdt/violation-enquiry

提交的 URL:
https://moi.gvokws.com/已重定向
报告完成时间:
链接文本
https://nat.moi.gov.kw/citizenship-passport.nsf/Main?OpenForm&langid=1الإدارة العامة للجنسية ووثائق السفر
https://nat5.moi.gov.kw/Coast-Guard.nsf/Main?openform&langid=1الإدارة العامة لخفر السواحل
https://rnt.moi.gov.kw/pas/الإدارة العامة لشؤون قوة الشرطة
https://nat4.moi.gov.kw/saad-abdullah-academy.nsfأكاديمية سعد العبدالله للعلوم الأمنية
https://eservices5.moi.gov.kw/Investigations.nsfالإدارة العامة للتحقيقات
https://eservices2.moi.gov.kw/Correctional-Facilities.nsf/Main?OpenForm&LangID=1الإداره العامة للمؤسسات الإصلاحية
https://eservices.moi.gov.kw:45314/verify/qrcode التحقق من الوثائق
https://eservices1.moi.gov.kw/moicus.nsf/moicus?openform&LangID=1 يهمنا رايك
https://meta.e.gov.kw/ منصة 'متى'
https://nat2.moi.gov.kw/MOIBioEnrol.nsf/initRequest?OpenForm&LangID=1 حجز موعد البصمة البيومترية للخليجيين
名称类型
0object
1object
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
stateboolean
toggleFormsSideBarfunction
regStateboolean
toggleRegSideBarfunction
$function
类型类别记录
errornetwork
URL
https://www.moi.gov.kw/main/images/assets/national-security/ico-nat-security.svg
文本
Failed to load resource: the server responded with a status of 404 ()
<!DOCTYPE html><html lang="ar" dir="rtl"><head><meta http-equiv="origin-trial" content="A/kargTFyk8MR5ueravczef/wIlTkbVk1qXQesp39nV+xNECPdLBVeYffxrM8TmZT6RArWGQVCJ0LRivD7glcAUAAACQeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZS5jb206NDQzIiwiZmVhdHVyZSI6IkRpc2FibGVUaGlyZFBhcnR5U3RvcmFnZVBhcnRpdGlvbmluZzIiLCJleHBpcnkiOjE3NDIzNDIzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>General Department of Traffic - Ministry of Interior - Kuwait</title>
    <link rel="icon" type="image/x-icon" href="/main/favicon.ico">
    
    
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" crossorigin="anonymous" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T">
<meta name="x-stylesheet-fallback-test" content="" class="sr-only"><script type="text/javascript" async="" charset="utf-8" src="https://www.gstatic.com/recaptcha/releases/zIriijn3uj5Vpknvt_LnfNbF/recaptcha__en.js" crossorigin="anonymous" integrity="sha384-8mJgBUBw4uTWF9Ooxgb4sUuO9jKtaVm1I+8vb0qpxxX3cafec7ovH+goM3yD4UyO"></script><script>!function(a,b,c,d){var e,f=document,g=f.getElementsByTagName("SCRIPT"),h=g[g.length-1].previousElementSibling,i=f.defaultView&&f.defaultView.getComputedStyle?f.defaultView.getComputedStyle(h):h.currentStyle;if(i&&i[a]!==b)for(e=0;e<c.length;e++)f.write('<link href="'+c[e]+'" '+d+"/>")}("position","absolute",["/main/lib/bootstrap/dist/css/bootstrap.min.css"], "rel=\u0022stylesheet\u0022 crossorigin=\u0022anonymous\u0022 integrity=\u0022sha384-ggOyR0iXCbMQv3Xipma34MD\u002BdH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\u0022 ");</script>
        <link rel="stylesheet" href="/main/lib/fontawesome/css/all.css">
    
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-star-rating/4.0.6/css/star-rating.min.css" media="all" rel="stylesheet" type="text/css">
    <!-- optionally if you need to use a theme, then include the theme CSS file as mentioned below -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-star-rating/4.0.6/themes/krajee-svg/theme.css" media="all" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/main/css/site.css?v=go_4IccMhw1NChPOSH_W7AbpThLoN7-zMHFe4trNRE0">
    <style>
        .dropdown:hover > .dropdown-menu {
            display: block;
            margin-top: 0;
        }

    </style>
</head>
<body>

    <div class="container">
        <header>
            <div class="row">
                <div class="col-4 col-md-2 col-lg-2 text-center" style="border:0px solid red;">
                    <a class="navbar-brand m-0" href="/main/">
                        <img src="/main/images/assets/common/logo-moi.svg" style="height: 120px;">
                    </a>
                </div>
                <div class="col-1 align-self-center" style="border:0px solid red;">
                    <div class="row">
                        <div class="col text-center">
                            <img src="/main/images/assets/common/ar/state-of-kuwait.svg" class="text-center main-header-title">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col text-center">
                            <img src="/main/images/assets/common/ar/ministry-of-interior.svg" class="mt-2 main-header-title">
                        </div>
                    </div>
                </div>
            </div>
            <nav class="navbar navbar-expand-lg navbar-dark border-bottom box-shadow">
                <div class="container">
                    <a class="navbar-brand" href="/main"></a>
                    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="navbar-collapse collapse flex-sm-row-reverse" id="navbarResponsive">
                        <ul class="navbar-nav flex-grow-1 p-0 clearfix" style="margin:0 auto;vertical-align:top;border:0px solid red;">
                            <li class="nav-item">
                                <a class="nav-link" href="/main">
                                    الرئيسيــة
                                    <span class="sr-only">(current)</span>
                                </a>
                            </li>

                            <li class="nav-item active" id="eservicesMenu" data-trigger="focus">
                                <a href="#" id="nav-eServices" class="nav-link" data-target="#eservices" data-toggle="collapse" aria-expanded="false" aria-controls="eservices">
                                    الخدمات الإلكترونيـة
                                </a>
                                <span class="collapse navbar-submenu" id="eservices" data-parent="#navbarResponsive">
                                    <ul class="nav justify-content-center pt-2 pb-2 pl-3 pr-3" style="border:0px solid red;">
                                        <li class="nav-item m-0">
                                            <a href="/main/eservices">
                                                <img src="/main/images/assets/it-comm/ico-it-communications.svg" alt="Information Systems" class="menu-icon">
                                            </a>
                                            <a class="nav-link active" href="/main/eservices">
                                                <div class="main-menu-text">الإدارة العامة
لنظم المعلومات</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="/gdt">
                                                <img src="/main/images/assets/general-traffic/ico-general-traffic.svg" alt="Traffic" class="menu-icon">
                                            </a>
                                            <a href="/gdt" class="nav-link">
                                                <div class="main-menu-text">الإدارة العامة
للمرور</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="https://nat.moi.gov.kw/citizenship-passport.nsf/Main?OpenForm&amp;langid=1">
                                                <img src="/main/images/assets/citizenship-passport/ico-citizenship-passport.svg" alt="Citizenship" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="https://nat.moi.gov.kw/citizenship-passport.nsf/Main?OpenForm&amp;langid=1">
                                                <div class="main-menu-text">الإدارة العامة
للجنسية ووثائق السفر</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="/main/eservices/residence">
                                                <img src="/main/images/assets/residency/ico-residence.svg" alt="Immigration" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/eservices/residence">
                                                <div class="main-menu-text">الإدارة العامة
لشؤون  الإقامة</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="/main/eservices/civildefence">
                                                <img src="/main/images/assets/civil-defence/ico-civil-defence.svg" alt="Civil Defence" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/eservices/civildefence">
                                                <div class="main-menu-text">الإدارة العامة
للدفاع المدني</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="/main/eservices/servicecentres">
                                                <img src="/main/images/assets/service-centres/ico-service-centre.svg" alt="Service Centres" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/eservices/servicecentres">
                                                <div class="main-menu-text">الإدارة العامة
لمراكز الخدمة</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="https://nat5.moi.gov.kw/Coast-Guard.nsf/Main?openform&amp;langid=1">
                                        <img src="/main/images/assets/coast-guard/ico-coast-guard.svg" alt="Coast Guard" class="menu-icon">
                                        </a>
                                            <a class="nav-link" href="https://nat5.moi.gov.kw/Coast-Guard.nsf/Main?openform&amp;langid=1">
                                        <div class="main-menu-text">الإدارة العامة
لخفر السواحل</div>
                                        </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="https://rnt.moi.gov.kw/pas/">
                                                <img src="/main/images/assets/ico-shoon-quwa.svg" alt="Police Affairs" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="https://rnt.moi.gov.kw/pas/">
                                                <div class="main-menu-text">الإدارة العامة
لشؤون قوة الشرطة</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="https://nat4.moi.gov.kw/saad-abdullah-academy.nsf">
                                                <img src="/main/images/assets/academy/ico-police-academy.svg" alt="Saad Abdullah Police Academy" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="https://nat4.moi.gov.kw/saad-abdullah-academy.nsf">
                                                <div class="main-menu-text">أكاديمية سعد العبدالله
للعلوم الأمنية</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="/main/eservices/finance">
                                                <img src="/main/images/assets/finance/ico-finance.svg" alt="Finance" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/eservices/finance">
                                                <div class="main-menu-text">الإدارة العامة
للشؤن المالية</div>
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="https://eservices5.moi.gov.kw/Investigations.nsf">
                                                <img src="/main/images/assets/investigations/ico-investigations.svg" alt="Investigations" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="https://eservices5.moi.gov.kw/Investigations.nsf">
                                                <div class="main-menu-text">الإدارة العامة
 للتحقيقات</div>
                                            </a>
                                        </li>
                                        <li class="nav-item m-0">
                                            <a href="/main/sections/training">
                                                <img src="/main/images/assets/training/ico-training.svg" alt="Training" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/sections/training">
                                                <div class="main-menu-text">الإدارة العامة
للتدريب</div>
                                            </a>
                                        </li>
                                    </ul>

                                </span>

                            </li>

                            <li class="nav-item" id="relatedDepartmentsMenu">
                                <a href="#" id="nav-relDepts" class="nav-link" data-target="#relatedDepts" data-toggle="collapse" aria-expanded="false" aria-controls="relatedDepts">
                                    إدارات توعوية
                                </a>
                                <span id="relatedDepts" class="collapse navbar-submenu" data-parent="#navbarResponsive">
                                    <ul class="nav justify-content-center pt-2 pb-2 pl-3 pr-3" style="border:0px solid red;">
                                        <li class="nav-item m-0">
                                            <a href="/main/sections/cyber-crime">
                                                <img src="/main/images/assets/cyber-crime/ico-cyber-crime.svg" alt="Cyber Crime" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/sections/cyber-crime">
                                                <div class="main-menu-text">إدارة مكافحة 
الجرائم الإلكترونية</div>
                                            </a>
                                        </li>
                                        <li class="nav-item m-0">
                                            <a href="/main/sections/juvenile-protection">
                                                <img src="/main/images/assets/juvenile-protection/ico-juvenile-protection.svg" alt="Juvenile Protection" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/sections/juvenile-protection">
                                                <div class="main-menu-text">إدارة حماية الأحداث</div>
                                            </a>
                                        </li>
                                        <li class="nav-item m-0">
                                            <a href="/main/sections/anti-drug">
                                                <img src="/main/images/assets/anti-drug/ico-anti-drug.svg" alt="Anti Drug" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/sections/anti-drug">
                                                <div class="main-menu-text">الإدارة العامة
لمكافحة المخدرات</div>
                                            </a>
                                        </li>
                                        <li class="nav-item m-0">
                                            <a href="/main/sections/anti-human-trafficking">
                                                <img src="/main/images/assets/cyber-crime/ico-cyber-crime.svg" alt="Anti Human Trafficking" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/sections/anti-human-trafficking">
                                                <div class="main-menu-text">إدارة حماية الآداب العامة
 ومكافحة الإتجار بالأشخاص</div>
                                            </a>
                                        </li>
                                        <li class="nav-item m-0">
                                            <a href="/main/sections/security-media">
                                                <img src="/main/images/assets/security-media/ico-security-media.svg" alt="Security Media Dept" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/sections/security-media">
                                                <div class="main-menu-text">الإدارة العامة
 للعلاقات والإعلام الأمني</div>
                                            </a>
                                        </li>
                                        <li class="nav-item m-0">
                                            <a href="https://eservices2.moi.gov.kw/Correctional-Facilities.nsf/Main?OpenForm&amp;LangID=1">
                                                <img src="/main/images/assets/correctional-facilities/icon-correctional-facilities.svg" alt="Correctional Facilities" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="https://eservices2.moi.gov.kw/Correctional-Facilities.nsf/Main?OpenForm&amp;LangID=1">
                                                <div class="main-menu-text">الإداره العامة
 للمؤسسات الإصلاحية</div>
                                            </a>
                                        </li>
                                        <li class="nav-item m-0">
                                            <a href="/main/sections/security-systems">
                                                <img src="/main/images/assets/security-systems/ico-security-systems.svg" alt="Security Systems" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/sections/security-systems">
                                                <div class="main-menu-text">الادارة العامة
 للأنظمة الأمنية</div>
                                            </a>
                                        </li>
                                        <li class="nav-item m-0 d-none">
                                            <a href="/main/sections/naionalsecurity">
                                                <img src="/main/images/assets/national-security/ico-nat-security.svg" alt="Training" class="menu-icon">
                                            </a>
                                            <a class="nav-link" href="/main/sections/national-security">
                                                <div class="main-menu-text">كلية الأمن الوطني</div>
                                            </a>
                                        </li>


                                        <li class="nav-item m-0">
                                            <a href="/main/sections/human-resources">
                                                <img src="/main/images/assets/human-resources/ico-hr.svg" alt="Administrative Affairs Dept." class="menu-icon">
                                            </a>
                                            <a href="/main/sections/human-resources">
                                                <div class="main-menu-text">الإدارة العامة للشئون الإدارية</div>
                                            </a>
                                        </li>

                                    </ul>
                                </span>
                            </li>

                            <li class="nav-item">
                                <div class="dropdown">
                                    <a href="#" class="nav-link" data-toggle="collapse" aria-expanded="false">
                                        الإصدارات الإلكترونية
                                    </a>
                                    <div class="dropdown-menu text-right" style="background: #e9e6de;padding:0px;">
                                        <a class="dropdown-item" href="/main/emagazine">
                                            المجلة الإلكترونية
                                        </a>
                                        <a class="dropdown-item" href="/main/news/archive">
                                            أرشيـف الأخبار
                                        </a>
                                    </div>
                                </div>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="https://eservices.moi.gov.kw:45314/verify/qrcode">
                                    التحقق من الوثائق
                                </a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="https://eservices1.moi.gov.kw/moicus.nsf/moicus?openform&amp;LangID=1">
                                    يهمنا رايك
                                </a>
                            </li>
                            <li class="nav-item" id="navEmergency">
                                <a class="nav-link" href="#" data-toggle="modal" data-target="#emergencyContactModal">
                                    أرقام الطوارئ
                                </a>
                            </li>
                            <li class="nav-item" id="navMeta">
                                <div class="dropdown">
                                    <a href="#" class="nav-link" data-toggle="collapse" aria-expanded="false">
                                        منصة المواعيد
                                    </a>
                                    <div class="dropdown-menu text-right" style="background: #e9e6de;padding:0px;">
                                        <a class="dropdown-item" href="https://meta.e.gov.kw/">
                                            منصة 'متى'
                                        </a>
                                        <a class="dropdown-item" href="https://nat2.moi.gov.kw/MOIBioEnrol.nsf/initRequest?OpenForm&amp;LangID=1">
                                            حجز موعد البصمة البيومترية للخليجيين
                                        </a>
                                        <a class="dropdown-item" href="https://nat1.moi.gov.kw/MOIeTPAp.nsf/Request?OpenForm&amp;LangID=1">
                                            حجز مواعيد جوازات السفر المؤقتة والوثائق
                                        </a>
                                    </div>
                                </div>
                            </li>
                            <li class="nav-item mt-0 mb-0 mr-auto" style="border:0px solid red;float:left;">
                                

<div style="border:0px solid white;height:100%;" class="form-group text-center" title="Request culture provider:">
    <form id="selectLanguage" method="post" class="form-horizontal d-flex " role="form" style="border:0px solid green;height:100%;" action="/main/Home/SetLanguage?returnUrl=%2Fmain%2Feservices%2Fgdt%2Fviolation-enquiry">
        <div class="col-12 d-flex">
                <button class="btn btn-lang align-content-center align-self-center text-center">English</button>
                <input type="hidden" name="culture" value="en">
            </div>
<input name="__RequestVerificationToken" type="hidden" value="CfDJ8Dy7WYfCAl1AlH8wPjHudS7-I2VGEKPJU3Y-hWWoMooFtlvibqJigwIWghrhAzqxX58laDeapDPpNiQw27gd4fm2sCV7_PItLdw_0hyWcgw8YIXdcMCYZ-26laS0vF_82LwzB9z8ASE1xwbCB3mIIDM"></form>
</div>
                            </li>
                        </ul>
                    </div>
                </div>
            </nav>
        </header>
        <div class="container p-0 m-0 content-main">

            <main role="main" class="pb-3">
                <div class="row align-items-center h-100" style="border:0px solid red;position:fixed;z-index: 96;">
                    <div id="regSideBar" class="sbEffect d-none">
                        <div class="d-flex align-items-center justify-content-center" style="border:0px solid white;height:100%;">
                            <a href="https://eservices6.moi.gov.kw/RegOrg.nsf/Request?OpenForm&amp;LangId=1">تسجيل الشركات-مادة ١٨</a>
                        </div>
                        <div class="sbToggler">
                            <a style="border:0px;outline:none;" id="sbRPop" tabindex="0">
                                <img src="/main/images/assets/residency/ico-comp-register.svg" border="0">
                            </a>
                        </div>
                    </div>
                    <div id="formsSideBar" class="sbEffect d-none" style="margin-top:75px;">
                        <div class="d-flex align-items-center justify-content-center" style="border:0px solid white;height:100%;">
                            <a href="/main/eservices/operations/request-pass?culture=ar">طلب تصريح عدم تعرّض</a>
                        </div>
                        <div class="sbToggler">
                            <a style="border:0px;outline:none;" id="sbPop" tabindex="0">
                                <img src="/main/images/assets/civil-defence/ico-pass.svg" border="0">
                            </a>
                        </div>
                    </div>

                </div>
                <link rel="stylesheet" href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.dataTables.min.css">
<style>
    .page-item.active .page-link{
        background-color:#000576;
        border-color: #000576;
    }
</style>
<div class="row p-0 m-0 content">
    <div class="col">
        <div class="row text-justify">
            <div class="col-sm-4 title">
                <a href="/main/eservices/gdt">
                    <img src="/main/images/assets/general-traffic/logo-general-traffic.svg" class="intro-logo m-1">
                    &nbsp;الإدارة العامة للمرور
                </a>
            </div>
            <div class="col-sm-8">&nbsp;</div>
        </div>
        <div class="row text-center">
                <div class="col-sm-12 col-md-4 col-lg-4 side-menu text-right">
        <div class="row mt-2">
            <div class="col-2 mr-1 ml-1">
                <a href="https://edl.moi.gov.kw/">
                    <img src="/main/images/assets/general-traffic/ico-renew-license.svg" class="side-menu-icon">
                </a>
            </div>
            <div class="col-8 align-self-center">
                <a href="https://edl.moi.gov.kw/">
                    الخدمات الالكترونية لرخص السوق
                </a>
            </div>
            <div class="col-1">&nbsp;</div>
        </div>
        <div class="row mt-2">
            <div class="col-2 mr-1 ml-1">
                <a href="/main/eservices/gdt/violation-enquiry">
                    <img src="/main/images/assets/common/ico-payment.svg" class="side-menu-icon">
                </a>
            </div>
            <div class="col-8 align-self-center">
                <a href="/main/eservices/gdt/violation-enquiry">
                    دفع المخالفات
                </a>
            </div>
            <div class="col-1">&nbsp;</div>
        </div>
        <div class="row mt-2">
            <div class="col-2 mr-1 ml-1">
                <a href="#appointmentsMenu" data-toggle="collapse" data-target="#appointmentsMenu" aria-expanded="false" aria-controls="appointmentsMenu">
                    <img src="/main/images/assets/general-traffic/ico-booking.svg" class="side-menu-icon">
                </a>
            </div>
            <div class="col-8 align-self-center">
                <a href="#appointmentsMenu" data-toggle="collapse" data-target="#appointmentsMenu" aria-expanded="false" aria-controls="appointmentsMenu">
                    نظام مواعيد اختبار القيادة
                </a>
            </div>
            <div class="col-1">&nbsp;</div>
        </div>
        <div class="collapse" id="appointmentsMenu">
            <div class="row mt-2 text-justify">
                <div class="col-2">
                    &nbsp;
                </div>
                <div class="col-8">
                    <i class="far fa-circle"></i>&nbsp;المواعيد مكتملة حاليا حتى إشعار آخر
                </div>
                <div class="col-2">&nbsp;</div>
            </div>
            <div class="row mt-2 text-justify">
                <div class="col-2">
                    &nbsp;
                </div>
                <div class="col-8">
                    <a href="https://ttd.moi.gov.kw/">
                        <i class="far fa-circle"></i>&nbsp;اختبر نفسك
                    </a>
                </div>
                <div class="col-2">&nbsp;</div>
            </div>
        </div>
        <div class="row mt-2">
            <div class="col-2 mr-1 ml-1">
                <a href="/main/eservices/gdt/services">
                    <img src="/main/images/assets/general-traffic/ico-procedures.svg" class="side-menu-icon">
                </a>
            </div>
            <div class="col-8 align-self-center">
                <a href="/main/eservices/gdt/services">
                    &nbsp;معاملات المرور
                </a>
            </div>
        </div>
        <div class="row mt-2">
            <div class="col-2 mr-1 ml-1">
                <a href="#sectionsMenu" data-toggle="collapse" data-target="#sectionsMenu" aria-expanded="false" aria-controls="sectionsMenu">
                    <img src="/main/images/assets/general-traffic/ico-locations-sections.svg" class="side-menu-icon">
                </a>
            </div>
            <div class="col-8 align-self-center">
                <a href="/main/eservices/gdt/locations">
                    &nbsp;مواقع الإدارة العامة للمرور
                </a>
            </div>
        </div>
    <div class="row mt-2">
        <div class="col-2 mr-1 ml-1">
            <a href="/main/content/docs/gdt/driving-license-conditions.pdf">
                <img src="/main/images/assets/common/ico-pdf-doc.svg" class="side-menu-icon">
            </a>
        </div>
        <div class="col-8 align-self-center">
            <a href="/main/content/docs/gdt/driving-license-conditions.pdf">
                شروط منح رخص السوق لغير الكويتيين
            </a>
        </div>
    </div>
    </div>  
            <div class="col-sm-12 col-md-8 col-lg-8" id="GDTContent">
                <div class="row">
                    <div class="col-3">&nbsp;</div>
                    <div class="col-6">
                        <div class="title">
                            الإدارة العامة للمرور
                        </div>
                        <div>
                            <img src="/main/images/assets/common/ico-horizontal-bar.svg">
                        </div>
                    </div>
                    <div class="col-3">&nbsp;</div>
                </div>
                <div class="row mt-2 pl-4 pr-4 pb-5 text-justify">
                    <div class="col-12">
                        <form id="enquireForm" novalidate="novalidate">
                            <div class="form-row">
                                <div class="col-sm-12 col-md-6">
                                    <div class="form-check form-check-inline m-0">
                                        <input class="form-check-input" type="radio" name="violationFor" id="violationForIndividual" value="1" checked="">
                                        <label class="form-check-label" for="violationTypeIndividual">
                                            &nbsp;الأفراد
                                        </label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="violationFor" id="violationForCompany" value="2">
                                        <label class="form-check-label" for="violationTypeCompany">&nbsp;الشركات</label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-row mt-2">
                                <div class="col-sm-12 col-md-6">
                                    <label id="lblEnquiryType">الرقم المدني أو الرقم الموحد</label>
                                    <input class="form-control" id="civilId" name="civilId" maxlength="12" minlength="12">
                                </div>
                            </div>
                            <div class="form-row mt-2">
                                <div class="col-sm-12 col-md-4">
                                    <button id="btnEnquire" class="btn btn-primary btn-block mt-2 mt-md-0">إستعلم</button>
                                </div>
                            </div>
                            <div style="border-bottom:2px solid #d6dce5;" class="form-row p-3 mt-3 d-none text-right" id="responseInfo">

                            </div>
                            <div class="form-row align-self-center mt-2">
                                <div class="col-12 text-left" id="payingAmount"></div>
                            </div>
                            <div class="form-row mt-3">
                                <div class="col-12 text-right font-weight-bold mb-2">
                                    بعد إجراء عملية الدفع.. يرجى عدم محاولة الدفع مرة أخرى حيث يجرى تحديث البيانات خلال 15 دقيقة
                                </div>
                                <div class="col-sm-12 col-md-4 text-right">
                                    <input type="button" id="btnPay" class="btn btn-primary btn-block d-none" disabled="" value="إدفع">
                                </div>
                                <div class="col-sm-12 col-md-6 align-self-center">&nbsp;</div>
                            </div>
                            <div class="form-row mt-3">
                                <div class="col-12 align-self-center">
                                    <span class="badge badge-success p-2" style="font-weight:normal !important;">قابلة للدفع الكترونياً</span>
                                    <span class="badge badge-danger p-2" style="font-weight:normal !important;">غير قابلة للدفع الكترونياً</span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="d-flex justify-content-center">
                    <div class="spinner-grow text-secondary d-none" role="status" id="workingOnIt">
                        <span class="sr-only">Loading...</span>
                    </div>
                </div>
                <div class="row mt-2 pl-4 pr-4 pb-5 text-center d-none">
                    <div class="col-12">
                        The service will be available shortly
                        <br>
                        الخدمة ستعود قريباً
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


            </main>
        </div>



        <div id="overlay" class="d-none"></div>
        <script>


            var state = true;
            function toggleFormsSideBar() {
                if (state) {
                    $("#formsSideBar").animate({
                        width: 200,
                        fontSize: 14
                    }, 500);
                } else {
                    $("#formsSideBar").animate({
                        width: 30,
                        fontSize: 0
                    }, 500);
                }
                state = !state;
            }

            var regState = true;
            function toggleRegSideBar() {
                if (regState) {
                    $("#regSideBar").animate({
                        width: 200,
                        fontSize: 14
                    }, 500);
                } else {
                    $("#regSideBar").animate({
                        width: 30,
                        fontSize: 0
                    }, 500);
                }
                regState = !regState;
            }

        </script>

        <style>

            #overlay {
                /*display:none;*/
                position: fixed; /* Sit on top of the page content */
                width: 100%; /* Full width (cover the whole page) */
                height: 100%; /* Full height (cover the whole page) */
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(0,0,0,0.7); /* rgba(0,0,0,0.5); Black background with opacity */
                /*opacity: .8;*/
                z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
                cursor: pointer; /* Add a pointer on hover */
            }

            .sbToggler {
                position: absolute;
                right: -55px;
                z-index: 99;
                bottom: -5px;
                border: 0px solid red;
                /* background-image: url(/main/images/assets/esp-logo-white.svg); */
                background-size: 50px 50px;
                background-repeat: no-repeat;
                height: 70px;
                width: 70px;
                cursor: pointer;
                display: block;
            }



            .sbEffect {
                border: 1px solid #fff;
                font-size: 0px;
                width: 30px;
                height: 60px;
                left: 0;
                position: fixed;
                background: #000576;
                overflow: visible !important;
                z-index: 98;
            }

            .sbEffect1 {
                border: 1px solid #fff;
                font-size: 0px;
                width: 30px;
                height: 60px;
                left: 0;
                position: fixed;
                background: #000576;
                overflow: visible !important;
                z-index: 99;
            }

            .sbEffect a {
                color: #fff;
            }

            /*@media only screen and (max-width: 768px) {
                            [class="sbEffect1"] {
                                top: calc(100% - 250px);
                            }
                        }*/
        </style>

        <!--Slider Bottom Menu for mobile-->
        <mqa class="container bottom-slider-sm p-0 m-0 d-md-none d-lg-none d-sm-block"><div class="row p-0 m-0">
    <div class="accordion w-100 " id="sm-accordion">
        <!--TRAFFIC VIOLATION-->
        <div class="card slider-card">
            <div class="card-header text-center" id="headingOne">
                <a role="button" data-toggle="collapse" data-target="#collapsePayFines" href="#collapsePayFines" aria-expanded="true" aria-controls="collapsePayFines">
                    <svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" width="8.572em" height="8.572em" data-name="Layer 1" viewBox="0 0 103 103">
                        <title>Payment</title>
                        <rect class="circle cls-1" x="1.01" y="1.26" width="100" height="100" rx="50"></rect>
                        <path class="kd cls-2" d="M63.55,70.16l-6.06-7v7H55.27V56.25h2.22v6.06l5.84-6.06h2.75L59.59,62.5l6.73,7.66Z"></path>
                        <path class="kd cls-2" d="M67.49,70.16v-2.5H69.4v2.5Z"></path>
                        <path class="kd cls-2" d="M71.42,70.16V56.25h6.32c3.81,0,4.91,1.59,4.91,6.06v1.78c0,4.47-1.1,6.07-4.91,6.07Zm9-8c0-2.89-.46-4.36-2.89-4.36H73.62V68.58h3.94c2.25,0,2.89-1.3,2.89-4.2Z"></path>
                        <rect class="cls-1" x="15.44" y="27.78" width="71.3" height="46.97"></rect>
                        <line class="cls-1" x1="22.53" y1="56.6" x2="39.12" y2="56.6"></line>
                        <line class="cls-1" x1="32.8" y1="62.13" x2="38.33" y2="62.13"></line>
                        <line class="cls-1" x1="22.53" y1="67.66" x2="38.33" y2="67.66"></line>
                        <line class="cls-1" x1="15.29" y1="36.28" x2="86.4" y2="36.28"></line>
                        <line class="cls-1" x1="15.29" y1="47.83" x2="86.4" y2="47.83"></line>
                    </svg>
                </a>
            </div>
            <div id="collapsePayFines" class="collapse" aria-labelledby="headingOne" data-parent="#sm-accordion">
                <div class="card-body article-info text-center">
                    <h5 class="title">دفع المخالفات والغرامات</h5>
                    <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    <form id="MQAFines">
                        <div class="col-12">
                            <select class="form-control" id="MQAFinesSelectFineType" name="MQAFinesSelectFineType">
                                <option value="1">المرور</option>
                                <option value="2">الإقامة</option>
                            </select>
                        </div>
                        <div class="col-12 mt-1">
                            <input type="tel" pattern="^[0–9]$" class="form-control" id="MQAFinesTextCivilId" name="MQAFinesTextCivilId" maxlength="12" placeholder="الرقم المدني">
                        </div>
                        <button class="btn btn-secondary mt-3" id="btnMEnquire">دفع</button>
                    </form>
                </div>
            </div>
        </div>
        <!--APPOINTMENTS
            <div class="card slider-card">
                <div class="card-header text-center" id="headingTwo">
                    <a role="button" data-target="#collapseAppointments" href="#collapsePersonalEnquiry" data-toggle="collapse" aria-expanded="false" aria-controls="collapsePersonalEnquiry">
                        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="8.572em" height="8.572em" viewBox="0 0 103 103" style="enable-background:new 0 0 103 103;" xml:space="preserve">
                        <defs>
    <style>
        .appt-cls-1 {
            fill: #000576;
        }

        .appt-cls-2 {
            fill: none;
            stroke: #fff;
            stroke-miterlimit: 10;
        }

        .appt-cls-3 {
            fill: #fff;
        }
    </style>
    </defs>
    <path class="appt-cls-1" d="M51.5,1.5h0a50,50,0,0,1,50,50h0a50,50,0,0,1-50,50h0a50,50,0,0,1-50-50h0A50,50,0,0,1,51.5,1.5Z" ></path>

    <rect class="appt-cls-2" x="28.77" y="22.27" width="45.47" height="58.46" rx="0.32" ></rect>

    <rect class="appt-cls-2" x="33.64" y="49.88" width="35.72" height="16.24" ></rect>

    <line class="appt-cls-2" x1="69.05" y1="58.5" x2="33.43" y2="58.5" ></line>

    <line class="appt-cls-2" x1="56.37" y1="49.88" x2="56.37" y2="66.11" ></line>

    <line class="appt-cls-2" x1="46.63" y1="49.88" x2="46.63" y2="66.11" ></line>

    <rect class="appt-cls-2" x="59.62" y="30.39" width="3.25" height="6.5" ></rect>

    <rect class="appt-cls-2" x="40.13" y="30.39" width="3.25" height="6.5" ></rect>

    <line class="appt-cls-2" x1="63.07" y1="33.79" x2="74.12" y2="33.79" ></line>

    <line class="appt-cls-2" x1="59.62" y1="33.64" x2="43.38" y2="33.64" ></line>

    <line class="appt-cls-2" x1="40.13" y1="33.64" x2="28.95" y2="33.64" ></line>

    <polygon class="appt-cls-3" points="44.6 57.11 53 63.11 63.8 46.31 60.2 43.91 51.8 55.91 48.2 53.51 44.6 57.11" ></polygon>

    </svg>
                    </a>
                </div>
                <div id="collapseAppointments" class="collapse" aria-labelledby="headingTwo" data-parent="#sm-accordion">
                    <div class="card-body article-info text-center">
                        <div class="col-12 title">منصة المواعيد</div>
                        <div class="col-12">
                            <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg" />
                        </div>
                        <div class="col-12">

                        </div>
                        <div class="col-12">

    <a href="https://nat5.moi.gov.kw/moieap.nsf/request?openform&langid=1" class="btn btn-primary d-none">تبصيم الشركات</a><br/><br/>
                            <a href="https://meta.e.gov.kw/ar/">
                                <img style="width:170px;" src="https://www.moi.gov.kw/main/images/assets/logo-meta-ar.png" />
                            </a>
                        </div>
    </div>
                </div>
            </div>-->
        
        <!--HEALTH CHECK-->
        <div class="card slider-card d-none">
            <div class="card-header text-center" id="headingFour">
                <a role="button" data-toggle="collapse" data-target="#collapseHealthCheck" href="#collapseHealthCheck" aria-expanded="false" aria-controls="collapseHealthCheck">
                    <img src="https://www.moi.gov.kw/main/images/assets/common/ico-health-check-status.svg" class="moi-ico">
                </a>
            </div>
            <div id="collapseHealthCheck" class="collapse" aria-labelledby="headingFour" data-parent="#sm-accordion">
                <div class="card-body article-info text-center">
                    <h5 class="title">جاهزية نتيجة الفحص الطبي</h5>
                    <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    <form id="MQAHealthCheck" novalidate="novalidate">
                        <div class="col-12">
                            <input class="form-control" id="MQAHealthCheckTextNationalNo" name="MQAHealthCheckTextNationalNo" maxlength="12" placeholder="رقم المرجع">
                        </div>
                        <div class="col-12">
                            <button class="btn btn-block btn-secondary mt-3" id="btnMQAHealthCheck">إستعلم</button>
                            <div class="d-flex justify-content-center">
                                <div class="spinner-grow text-secondary d-none" role="status" id="MQAHCWorkingOnIt">
                                    <span class="sr-only">Loading...</span>
                                </div>
                            </div>
                            <div id="MQAHealthReport" class="d-none mt-3"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <!--CASE FILE CHECK-->
        <div class="card slider-card">
            <div class="card-header active-acc text-center" id="headingFour">
                <a role="button" data-toggle="collapse" data-target="#collapseCaseCheck" href="#collapseCaseCheck" aria-expanded="false" aria-controls="collapseCaseCheck">
                    <img src="https://www.moi.gov.kw/main/images/assets/common/ico-case-track.svg" class="moi-ico">
                </a>
            </div>
            <div id="collapseCaseCheck" class="collapse" aria-labelledby="headingFour" data-parent="#sm-accordion">
                <div class="card-body article-info text-center">
                    <h5 class="title">الاستعلام عن سير القضية</h5>
                    <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    <form id="MQACaseCheck" novalidate="novalidate">
                        <div class="col-12">
                            <input class="form-control" id="MQACaseCheckTextNationalNo" name="MQACaseCheckTextNationalNo" maxlength="12" placeholder="رقم المرجع">
                        </div>
                        <div class="col-12">
                            <button class="btn btn-block btn-secondary mt-3" id="btnMQACaseCheck">إستعلم</button>
                            <div class="d-flex justify-content-center">
                                <div class="spinner-grow text-secondary d-none" role="status" id="MQACCWorkingOnIt">
                                    <span class="sr-only">Loading...</span>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <!--SMS CHANGE COMPANY-->
        <div class="card slider-card d-none">
            <div class="card-header text-center" id="headingTwo">
                <a role="button" data-target="#collapsePersonalEnquiry" href="#collapsePersonalEnquiry" data-toggle="collapse" aria-expanded="false" aria-controls="collapsePersonalEnquiry">
                    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="8.572em" height="8.572em" viewBox="0 0 103 103" style="enable-background:new 0 0 103 103;" xml:space="preserve">
                    <style type="text/css">
                        .st0 {
                            fill: none;
                            stroke: #fff;
                            stroke-width: 2;
                            stroke-miterlimit: 10;
                        }

                        .st1 {
                            enable-background: new;
                        }

                        .st2 {
                            fill: #fff;
                        }

                        .st3 {
                            fill: none;
                            stroke: #fff;
                            stroke-miterlimit: 10;
                        }
</style>
                    <title>sms</title>
                    <path class="circle st0" d="M51.5,1.5L51.5,1.5c27.6,0,50,22.4,50,50l0,0c0,27.6-22.4,50-50,50l0,0c-27.6,0-50-22.4-50-50l0,0  C1.5,23.9,23.9,1.5,51.5,1.5z"></path>







                    <g class="st1">
                    <path class="st2" d="M35.2,46.2c0-0.2,0.1-0.5,0.1-0.7c0-1.8-1.5-2-2.9-2c-2.8,0-3.3,0.6-3.3,2.2c0,1,0.3,1.6,1.1,2   c0.8,0.4,1.9,0.4,2.8,0.6c2.8,0.3,5.5,0.7,5.5,4.5c0,3.9-2.9,4.5-6,4.5c-2.7,0-6.2-0.3-6.3-4c0-0.3,0-0.6,0-0.9h2.9   c0,0.2,0,0.4,0,0.6c0,2.1,1.7,2.4,3.4,2.4c1.6,0,3.2-0.1,3.2-2.3c0-2.2-1.4-2.3-3.8-2.6c-3-0.3-5.8-0.8-5.8-4.4   c0-3.2,1.8-4.3,6-4.3c3.4,0,5.8,0.4,5.9,3.6c0,0.3,0,0.7-0.1,0.9H35.2z"></path>







                    <path class="st2" d="M59.1,56.8V46c0-1.2-0.3-2.2-2.7-2.2c-1.9,0-2.9,0.8-3.2,2.1v10.9h-2.9V46c0-1.3-0.3-2.2-2.7-2.2   c-1.8,0-2.9,0.4-3.3,2.3v10.8h-3.1V41.9h3.1v2c0.8-1.2,2.4-2.3,4.8-2.3c2.7,0,3.7,0.9,4,2.3c1-1.4,2.6-2.3,4.8-2.3   c3.5,0,4.2,1.4,4.2,3.7v11.5H59.1z"></path>







                    <path class="st2" d="M73.7,46.2c0-0.2,0.1-0.5,0.1-0.7c0-1.8-1.5-2-2.9-2c-2.8,0-3.3,0.6-3.3,2.2c0,1,0.3,1.6,1.1,2   c0.8,0.4,1.9,0.4,2.8,0.6c2.8,0.3,5.5,0.7,5.5,4.5c0,3.9-2.9,4.5-6,4.5c-2.7,0-6.2-0.3-6.3-4c0-0.3,0-0.6,0-0.9h2.9   c0,0.2,0,0.4,0,0.6c0,2.1,1.7,2.4,3.4,2.4c1.6,0,3.2-0.1,3.2-2.3c0-2.2-1.4-2.3-3.8-2.6c-3-0.3-5.8-0.8-5.8-4.4   c0-3.2,1.8-4.3,6-4.3c3.4,0,5.8,0.4,5.9,3.6c0,0.3,0,0.7-0.1,0.9H73.7z"></path>







                                </g>
                    <text transform="matrix(1 0 0 1 -231.0191 -27.0389)" class="st2" style="font-family:'DDTRg-Regular'; font-size:28px;">sms</text>
                    <path class="st3" d="M30.6,82c0,0,0.5-9.4,6.1-12c0.6-0.3,1.2-0.4,1.9-0.4l45.2,0.2V28.4H20.8v41.4h5.4L30.6,82z"></path>







                                </svg>
                </a>
            </div>
            <div id="collapsePersonalEnquiry" class="collapse" aria-labelledby="headingTwo" data-parent="#sm-accordion">
                <div class="card-body article-info text-center">
                    <div class="col-12 title">تعديل شركة الإتصالات</div>
                    <div class="col-12">
                        <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    </div>
                    <form asp-controller="sms" asp-action="change" id="MQAChangeCompany">
                        <div class="row">
                            <div class="col-12">
                                <input type="tel" pattern="^[0–9]$" class="form-control" name="MQATextMobile" id="MQATextMobile" placeholder="*الموبايل" maxlength="8">
                            </div>

                        </div>
                        <div class="row mt-1">
                            <div class="col-12">
                                <input type="tel" pattern="^[0–9]$" class="form-control" name="MQATextCivilId" id="MQATextCivilId" placeholder="الرقم المدني" maxlength="12">
                            </div>
                        </div>
                        <div class="row mt-1 no-gutters">
                            <div class="col-sm-12 col-md-5">
                                <select class="form-control" id="MQASelectCompany" name="MSelectCompany">
                                    <option value="1">VIVA</option>
                                    <option value="2">OOREDOO</option>
                                    <option value="3">ZAIN</option>
                                </select>
                            </div>
                            <div class="col-sm-12 col-md-7 mt-1">
                                <input type="password" autocomplete="off" pattern="^[0–9]$" name="MQATextActivationCode" id="MQATextActivationCode" class="form-control" placeholder="*رقم التفعيل" maxlength="4">
                            </div>
                        </div>
                        <div class="row mt-1">
                            <div class="col-12">
                                <button class="btn btn-block btn-secondary" id="MQABtnChange">تعديل</button>
                                <div class="d-flex justify-content-center">
                                    <div class="spinner-grow text-secondary d-none" role="status" id="MQAWorkingOnIt">
                                        <span class="sr-only">Loading...</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <!--GET REFERENCE NUMBER-->
        <div class="card slider-card">
            <div class="card-header text-center" id="mGetReferenceNumber">
                <a role="button" data-toggle="collapse" data-target="#collapseGetRefNum" href="#collapseGetRefNum" aria-expanded="false" aria-controls="collapseGetRefNum">
                    <img src="https://www.moi.gov.kw/main/images/assets/common/ico-get-ref-num.svg" class="moi-ico" id="getRefNumPopMob">
                </a>
            </div>
            <div id="collapseGetRefNum" class="collapse show" aria-labelledby="mGetReferenceNumber" data-parent="#sm-accordion">
                <div class="card-body article-info text-center">
                    <h5 class="title">الإستعلام عن رقم مرجع الداخلية</h5>
                    <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    <!--<form id="MQARefNum">
                <div class="col-12">
                    <input class="form-control" id="MQARefNumTextCivilId" name="MQARefNumTextCivilId" maxlength="12" placeholder="الرقم المدني" />
                </div>
                <div class="col-12 mt-1 d-none">
                    <input class="form-control" id="MQARefNumTextPassport" name="MQARefNumTextPassport" maxlength="15" placeholder="رقم جواز السفر" />
                </div>
                <div class="col-12 mt-1 d-none">
                    <input readonly class="form-control" id="MQARefNumTextExpiryDate" name="MQARefNumTextExpiryDate" maxlength="10" placeholder="تاريخ الانتهاء جواز السفر" />
                </div>
                <div class="col-12 d-none">
                    <button class="btn btn-block btn-secondary mt-2" id="btnMGetRefNum">استعلم</button>-->
                    <!--<div class="d-flex justify-content-center">
                    <div class="spinner-grow text-secondary d-none" role="status" id="MQARNWorkingOnIt">
                        <span class="sr-only">Loading...</span>
                    </div>
                </div>-->
                    <!--</div>
                    <div class="col-12">
                        <button type="button" class="btn btn-block btn-secondary mt-2" id="btnMGetRefNumKwti">Kuwaiti</button>
                    </div>
                    <div class="col-12">
                        <button type="button" class="btn btn-block btn-secondary mt-2" id="btnMGetRefNumOther">Non-Kuwaiti</button>
                    </div>
                </form>
                <div class="col-12 d-none" id="MQANatNumResultContainer">
                    <div class="row">
                        <div class="col-12" id="MQANatNumResult"></div>
                        <div class="col-12">
                            <button type="button" class="btn btn-block btn-secondary mt-2" id="btnMGetRefNumDone">إغلاق</button>
                        </div>
                    </div>
                </div>-->
                    <div class="col-12">
                        <input class="form-control" id="MQARefNumTextCivilId" name="MQARefNumTextCivilId" maxlength="12" placeholder="الرقم المدني">
                    </div>
                    <div class="col-12">
                        <button type="button" class="btn btn-block btn-secondary mt-2" id="btnMGetRefNumKwti">للكويتين</button>
                    </div>
                    <div class="col-12">
                        <button type="button" class="btn btn-block btn-secondary mt-2" id="btnMGetRefNumOther">للمقيمين</button>
                    </div>
                </div>
            </div>
        </div>

        <!--NEW SERVICES-->
        <div class="card slider-card">
            <div class="card-header text-center" id="headingFour">
                <a data-toggle="modal" data-target="#newServicesModal">
                    <img src="https://www.moi.gov.kw/main/images/assets/common/ico-new-services.svg" class="card-img-top center-block moi-ico mx-auto" id="newServicesPopMob">
                </a>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var yearMDropDownNat;
    var yearMDropDownPP;
</script>
<script type="module" src="/main/lib/flatpickr/plugins/year-dropdown.js"></script>
<script type="module">
    import yearDropdownPlugin from '/main/lib/flatpickr/plugins/year-dropdown.js';
    var todayMDt = new Date();
    yearMDropDownNat = new yearDropdownPlugin(
        {
            date: todayMDt.getDate + "/" + todayMDt.getMonth() + "/" + todayMDt.getFullYear(),
            yearStart: 80,//todayDt.setFullYear(todayDt.getFullYear() - 90),
            yearEnd: 0//todayDt.getFullYear()
        }
    );

    yearMDropDownPP = new yearDropdownPlugin(
        {
            date: todayMDt.getDate + "/" + todayMDt.getMonth() + "/" + todayMDt.getFullYear(),
            yearStart: 0,//todayDt.setFullYear(todayDt.getFullYear() - 90),
            yearEnd: 10//todayDt.getFullYear()
        }
    );
</script>

<script type="text/javascript">
    $(document).ready(function () {
        setMQATrafficFineForm();
        setMQASMSChangeCompanyForm();
        //setMQAAppointmentsForm();
        //setMQAReferenceNumberForm();
        setMQAReferenceNumberLinks();
        setMQAHealthCheckForm();
        setMQACaseCheckForm();
        $('.collapse').on('shown.bs.collapse', function () {
            $(this).prev().addClass('active-acc');
        });

        $('.collapse').on('hidden.bs.collapse', function () {
            $(this).prev().removeClass('active-acc');
        });
    });


    /************TRAFFIC FINE SCRIPTS********************************/
    setMQATrafficFineForm = () => {
        $('#btnMEnquire').on('click', function (event) {
            //alert('hi')
            $('#MQAFines').validate({
                rules: {
                    MQAFinesTextCivilId: {
                        required: true,
                        //digits: true,
                        regex: /^[0-9\u0660-\u0669]+$/,
                        minlength: 8
                    }
                },
                messages: {
                    MQAFinesTextCivilId: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        regex: 'يرجى إدخال رقم صحيح',
                    }
                },
                submitHandler: function (form, event) {
                    $('#btnMEnquire').attr("disabled", true);
                    event.preventDefault();
                    if ($('#MQAFinesSelectFineType').val() == "1") {
                        //window.location.href = "https://portal.acs.moi.gov.kw/wps/portal/violations?systemSelection=1&numberType=1&numberValue=" + $("#MQAFinesTextCivilId").val() + "&carNumberGoverCode=&licneseType=3&purpose=0&violYear=0&violGover=0&secondPartOfnewcarno=0&embassyTextField=0&QuickAccess='GO'"
                        window.location.href = serverUrl + "/main/eservices/gdt/violation-enquiry?civilId=" + $("#MQAFinesTextCivilId").val();
                    }
                    else {
                        //window.location.href = "http://10.11.77.82:10038/wps/portal/violations?systemSelection=2&violOptionNumber=2&numberValue=" + $("#MQAFinesTextCivilId").val() + "&QuickAccess='GO'"
                        //window.location.href = "http://portal.acs.moi.gov.kw/wps/portal/violations?systemSelection=2&violOptionNumber=2&numberValue=" + $("#MQAFinesTextCivilId").val() + "&QuickAccess='GO'";
                        window.location.href = serverUrl + "/main/eservices/residence/fines-enquiry?civilId=" + $("#MQAFinesTextCivilId").val();
                    }
                    return;
                }
            })

        });
    };
    /**********************************************************************/

    /**************SMS SUBSCRIPTION CHANGE COMPANY SCRIPTS************/

    setMQASMSChangeCompanyForm = () => {
        $('#MQABtnChange').on('click', function (event) {
            //event.preventDefault();
            $('#MQAChangeCompany').validate({
                rules: {
                    MQATextMobile: {
                        required: true,
                        digits: true,
                        minlength: 8
                    },
                    MQATextCivilId: {
                        required: true,
                        digits: true,
                        minlength: 12
                    },
                    MQATextActivationCode: {
                        required: true,
                        digits: true,
                        minlength: 4
                    }
                },
                messages: {
                    MQATextMobile: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        digits: 'يرجى إدخال رقم صحيح',
                    },
                    MQATextCivilId: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        digits: 'يرجى إدخال رقم صحيح',
                    },
                    MQATextActivationCode: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        digits: 'يرجى إدخال رقم صحيح',
                    }
                },
                submitHandler: function (form, event) {
                    $('#MQABtnChange').attr("disabled", true);
                    $('#MQAWorkingOnIt').addClass('d-block');
                    event.preventDefault();
                    grecaptcha.ready(function () {
                        grecaptcha.execute('6LdUyqwUAAAAAM5MRMXHrlAjDCrWT5CcRpdXgK2p', { action: 'sms/register' }).then(function (token) {



                            var formData = $("#MQAChangeCompany").serializeArray();
                            //console.log(formData);
                            formData.push({ name: "g-recaptcha-token", value: token });
                            formData.push({ name: "Mobile", value: $("#MQATextMobile").val() });
                            formData.push({ name: "CivilId", value: $("#MQATextCivilId").val() });
                            formData.push({ name: "Company", value: $("#MQASelectCompany option:selected").val() });
                            formData.push({ name: "ActivationCode", value: $("#MQATextActivationCode").val() });
                            //submit via ajax
                            $.ajax({
                                url: serverUrl + '/main/eservices/sms/change-company',
                                type: 'POST',
                                data: formData,
                                contentType: 'application/x-www-form-urlencoded; charset=utf-8',
                                success: function (data) {
                                    //console.log(data);
                                    $('#QAResponse').removeClass('text-center').removeClass('text-danger');
                                    $('#infoModalTitle').html('تعديل شركة الإتصالات');
                                    $('#QAResponse').html(data.value.info);
                                    $('#MQAWorkingOnIt').removeClass('d-block');
                                    $('#infoModal').modal('toggle');
                                    $('#MQABtnChange').removeAttr("disabled");
                                },
                                error: function (jqXHR, textStatus, errorThrown) {
                                    console.log('failed');
                                    console.log(jqXHR);
                                    var resp = $.parseJSON(jqXHR.responseText);
                                    $('#infoModalTitle').html('تعديل شركة الإتصالات');
                                    $('#QAResponse').addClass('text-center').addClass('text-danger');
                                    $('#QAResponse').html(resp.errorMessage);
                                    $('#MQAWorkingOnIt').removeClass('d-block');
                                    $('#infoModal').modal('toggle');
                                    $('#MQABtnChange').removeAttr("disabled");
                                }
                            });
                        });
                    });
                }
            });
        });
    };

    /************************************************************** */


    /************GET REFERENCE NUMBER SCRIPTS***********************************/

    function setMQAReferenceNumberForm2() {
        var today = new Date();
        config = { minDate: today, dateFormat: "Y-m-d", locale: "ar", disableMobile: true };
        $("#MQARefNumTextExpiryDate").flatpickr(config);
        if (location.href.indexOf('get-reference-number') > 0) {
            $("#txtExpiryDate").flatpickr(config);
        }
        $("#btnMGetRefNum").click(function () {
            $('#MQARefNum').validate({
                rules: {
                    MQARefNumTextCivilId: {
                        required: true,
                        digits: true,
                        minlength: 12
                    },
                    MQARefNumTextPassport: {
                        required: true,
                        minlength: 3
                    },
                    MQARefNumTextExpiryDate: {
                        required: true,
                        minlength: 10
                    }
                },
                messages: {
                    MQARefNumTextCivilId: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        digits: 'يرجى إدخال رقم صحيح',
                    },
                    MQARefNumTextPassport: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                    },
                    MQARefNumTextExpiryDate: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                    }
                },
                submitHandler: function (form, event) {
                    $("#MQARNWorkingOnIt").removeClass('d-none');
                    $("#MQANatNumResult").html('');
                    $('#btnMGetRefNum').attr("disabled", true);
                    event.preventDefault();
                    QAGetNationalNumber($('#MQARefNumTextCivilId').val(),
                        $('#MQARefNumTextPassport').val(),
                        $('#MQARefNumTextExpiryDate').val());
                    return;
                }
            })


        });

        $("#btnMGetRefNumDone").click(function () {
            $('#MQANatNumResult').html('');
            $('#MQANatNumResultContainer').addClass("d-none");
            $('#MQARefNum').removeClass("d-none");
        });
    }

    function setMQAReferenceNumberLinks() {
        let refUrl = "/main/eservices/get-reference-number";
        $("#btnMGetRefNumKwti").click(() => {
            location.href = refUrl + "?civilId=" + $("#MQARefNumTextCivilId").val().trim() + "&enquiryFor=kuwaiti"
        });
        $("#btnMGetRefNumOther").click(() => {
            location.href = refUrl + "?civilId=" + $("#MQARefNumTextCivilId").val().trim() + "&enquiryFor=non-kuwaiti"
        });
        var today = new Date();
        config = {
            plugins: [yearMDropDownPP],
            minDate: today,
            dateFormat: "Y-m-d",
            locale: "ar",
            disableMobile: true
        };
        natIssueConfig = {
            plugins: [yearMDropDownNat],
            //defaultDate: today.setFullYear(today.getFullYear() - 35),
            minDate: today.setFullYear(today.getFullYear() - 90),
            maxDate: "today",
            dateFormat: "Y-m-d",
            locale: "ar",
            disableMobile: true
        };
        if (location.href.indexOf('get-reference-number') > 0) {
            $("#txtExpiryDate").flatpickr(config);
            $("#txtNatIssueDate").flatpickr(natIssueConfig);
        }
    }

    /************************************************************** */


    function setMQAAppointmentsForm() {

        $('#MQAApptsSelectDept').on('change', function () {
            var urlToGo = ".moi.gov.kw/moieap.nsf/request?"
                + "openform&langid=1&sec="
                + $('#MQAApptsSelectDept').val();
            switch ($('#MQAApptsSelectDept').val()) {
                case "AA":
                case "FA":
                case "HA":
                case "J":
                case "W":
                case "M":
                    location.href = `https://nat1${urlToGo}`;
                    break;
                case "T":
                    location.href = `https://nat2${urlToGo}`;
                    break;
                case "E2":
                    location.href = `https://nat3${urlToGo}`;
                    break;
                case "E":
                case "N":
                case "X":
                    location.href = `https://nat5${urlToGo}`;
                    break;
                case "S":
                case "I":
                    location.href = `https://nat4${urlToGo}`;
                    break;
                case "R":
                case "F":
                    location.href = `https://eservices7${urlToGo}`;
                    break;
                case "B":
                    location.href = `https://eservices3${urlToGo}`;
                    break;
                case "VI":
                    location.href = "https://eservices2.moi.gov.kw/GDTVehIns.nsf";
                    break;
            }
            //if ($('#QAApptsSelectDept').val() == "B") {
            //    location.href = `https://eservices3.${urlToGo}`;
            //}
            //else {
            //    location.href = `https://eservices7.${urlToGo}`;
            //}
        });

        //$('#QAApptsBtnBook').click(function () {
        //    //alert($('#QAApptsSelectDept').val());
        //    var urlToGo = "moi.gov.kw/moieap.nsf/request?"
        //        + "openform&langid=1&sec="
        //        + $('#QAApptsSelectDept').val();
        //    //switch ($('#QAApptsSelectDept').val()) {
        //    //    case "N":
        //    //    case "T":
        //    //        urlToGo = `https://eservices7.${urlToGo}`;
        //    //        break;
        //    //    case "M":
        //    //    case "F":
        //    //        urlToGo = `https://eservices3.${urlToGo}`;
        //    //        break;
        //    //}
        //    location.href = `https://eservices7.${urlToGo}`;
        //});
    }
    /*****************************************************************************/

    function setMQAHealthCheckForm() {
        $('#MQAHealthCheck').validate({
            rules: {
                MQAHealthCheckTextNationalNo: {
                    required: true,
                    digits: true,
                    minlength: 9
                },
            },
            messages: {
                MQAHealthCheckTextNationalNo: {
                    required: 'Required',
                    minlength: 'Enter Valid Number',
                    digits: 'Enter Valid Number',
                }
            },
            submitHandler: function (form, event) {
                $('#btnMQAHealthCheck').attr("disabled", true);
                $('#MQAHCWorkingOnIt').removeClass('d-none');
                event.preventDefault();
                $.ajax({
                    //url: 'https://localhost:44322/mfservices/health/get-result/' + $("#MQAHealthCheckTextNationalNo").val(),
                    url: 'https://www.moi.gov.kw/mfservices/health/get-result/' + $("#QAHealthCheckTextNationalNo").val(),
                    type: 'GET',
                    contentType: 'application/json;charset=utf-8',
                    success: function (data) {
                        console.log(data);
                        $('#btnMQAHealthCheck').attr("disabled", false);
                        showMQAHealthCheckResult(data);
                        $("#MQAHCWorkingOnIt").addClass('d-none');
                    },
                    error: function (jqXHR, textStatus, errorThrown) {
                        $("#MQAHCWorkingOnIt").addClass('d-none');
                        console.log(jqXHR);
                        $('#btnMQAHealthCheck').attr("disabled", false);
                        //var resp = $.parseJSON(jqXHR.responseText);
                        //console.log(resp.errorMessage);
                        $("#MQAHealthReport").html('Unexpected error.Please try later');
                        $("#MQAHealthReport").removeClass('d-none');

                    }
                });
            }
        });
    }

    showMQAHealthCheckResult = (result) => {
        var report;
        switch (result.statusCode) {
            case 0:
                //console.log(result.statusMessage);
                report = 'نتيجه الفحص الطبي لائق';
                break;
            case 1:
                //console.log(result.statusMessage);
                report = 'نتيجة الكشف الطبي غير لائق';
                break;
            case 2:
                //console.log(result.statusMessage);
                report = 'نتيجه الفحص الطبي لائق موقتاً';
                break;
            case 3:
                //console.log(result.statusMessage);
                report = 'يرجى إعاده الفحص الطبي';
                break;
            case 4:
                //console.log(result.statusMessage);
                report = 'معفي من إجراء الفحص الطبي';
                break;
            case 5:
                //console.log(result.statusMessage);
                report = 'لا يوجد كشف طبي لإظهار نتيجه الفحص';
                break;
            case 6:
                //console.log(result.statusMessage);
                report = 'الرقم المدخل غير صحيح';
                break;
            default:
                console.log(result.statusMessage);
                report = "Unknown error";
                break;
        }

        var resultDisplay = "<table class='table table-striped'>"
            + " <tr>"   //<td>Status</td>
            + " <td>" + report + "</td></tr>"
            + "</table >";
        $("#MQAHealthReport").html(resultDisplay);
        $("#MQAHealthReport").removeClass('d-none');
    };

    function setMQACaseCheckForm() {
        $('#MQACaseCheck').validate({
            rules: {
                MQACaseCheckTextNationalNo: {
                    required: true,
                    digits: true,
                    minlength: 9
                },
            },
            messages: {
                MQACaseCheckTextNationalNo: {
                    required: 'حقل مطلوب',
                    minlength: 'يرجى إدخال رقم صحيح',
                    regex: 'يرجى إدخال رقم صحيح',
                }
            },
            submitHandler: function (form, event) {
                $('#btnMQACaseCheck').attr("disabled", true);
                $('#MQACCWorkingOnIt').removeClass('d-none');
                event.preventDefault();
                window.location.href = serverUrl + "/main/eservices/investigations/case-enquiry?nationalNo=" + $("#MQACaseCheckTextNationalNo").val();
            }
        });
    }

</script></mqa>

        <div class="container p-0 m-0" id="dqaContainer">
            <!--Slider Bottom Menu for desktop-->
            <dqa class="container p-0 m-0 d-none d-md-block bottom-slider"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<link rel="stylesheet" type="text/css" href="https://npmcdn.com/flatpickr/dist/themes/dark.css">
<link rel="stylesheet" type="text/css" href="/main/lib/flatpickr/plugins/year-dropdown.css">
<div class="row p-0 m-0" style="height:221px;">
    <!--TRAFFIC VIOLATION-->
    <div style="height:100%;">
        <a class="acc-header">
            <label class="footer-icon" style="width: 200px; float: right;">
                <svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" width="8.572em" height="8.572em" data-name="Layer 1" viewBox="0 0 103 103">
                    <title>Payment</title>
                    <rect class="circle cls-1" x="1.01" y="1.26" width="100" height="100" rx="50"></rect>
                    <path class="kd cls-2" d="M63.55,70.16l-6.06-7v7H55.27V56.25h2.22v6.06l5.84-6.06h2.75L59.59,62.5l6.73,7.66Z"></path>
                    <path class="kd cls-2" d="M67.49,70.16v-2.5H69.4v2.5Z"></path>
                    <path class="kd cls-2" d="M71.42,70.16V56.25h6.32c3.81,0,4.91,1.59,4.91,6.06v1.78c0,4.47-1.1,6.07-4.91,6.07Zm9-8c0-2.89-.46-4.36-2.89-4.36H73.62V68.58h3.94c2.25,0,2.89-1.3,2.89-4.2Z"></path>
                    <rect class="cls-1" x="15.44" y="27.78" width="71.3" height="46.97"></rect>
                    <line class="cls-1" x1="22.53" y1="56.6" x2="39.12" y2="56.6"></line>
                    <line class="cls-1" x1="32.8" y1="62.13" x2="38.33" y2="62.13"></line>
                    <line class="cls-1" x1="22.53" y1="67.66" x2="38.33" y2="67.66"></line>
                    <line class="cls-1" x1="15.29" y1="36.28" x2="86.4" y2="36.28"></line>
                    <line class="cls-1" x1="15.29" y1="47.83" x2="86.4" y2="47.83"></line>
                </svg>
            </label>
        </a>
        <div class="article">
            <div class="article-info">
                <div class="row text-center">
                    <div class="col-12 title">دفع المخالفات والغرامات</div>
                    <div class="col-12">
                        <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    </div>
                    <form id="QAFines">
                        <div class="col-12">
                            <select class="form-control" id="QAFinesSelectFineType" name="QAFinesSelectFineType">
                                <option value="1">المرور</option>
                                <option value="2">الإقامة</option>
                            </select>
                        </div>
                        <div class="col-12 mt-1">
                            <input class="form-control" id="QAFinesTextCivilId" name="QAFinesTextCivilId" maxlength="12" placeholder="الرقم المدني">
                        </div>
                        <div class="col-12">
                            <button class="btn btn-block btn-secondary mt-3" id="QABtnEnquireFines">دفع</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <!--APPOINTMENTS-->
    <div class="d-none">
        <a class="acc-header">
            <label class="footer-icon" style="width: 200px; float: right;">
                <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="8.572em" height="8.572em" viewBox="0 0 103 103" style="enable-background:new 0 0 103 103;" xml:space="preserve">
                <defs>
<style>
    .appt-cls-1 {
        fill: #000576;
    }

    .appt-cls-2 {
        fill: none;
        stroke: #fff;
        stroke-miterlimit: 10;
    }

    .appt-cls-3 {
        fill: #fff;
    }
</style>
</defs>
<path class="appt-cls-1" d="M51.5,1.5h0a50,50,0,0,1,50,50h0a50,50,0,0,1-50,50h0a50,50,0,0,1-50-50h0A50,50,0,0,1,51.5,1.5Z"></path>
<rect class="appt-cls-2" x="28.77" y="22.27" width="45.47" height="58.46" rx="0.32"></rect>
<rect class="appt-cls-2" x="33.64" y="49.88" width="35.72" height="16.24"></rect>
<line class="appt-cls-2" x1="69.05" y1="58.5" x2="33.43" y2="58.5"></line>
<line class="appt-cls-2" x1="56.37" y1="49.88" x2="56.37" y2="66.11"></line>
<line class="appt-cls-2" x1="46.63" y1="49.88" x2="46.63" y2="66.11"></line>
<rect class="appt-cls-2" x="59.62" y="30.39" width="3.25" height="6.5"></rect>
<rect class="appt-cls-2" x="40.13" y="30.39" width="3.25" height="6.5"></rect>
<line class="appt-cls-2" x1="63.07" y1="33.79" x2="74.12" y2="33.79"></line>
<line class="appt-cls-2" x1="59.62" y1="33.64" x2="43.38" y2="33.64"></line>
<line class="appt-cls-2" x1="40.13" y1="33.64" x2="28.95" y2="33.64"></line>
<polygon class="appt-cls-3" points="44.6 57.11 53 63.11 63.8 46.31 60.2 43.91 51.8 55.91 48.2 53.51 44.6 57.11"></polygon>
</svg>
            </label>
        </a>
        <div class="article">
            <div class="article-info">
                <div class="row text-center">
                    <div class="col-12 title">
                        منصة المواعيد
                    </div>
                    <div class="col-12">
                        <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    </div>
                    <!--<form id="QAAppointmentStatus">-->
                    <div class="col-12 mt-2">
                        <!--<a href="https://eservices3.moi.gov.kw/MOIeAp.nsf/Requeststatus?openform&langid=1" class="btn btn-block btn-secondary mt-2">إستعلام عن حالة تصريح السفر</a>-->
                        <!--<button class="btn btn-block btn-secondary" id="QAApptsBtnBook">إستكمال الحجز</button>
                        <a href="/main/eservices/residence/illegals-appointments" class="btn btn-block btn-secondary mt-2">تعديل أوضاع مخالفي
                        <br />
                        قانون إقامة الأجانب
                        </a>-->
                    </div>
                    <div class="col-12">
                        <!--<select id="QAApptsSelectDept" class="form-control mt-3">
                                    <option value="">إختر</option>
                                    <option value="E">الإدارة العامة للأدلة الجنائية</option>
                                    <option value="AA">قطاع الشؤون الإدارية</option>
                                    <option value="HA">إدارة الشؤون الصحية</option>
                                    <option value="FA">قطاع شؤون المالية</option>
                                    <option value="I">الإدارة العامة للتحقيقات</option>
                                    <option value="J">الإدارة العامة لتنفيذ الأحكام</option>
                                    <option value="X">الإدارة المركزية لإجراءات دخول/خروج</option>
                                    <option value="R">قطاع شئون الإقامة</option>
                                    <option value="N">الإدارة العامة للجنسية ووثائق السفر</option>
                                    <option value="T">قطاع المرور والعمليات</option>
                                    <option value="W">الإدارة العامة لمباحث السلاح</option>
                                    <option value="F">مباحث شؤون الإقامة</option>
                                    <option value="M">مبنى نواف الأحمد-صبحان</option>
                                    <option value="S">مركز خدمة المواطن</option>
                        <option value="VI">حجز موعد فحص فني خارجي للمركبات</option>-->
                        <!--<option value="B">الإدارة العامة لأمن المطار</option>-->
                        <!--</select>-->
                        <br>
                        <a href="https://nat5.moi.gov.kw/moieap.nsf/request?openform&amp;langid=1" class="btn btn-primary d-none">تبصيم الشركات</a><br><br>
                        <a href="https://meta.e.gov.kw/ar/">
                            <img style="width:170px;" src="https://www.moi.gov.kw/main/images/assets/logo-meta-ar.png">
                        </a>
                    </div>

                    <!--<div class="col-12">
                        <a href="https://eservices3.moi.gov.kw/MOIeAp.nsf/Request?OpenForm&LangID=1" class="btn btn-block btn-secondary mt-2">إستكمال الحجز </a>
                    </div>

                    <!--</form>-->
                </div>
            </div>
        </div>
    </div>

    <!--CHANGE OPERATOR-->
    <div style="height:221px;" class="d-none">
        <a class="acc-header">
            <label class="footer-icon" style="width: 200px; float: right;">
                <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="8.572em" height="8.572em" viewBox="0 0 103 103" style="enable-background:new 0 0 103 103;" xml:space="preserve">
                <style type="text/css">
                    .st0 {
                        fill: none;
                        stroke: #fff;
                        stroke-width: 2;
                        stroke-miterlimit: 10;
                    }

                    .st1 {
                        enable-background: new;
                    }

                    .st2 {
                        fill: #fff;
                    }

                    .st3 {
                        fill: none;
                        stroke: #fff;
                        stroke-miterlimit: 10;
                    }
</style>
                <title>sms</title>
                <path class="circle st0" d="M51.5,1.5L51.5,1.5c27.6,0,50,22.4,50,50l0,0c0,27.6-22.4,50-50,50l0,0c-27.6,0-50-22.4-50-50l0,0  C1.5,23.9,23.9,1.5,51.5,1.5z"></path>































































































































































































































































                <g class="st1">
                <path class="st2" d="M35.2,46.2c0-0.2,0.1-0.5,0.1-0.7c0-1.8-1.5-2-2.9-2c-2.8,0-3.3,0.6-3.3,2.2c0,1,0.3,1.6,1.1,2   c0.8,0.4,1.9,0.4,2.8,0.6c2.8,0.3,5.5,0.7,5.5,4.5c0,3.9-2.9,4.5-6,4.5c-2.7,0-6.2-0.3-6.3-4c0-0.3,0-0.6,0-0.9h2.9   c0,0.2,0,0.4,0,0.6c0,2.1,1.7,2.4,3.4,2.4c1.6,0,3.2-0.1,3.2-2.3c0-2.2-1.4-2.3-3.8-2.6c-3-0.3-5.8-0.8-5.8-4.4   c0-3.2,1.8-4.3,6-4.3c3.4,0,5.8,0.4,5.9,3.6c0,0.3,0,0.7-0.1,0.9H35.2z"></path>































































































































































































































































                <path class="st2" d="M59.1,56.8V46c0-1.2-0.3-2.2-2.7-2.2c-1.9,0-2.9,0.8-3.2,2.1v10.9h-2.9V46c0-1.3-0.3-2.2-2.7-2.2   c-1.8,0-2.9,0.4-3.3,2.3v10.8h-3.1V41.9h3.1v2c0.8-1.2,2.4-2.3,4.8-2.3c2.7,0,3.7,0.9,4,2.3c1-1.4,2.6-2.3,4.8-2.3   c3.5,0,4.2,1.4,4.2,3.7v11.5H59.1z"></path>































































































































































































































































                <path class="st2" d="M73.7,46.2c0-0.2,0.1-0.5,0.1-0.7c0-1.8-1.5-2-2.9-2c-2.8,0-3.3,0.6-3.3,2.2c0,1,0.3,1.6,1.1,2   c0.8,0.4,1.9,0.4,2.8,0.6c2.8,0.3,5.5,0.7,5.5,4.5c0,3.9-2.9,4.5-6,4.5c-2.7,0-6.2-0.3-6.3-4c0-0.3,0-0.6,0-0.9h2.9   c0,0.2,0,0.4,0,0.6c0,2.1,1.7,2.4,3.4,2.4c1.6,0,3.2-0.1,3.2-2.3c0-2.2-1.4-2.3-3.8-2.6c-3-0.3-5.8-0.8-5.8-4.4   c0-3.2,1.8-4.3,6-4.3c3.4,0,5.8,0.4,5.9,3.6c0,0.3,0,0.7-0.1,0.9H73.7z"></path>































































































































































































































































                </g>
                <text transform="matrix(1 0 0 1 -231.0191 -27.0389)" class="st2" style="font-family:'DDTRg-Regular'; font-size:28px;">sms</text>
                <path class="st3" d="M30.6,82c0,0,0.5-9.4,6.1-12c0.6-0.3,1.2-0.4,1.9-0.4l45.2,0.2V28.4H20.8v41.4h5.4L30.6,82z"></path>































































































































































































































































            </svg>
            </label>
        </a>
        <div class="article">
            <div class="article-info">
                <div class="row text-center">
                    <div class="col-12 title">تعديل شركة الإتصالات</div>
                    <div class="col-12">
                        <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    </div>
                    <div class="col-12">
                        <form asp-controller="sms" asp-action="change" id="QAChangeCompany">
                            <div class="row">
                                <div class="col-12">
                                    <input type="tel" class="form-control" id="QATextMobile" name="QATextMobile" placeholder="*الموبايل" maxlength="8">
                                </div>

                            </div>
                            <div class="row mt-1">
                                <div class="col-12">
                                    <input class="form-control" id="QATextCivilId" name="QATextCivilId" placeholder="*الرقم المدني" maxlength="12">
                                </div>
                            </div>
                            <div class="row mt-1 no-gutters">
                                <div class="col-sm-12 col-md-5">
                                    <select class="form-control" id="QASelectCompany" name="QASelectCompany">
                                        <option value="1">VIVA</option>
                                        <option value="2">OOREDOO</option>
                                        <option value="3">ZAIN</option>
                                    </select>
                                </div>
                                <div class="col-sm-12 col-md-7">
                                    <input type="password" autocomplete="off" name="QATextActivationCode" id="QATextActivationCode" class="form-control" placeholder="*رقم التفعيل" maxlength="4">
                                </div>
                            </div>
                            <div class="row mt-1">
                                <div class="col-12">
                                    <button class="btn btn-block btn-secondary" id="QABtnChange">تعديل</button>
                                    <div class="d-flex justify-content-center">
                                        <div class="spinner-grow text-secondary d-none" role="status" id="QAWorkingOnIt">
                                            <span class="sr-only">Loading...</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--COAST GUARD-->
    <div class="d-none">
        <a class="acc-header">
            <label class="footer-icon" style="width: 200px; float: right;">
                <svg xmlns="http://www.w3.org/2000/svg" width="8.572em" height="8.572em" data-name="Layer 1" viewBox="0 0 103 103">
                    <title>KCG-service</title>
                    <rect class="circle cls-1" x="1.21" y="0.82" width="100" height="100" rx="50"></rect>
                    <path class="cls-1" d="M64.34,30.56A4.71,4.71,0,0,0,59.49,26a4.56,4.56,0,0,0-4.67,4.61,4.76,4.76,0,0,0,9.52,0Z"></path>
                    <line class="cls-1" x1="66.35" y1="43.39" x2="52.51" y2="43.39"></line>
                    <path class="cls-1" d="M72.12,61.7l6.66-4.36a.36.36,0,0,1,.51,0L86,61.7"></path>
                    <path class="cls-1" d="M79,57.08s2.31,20.76-19.6,20.47l.2-42.22"></path>
                    <path class="cls-1" d="M46.75,61.7l-6.66-4.36a.36.36,0,0,0-.51,0L32.91,61.7"></path>
                    <path class="cls-1" d="M39.83,57.08s-2.3,20.76,19.6,20.47l.2-42.22"></path>
                    <path class="cls-1" d="M59.93,25.84a1.73,1.73,0,0,0-1.72-1.72l-40,0a1.73,1.73,0,0,0-1.72,1.72l0,49.93a1.73,1.73,0,0,0,1.72,1.73l41.44,0"></path>
                    <line class="cls-1" x1="23.05" y1="32.53" x2="28.84" y2="32.53"></line>
                    <line class="cls-1" x1="23.05" y1="37.27" x2="42.53" y2="37.27"></line>
                    <line class="cls-1" x1="23.05" y1="41.48" x2="39.37" y2="41.48"></line>
                    <line class="cls-1" x1="23.05" y1="45.7" x2="47.11" y2="45.7"></line>
                </svg>
            </label>
        </a>
        <div class="article">
            <div class="article-info">
                <div class="row text-center">
                    <div class="col-12 title">Ensure Safety at Sea</div>
                    <div class="col-12">
                        <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    </div>
                    <div class="col-12 text-justify">
                        For your safety, please inform the General Directorate of Coast Guard by filling the Sailing Plan form
                    </div>
                    <div class="col-12">
                        <a href="https://eservices1.moi.gov.kw/coast-guard.nsf/boat-float-plan?openform&amp;langid=@(System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft ? " 1"="" :="" "2"="" )"="" class="btn btn-secondary mt-3">Sail Plan</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--GET REFERENCE NUMBER-->
    <div>
        <a class="acc-header active">
            <label class="footer-icon" style="width: 200px; float: right;">
                <img src="https://www.moi.gov.kw/main/images/assets/common/ico-get-ref-num.svg" class="moi-ico" id="getRefNumPop">
            </label>
        </a>
        <div class="article">
            <div class="article-info">
                <div class="row text-center">
                    <div class="col-12 title">الإستعلام عن رقم مرجع الداخلية</div>
                    <div class="col-12">
                        <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    </div>
                    <div class="col-12">
                        <input class="form-control" id="QARefNumTextCivilId" name="QARefNumTextCivilId" maxlength="12" placeholder="الرقم المدني">
                    </div>
                    <div class="col-12">
                        <button type="button" class="btn btn-block btn-secondary mt-2" id="btnGetRefNumKwti">للكويتين</button>
                    </div>
                    <div class="col-12">
                        <button type="button" class="btn btn-block btn-secondary mt-2" id="btnGetRefNumOther">للمقيمين</button>
                    </div>
                    <!--<form id="QARefNum">
                        <div class="col-12">
                            <input class="form-control" id="QARefNumTextCivilId" name="QARefNumTextCivilId" maxlength="12" placeholder="الرقم المدني" />
                        </div>
                        <div class="col-12 mt-1">
                            <input class="form-control" id="QARefNumTextPassport" name="QARefNumTextPassport" maxlength="15" placeholder="رقم جواز السفر" />
                        </div>
                        <div class="col-12 mt-1">
                            <input readonly class="form-control" id="QARefNumTextExpiryDate" name="QARefNumTextExpiryDate" maxlength="10" placeholder="تاريخ الانتهاء جواز السفر" />
                        </div>
                        <div class="col-12">
                            <button class="btn btn-block btn-secondary mt-2" id="btnGetRefNum">استعلم</button>
                            <div class="d-flex justify-content-center">
                                <div class="spinner-grow text-secondary d-none" role="status" id="QARNWorkingOnIt">
                                    <span class="sr-only">Loading...</span>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="col-12 d-none" id="QANatNumResultContainer">
                        <div class="row">
                            <div class="col-12" id="QANatNumResult"></div>
                            <div class="col-12">
                                <button type="button" class="btn btn-block btn-secondary mt-2" id="btnGetRefNumDone">إغلاق</button>
                            </div>
                        </div>
                    </div>-->
                </div>
            </div>
        </div>
    </div>

    <!--HEALTH CHECK-->
    <div class="d-none">
        <a class="acc-header">
            <label class="footer-icon" style="width: 200px; float: right;">
                <img src="https://www.moi.gov.kw/main/images/assets/common/ico-health-check-status.svg" class="moi-ico" id="getHealthCheckStatus">
            </label>
        </a>
        <div class="article">
            <div class="article-info">
                <div class="row text-center">
                    <div class="col-12 title">جاهزية نتيجة الفحص الطبي</div>
                    <div class="col-12">
                        <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    </div>
                    <form id="QAHealthCheck" novalidate="novalidate">
                        <div class="col-12">
                            <input class="form-control" id="QAHealthCheckTextNationalNo" name="QAHealthCheckTextNationalNo" maxlength="12" placeholder="رقم مرجع الداخلية">
                        </div>
                        <div class="col-12">
                            <button class="btn btn-block btn-secondary mt-3" id="btnQAHealthCheck">استعلم</button>
                            <div class="d-flex justify-content-center">
                                <div class="spinner-grow text-secondary d-none" role="status" id="QAHCWorkingOnIt">
                                    <span class="sr-only">Loading...</span>
                                </div>
                            </div>
                            <div id="QAHealthReport" class="d-none mt-3"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>


    <!--CASE MOVEMENT INQUIRY-->
    <div>
        <a class="acc-header">
            <label class="footer-icon" style="width: 200px; float: right;">
                <img src="https://www.moi.gov.kw/main/images/assets/common/ico-case-track.svg" class="moi-ico">
            </label>
        </a>
        <div class="article">
            <div class="article-info">
                <div class="row text-center">
                    <div class="col-12 title">الاستعلام عن سير القضية</div>
                    <div class="col-12">
                        <img src="https://www.moi.gov.kw/main/images/assets/common/ico-horizontal-bar.svg">
                    </div>
                    <form id="QACaseCheck" novalidate="novalidate">
                        <div class="col-12">
                            <input class="form-control" id="QACaseCheckTextNationalNo" name="QACaseCheckTextNationalNo" maxlength="12" placeholder="رقم مرجع الداخلية">
                        </div>
                        <div class="col-12">
                            <button class="btn btn-block btn-secondary mt-3" id="btnQACaseCheck">استعلم</button>
                            <div class="d-flex justify-content-center">
                                <div class="spinner-grow text-secondary d-none" role="status" id="QACCWorkingOnIt">
                                    <span class="sr-only">Loading...</span>
                                </div>
                            </div>
                            <!--<div id="QAHealthReport" class="d-none mt-3"></div>-->
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>


    <!--NEW SERVICES-->
    <div>
        <label class="footer-icon" style="width: 200px; float: right;">
            <a data-toggle="modal" data-target="#newServicesModal">
                <img src="https://www.moi.gov.kw/main/images/assets/common/ico-new-services.svg" class="moi-ico" id="newServicesPop">
            </a>
        </label>
    </div>
</div>
<script type="text/javascript">
    var yearDropDownNat;
    var yearDropDownPP;
</script>
<script type="module" src="/main/lib/flatpickr/plugins/year-dropdown.js"></script>
<script type="module">
    import yearDropdownPlugin from '/main/lib/flatpickr/plugins/year-dropdown.js';
    var todayDt = new Date();
    yearDropDownNat = new yearDropdownPlugin(
        {
        date: todayDt.getDate + "/" + todayDt.getMonth() + "/" + todayDt.getFullYear(),
        yearStart: 80,//todayDt.setFullYear(todayDt.getFullYear() - 90),
        yearEnd: 0//todayDt.getFullYear()
    }
    );

    yearDropDownPP = new yearDropdownPlugin(
        {
            date: todayDt.getDate + "/" + todayDt.getMonth() + "/" + todayDt.getFullYear(),
            yearStart: 0,//todayDt.setFullYear(todayDt.getFullYear() - 90),
            yearEnd: 10//todayDt.getFullYear()
        }
    );
</script>
<script type="text/javascript">

    function loadScript(url, callback) {
        // adding the script tag to the head as suggested before
        var body = document.getElementsByTagName('body')[0];
        var script = document.createElement('script');
        script.type = 'text/javascript';
        script.src = url;

        // then bind the event to the callback function
        // there are several events for cross browser compatibility
        script.onreadystatechange = function () {
            //console.log('call back readystate');
            callback;
        };
        // fire the loading
        body.appendChild(script);
        script.onload = callback;
            /*function () {
            console.log('call back onload');
            callback;
        };*/
    }

    function doNothing() {

    }

    $(document).ready(function () {

        $('footer').load('https://www.moi.gov.kw/main/footer.html');
        loadScript('https://cdn.jsdelivr.net/npm/flatpickr', loadLocale);
        function loadLocale() {
            loadScript('https://npmcdn.com/flatpickr/dist/l10n/ar.js', setReferenceNumberLinks);
            //console.log('do nothing');
        }

        $(".acc-header").click(function () {
            //alert('clicked');
            var current = document.getElementsByClassName("acc-header active");
            if (current.length > 0) {
                //alert('active');
                current[0].className = current[0].className.replace(" active", "");
            }
            else {
                alert('nothing active');
            }
            this.className += " active";

        });
        setAccordionDirectionAR();
        setAppointmentsForm();
        setTrafficFineForm();
        setSMSChangeCompanyForm();
        //setReferenceNumberForm();
        setHealthCheckForm();
        setCaseCheckForm();
    });

    function setAccordionDirectionAR() {
        var current = document.getElementsByClassName("footer-icon");
        //console.log(current[0]);
        for (i = 0; i < current.length; i++) {
            var direction = 'right';
            current[i].style.cssFloat = 'right';
        }
    }

    /************TRAFFIC FINE SCRIPTS********************************/
    setTrafficFineForm = () => {
        $('#QABtnEnquireFines').on('click', function (event) {
            //alert('hi')
            $('#QAFines').validate({
                rules: {
                    QAFinesTextCivilId: {
                        required: true,
                        //digits: true,
                        regex: /^[0-9\u0660-\u0669]+$/,
                        minlength: 8
                    }
                },
                messages: {
                    QAFinesTextCivilId: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        regex: 'يرجى إدخال رقم صحيح',
                    }
                },
                submitHandler: function (form, event) {
                    $('#QABtnEnquireFines').attr("disabled", true);
                    event.preventDefault();
                    if ($('#QAFinesSelectFineType').val() == "1") {
                        window.location.href = serverUrl + "/main/eservices/gdt/violation-enquiry?civilId=" + $("#QAFinesTextCivilId").val();
                        //window.location.href = "https://portal.acs.moi.gov.kw/wps/portal/violations?systemSelection=1&numberType=1&numberValue=" + $("#QAFinesTextCivilId").val() + "&carNumberGoverCode=&licneseType=3&purpose=0&violYear=0&violGover=0&secondPartOfnewcarno=0&embassyTextField=0&QuickAccess='GO'"
                    }
                    else {
                        //window.location.href = "http://10.11.77.82:10038/wps/portal/violations?systemSelection=2&violOptionNumber=2&numberValue=" + $("#QAFinesTextCivilId").val() + "&QuickAccess='GO'"
                        //window.location.href = "http://portal.acs.moi.gov.kw/wps/portal/violations?systemSelection=2&violOptionNumber=2&numberValue=" + $("#QAFinesTextCivilId").val() + "&QuickAccess='GO'"
                        window.location.href = serverUrl + "/main/eservices/residence/fines-	enquiry?civilId=" + $("#QAFinesTextCivilId").val();
                    }
                    return;
                }
            })
        });
    };
    /**********************************************************************/

    /**************SMS SUBSCRIPTION CHANGE COMPANY SCRIPTS************/
    setSMSChangeCompanyForm = () => {
        $('#QABtnChange').on('click', function (event) {
            //event.preventDefault();
            $('#QAChangeCompany').validate({
                rules: {
                    QATextMobile: {
                        required: true,
                        digits: true,
                        minlength: 8
                    },
                    QATextCivilId: {
                        required: true,
                        digits: true,
                        minlength: 12
                    },
                    QATextActivationCode: {
                        required: true,
                        digits: true,
                        minlength: 4
                    }
                },
                messages: {
                    QATextMobile: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        digits: 'يرجى إدخال رقم صحيح',
                    },
                    QATextCivilId: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        digits: 'يرجى إدخال رقم صحيح',
                    },
                    QATextActivationCode: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        digits: 'يرجى إدخال رقم صحيح',
                    }
                },
                submitHandler: function (form, event) {
                    $('#QABtnChange').attr("disabled", true);
                    $('#QAWorkingOnIt').addClass('d-block');
                    event.preventDefault();
                    grecaptcha.ready(function () {
                        grecaptcha.execute('6LdUyqwUAAAAAM5MRMXHrlAjDCrWT5CcRpdXgK2p', { action: 'sms/register' }).then(function (token) {
                            var formData = $("#QAChangeCompany").serializeArray();
                            //console.log(formData);
                            formData.push({ name: "g-recaptcha-token", value: token });
                            formData.push({ name: "Mobile", value: $("#QATextMobile").val() });
                            formData.push({ name: "CivilId", value: $("#QATextCivilId").val() });
                            formData.push({ name: "Company", value: $("#QASelectCompany option:selected").val() });
                            formData.push({ name: "ActivationCode", value: $("#QATextActivationCode").val() });
                            //submit via ajax
                            $.ajax({
                                url: serverUrl + '/main/eservices/sms/change-company', //decodeURIComponent('Url.Action("change-company","eservices/sms")')
                                type: 'POST',
                                data: formData,
                                contentType: 'application/x-www-form-urlencoded; charset=utf-8',
                                success: function (data) {
                                    //console.log(data);
                                    $('#QAResponse').removeClass('text-center').removeClass('text-danger');
                                    $('#infoModalTitle').html('تعديل شركة الإتصالات');
                                    $('#QAResponse').html(data.value.info);
                                    $('#QAWorkingOnIt').removeClass('d-block');
                                    $('#infoModal').modal('toggle')
                                    $('#QABtnChange').removeAttr("disabled");
                                },
                                error: function (jqXHR, textStatus, errorThrown) {
                                    console.log('failed');
                                    console.log(jqXHR);
                                    var resp = $.parseJSON(jqXHR.responseText);
                                    $('#infoModalTitle').html('تعديل شركة الإتصالات');
                                    $('#QAResponse').addClass('text-center').addClass('text-danger');
                                    $('#QAResponse').html(resp.errorMessage);
                                    $('#QAWorkingOnIt').removeClass('d-block');
                                    $('#infoModal').modal('toggle');
                                    $('#QABtnChange').removeAttr("disabled");
                                }
                            });
                        });
                    });

                }
            });
        });
    };
    /*****************************************************************/

    /************GET REFERENCE NUMBER SCRIPTS***********************************/
    function setReferenceNumberForm2() {
        $("#btnGetRefNum").click(function () {
            $('#QARefNum').validate({
                rules: {
                    QARefNumTextCivilId: {
                        required: true,
                        digits: true,
                        minlength: 12
                    },
                    QARefNumTextPassport: {
                        required: true,
                        minlength: 3
                    },
                    QARefNumTextExpiryDate: {
                        required: true,
                        minlength: 10
                    }

                },
                messages: {
                    QARefNumTextCivilId: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                        digits: 'يرجى إدخال رقم صحيح',
                    },
                    QARefNumTextPassport: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال رقم صحيح',
                    },
                    QARefNumTextExpiryDate: {
                        required: 'حقل مطلوب',
                        minlength: 'يرجى إدخال تاريخ صحيح',
                    }
                },
                submitHandler: function (form, event) {
                    $("#QARNWorkingOnIt").removeClass('d-none');
                    $("#QANatNumResult").html('');
                    $('#btnGetRefNum').attr("disabled", true);
                    event.preventDefault();
                    QAGetNationalNumber($('#QARefNumTextCivilId').val(),
                        $('#QARefNumTextPassport').val(),
                        $('#QARefNumTextExpiryDate').val());
                    return;
                }
            })
        });
        $("#btnGetRefNumDone").click(function () {
            $('#QANatNumResult').html('');
            $('#QANatNumResultContainer').addClass("d-none");
            $('#QARefNum').removeClass("d-none");
        });
        /***SET THE MOBILE QA FORM AS WELL BECAUSE OF
         *** CALENDAR ISSUES***************/
        setMQAReferenceNumberForm();
        //loadScript('/main/lib/awesome-qr/js/require.js', doNothing);
    };

    function setReferenceNumberLinks() {
        let refUrl = "/main/eservices/get-reference-number";
        $("#btnGetRefNumKwti").click(() => {
            location.href = refUrl + "?civilId=" + $("#QARefNumTextCivilId").val().trim() + "&enquiryFor=kuwaiti"
        });
        $("#btnGetRefNumOther").click(() => {
            location.href = refUrl + "?civilId=" + $("#QARefNumTextCivilId").val().trim() + "&enquiryFor=non-kuwaiti"
        });
        $("#btnGetRefNumKwti").removeClass('disabled');
        $("#btnGetRefNumOther").removeClass('disabled');
        //console.log("enabled");
        //console.log(yearDropDownNat);
        //console.log(yearDropDownPP);
        var today = new Date();
        config = {
            plugins: [yearDropDownPP],
            minDate: today,
            dateFormat: "Y-m-d",
            locale: "ar",
            disableMobile: true
        };
        natIssueConfig = {
            plugins: [yearDropDownNat],
            //defaultDate: today.setFullYear(today.getFullYear() - 35),
            minDate: today.setFullYear(today.getFullYear() - 90),
            maxDate: "today",
            dateFormat: "Y-m-d",
            locale: "ar",
            disableMobile: true
        };
        if (location.href.indexOf('get-reference-number') > 0) {
            $("#txtExpiryDate").flatpickr(config);
            $("#txtNatIssueDate").flatpickr(natIssueConfig);
        }
    }

    QAShowRefNumResult = (result) => {
        var table;
        if (result.returnCode == 8) {
            table = "<table class='table table-striped'>"
                + "<tr>"
                + "<td>رقم مرجع الداخلية</td>"
                //+ "</tr>"
                //+ "<tr>"
                //+ "<td>" + result.civilId + "</td>"
                + "<td>" + result.nationalNumber + "</td></tr></table>"
        }
        else {
            table = "<table class='table table-striped'>"
                + "<tr>"
                + "<td>رقم مرجع الداخلية</td>"
                //+ "</tr>"
                //+ "<tr>"
                + "<td>لا يوجد رقم مرجع، يرجى التأكد من البيانات المدخلة.</td>"
                + "</tr></table>"
        }
        $('#QANatNumResult').html(table);
        $('#MQANatNumResult').html(table);
        $('#QANatNumResultContainer').removeClass("d-none");
        $('#MQANatNumResultContainer').removeClass("d-none");
        $('#QARefNum').addClass("d-none");
        $('#MQARefNum').addClass("d-none");
    }
    /*****************************************************************/

    function setAppointmentsForm() {

        $('#QAApptsSelectDept').on('change', function () {
            var urlToGo = ".moi.gov.kw/moieap.nsf/request?"
                + "openform&langid=1&sec="
                + $('#QAApptsSelectDept').val();
            switch ($('#QAApptsSelectDept').val()) {
                case "AA":
                case "FA":
                case "HA":
                case "J":
                case "W":
                case "M":
                    location.href = `https://nat1${urlToGo}`;
                    break;
                case "T":
                    location.href = `https://nat2${urlToGo}`;
                    break;
                case "E2":
                    location.href = `https://nat3${urlToGo}`;
                    break;
                case "E":
                case "N":
                case "X":
                    location.href = `https://nat5${urlToGo}`;
                    break;
                case "S":
                case "I":
                    location.href = `https://nat4${urlToGo}`;
                    break;
                case "R":
                case "F":
                    location.href = `https://eservices7${urlToGo}`;
                    break;
                case "B":
                    location.href = `https://eservices3${urlToGo}`;
                    break;
                case "VI":
                    location.href = "https://eservices2.moi.gov.kw/GDTVehIns.nsf";
                    break;
            }
        });

        //$('#QAApptsBtnBook').click(function () {
        //    //alert($('#QAApptsSelectDept').val());
        //    var urlToGo = "moi.gov.kw/moieap.nsf/request?"
        //        + "openform&langid=1&sec="
        //        + $('#QAApptsSelectDept').val();
        //    //switch ($('#QAApptsSelectDept').val()) {
        //    //    case "N":
        //    //    case "T":
        //    //        urlToGo = `https://eservices7.${urlToGo}`;
        //    //        break;
        //    //    case "M":
        //    //    case "F":
        //    //        urlToGo = `https://eservices3.${urlToGo}`;
        //    //        break;
        //    //}
        //    location.href = `https://eservices7.${urlToGo}`;
        //});
    }

    function setHealthCheckForm() {
        $('#QAHealthCheck').validate({
            rules: {
                QAHealthCheckTextNationalNo: {
                    required: true,
                    digits: true,
                    minlength: 9
                },
            },
            messages: {
                QAHealthCheckTextNationalNo: {
                    required: 'Required',
                    minlength: 'Enter Valid Number',
                    digits: 'Enter Valid Number',
                }
            },
            submitHandler: function (form, event) {
                $('#btnQAHealthCheck').attr("disabled", true);
                $('#QAHCWorkingOnIt').removeClass('d-none');
                event.preventDefault();
                $.ajax({
                    //url: 'https://localhost:44322/mfservices/health/get-result/' + $("#QAHealthCheckTextNationalNo").val(),
                    url: 'https://www.moi.gov.kw/mfservices/health/get-result/' + $("#QAHealthCheckTextNationalNo").val(),
                    type: 'GET',
                    contentType: 'application/json;charset=utf-8',
                    success: function (data) {
                        console.log(data);
                        $('#btnQAHealthCheck').attr("disabled", false);
                        showQAHealthCheckResult(data);
                        $("#QAHCWorkingOnIt").addClass('d-none');
                    },
                    error: function (jqXHR, textStatus, errorThrown) {
                        $("#QAHCWorkingOnIt").addClass('d-none');
                        console.log(jqXHR);
                        $('#btnQAHealthCheck').attr("disabled", false);
                        //var resp = $.parseJSON(jqXHR.responseText);
                        //console.log(resp.errorMessage);
                        $("#QAHealthReport").html('Unexpected error.Please try later');
                        $("#QAHealthReport").removeClass('d-none');

                    }
                });
            }
        });
    }

    function setCaseCheckForm() {
        $('#QACaseCheck').validate({
            rules: {
                QACaseCheckTextNationalNo: {
                    required: true,
                    digits: true,
                    minlength: 9
                },
            },
            messages: {
                QACaseCheckTextNationalNo: {
                    required: 'حقل مطلوب',
                    minlength: 'يرجى إدخال رقم صحيح',
                    regex: 'يرجى إدخال رقم صحيح',
                }
            },
            submitHandler: function (form, event) {
                $('#btnQACaseCheck').attr("disabled", true);
                $('#QACCWorkingOnIt').removeClass('d-none');
                event.preventDefault();
                $('#QABtnEnquireFines').attr("disabled", true);
                event.preventDefault();
                window.location.href = serverUrl + "/main/eservices/investigations/case-enquiry?nationalNo=" + $("#QACaseCheckTextNationalNo").val();
                return;
            }
        });
    }

    showQAHealthCheckResult = (result) => {
        var report;
        switch (result.statusCode) {
            case 0:
                //console.log(result.statusMessage);
                report = 'نتيجه الفحص الطبي لائق';
                break;
            case 1:
                //console.log(result.statusMessage);
                report = 'نتيجة الكشف الطبي غير لائق';
                break;
            case 2:
                //console.log(result.statusMessage);
                report = 'نتيجه الفحص الطبي لائق موقتاً';
                break;
            case 3:
                //console.log(result.statusMessage);
                report = 'يرجى إعاده الفحص الطبي';
                break;
            case 4:
                //console.log(result.statusMessage);
                report = 'معفي من إجراء الفحص الطبي';
                break;
            case 5:
                //console.log(result.statusMessage);
                report = 'لا يوجد كشف طبي لإظهار نتيجه الفحص';
                break;
            case 6:
                //console.log(result.statusMessage);
                report = 'الرقم المدخل غير صحيح';
                break;
            default:
                console.log(result.statusMessage);
                report = "Unknown error";
                break;
        }

        var resultDisplay = "<table class='table table-striped'>"
            + " <tr>"//<td>Status</td>
            + " <td>" + report + "</td></tr>"
            + "</table >";
        $("#QAHealthReport").html(resultDisplay);
        $("#QAHealthReport").removeClass('d-none');
    };
</script></dqa>
            <footer class="container border-top footer text-muted mt-2 p-0"><div class="col-sm-12 text-center text-white mt-2 ">
    <div class="row">
        <div class="col-sm-12">
            <a href="https://www.youtube.com/user/SecurityMediaQ8">
                <img src="https://www.moi.gov.kw/main/images/assets/social-media/ico-youtube.svg" class="social-media-icon">
            </a>
            <a href="https://www.instagram.com/moi_kuw/?hl=en">
                <img src="https://www.moi.gov.kw/main/images/assets/social-media/ico-instagram.svg" class="social-media-icon">
            </a>
            <a href="https://twitter.com/moi_kuw?lang=en">
                <img src="https://www.moi.gov.kw/main/images/assets/social-media/ico-twitter.svg" class="social-media-icon">
            </a>
            <a href="https://www.facebook.com/MOIKuwait/">
                <img src="https://www.moi.gov.kw/main/images/assets/social-media/ico-facebook.svg" class="social-media-icon">
            </a>
            &nbsp;&nbsp;
            <a href="https://play.google.com/store/apps/details?id=com.MoIKuwait">
                <img src="https://www.moi.gov.kw/main/images/assets/common/ico-android.svg" class="social-media-icon">
            </a>
            &nbsp;&nbsp;
            <a href="https://itunes.apple.com/kw/app/moi-kuwait/id871764188?mt=8">
                <img src="https://www.moi.gov.kw/main/images/assets/common/ico-apple.svg" class="social-media-icon">
            </a>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12" id="copyRight"> © جميع الحقوق محفوظة لوزارة الداخلية-دولة الكويت - 2024</div>
    </div>
<div class="row">
        <div class="col-sm-12">
		<!--For inquiries - 25581755-->
        </div>
    </div>
</div>
<script>
$(document).ready(function() {
    $('#copyRight').html(getFooterText());
});
    </script></footer>
        </div>
    </div>
    <modals>
<div class="modal fade" id="newServicesModal" tabindex="-1" role="dialog" aria-labelledby="newServicesModalTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="newServicesModalTitle"></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-12 col-md-4 text-center">
                        <a href="https://edl.moi.gov.kw/Login.aspx">
                            <img src="https://www.moi.gov.kw/main/images/assets/general-traffic/ico-renew.svg" class="moi-ico">
                            <div class="row text-center">
                                <div class="col">
                                    الخدمات الالكترونية لرخص السوق
                                </div>
                            </div>
                        </a>
                    </div>
                    <!--<div class="col-12 col-md-4 text-center">
        <a href="https://esp.moi.gov.kw/MOI_Kuwait/apps/services/www/MoIKuwait/desktopbrowser/default/index.html">
            <img src="https://www.moi.gov.kw/main/images/assets/esp-logo-white.svg" class="moi-ico" />
            <div class="row text-center d-flex">
                <div class="col">
                    منصة الخدمات الإلكترونية
                </div>
            </div>
        </a>
    </div>-->
                    <div class="col-12 col-md-4 text-center">
                        <a href="https://eres.moi.gov.kw/individual/ar/auth/login">
                            <img src="https://www.moi.gov.kw/main/images/assets/residency/ico-renew-individual.svg" class="moi-ico">
                            <div class="row text-center">
                                <div class="col">
                                    الخدمات الإلكترونية للأفراد
                                </div>
                            </div>
                        </a>
                    </div>
                    <div class="col-12 col-md-4 text-center">
                        <a href="https://www.moi.gov.kw/main/eservices/residence/health-check-status">
                            <img src="https://www.moi.gov.kw/main/images/assets/common/ico-health-check-status.svg" class="moi-ico">
                            <div class="row text-center">
                                <div class="col">
                                    جاهزية نتيجة الفحص الطبي
                                </div>
                            </div>
                        </a>
                    </div>
                    <!--<div class="col-12 col-md-4 text-center">-->
                        <!--<a href="https://www.moi.gov.kw/main/eservices/election/candidates/0">-->
                        <!--<a href="https://www.moi.gov.kw/main/eservices/election/voter-location">
                            <img src="https://www.moi.gov.kw/main/images/assets/finance/ico-rfp-fill.svg" class="moi-ico" />
                            <div class="row text-center">
                                <div class="col">
                                    الاستعلام عن مكان تصويت الناخب
                                </div>
                            </div>
                        </a>
                    </div>-->
                    <div class="col-12 col-md-4 text-center">
                        <a href="https://www.moi.gov.kw/main/eservices/residence/visa-fees">
                            <svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" width="8.572em" height="8.572em" data-name="Layer 1" viewBox="0 0 103 103">
                                <title>Payment</title>
                                <rect class="circle cls-1" x="1.01" y="1.26" width="100" height="100" rx="50" style="fill: #000576; stroke: #000576;"></rect>
                                <path class="kd cls-2" d="M63.55,70.16l-6.06-7v7H55.27V56.25h2.22v6.06l5.84-6.06h2.75L59.59,62.5l6.73,7.66Z"></path>
                                <path class="kd cls-2" d="M67.49,70.16v-2.5H69.4v2.5Z"></path>
                                <path class="kd cls-2" d="M71.42,70.16V56.25h6.32c3.81,0,4.91,1.59,4.91,6.06v1.78c0,4.47-1.1,6.07-4.91,6.07Zm9-8c0-2.89-.46-4.36-2.89-4.36H73.62V68.58h3.94c2.25,0,2.89-1.3,2.89-4.2Z"></path>
                                <rect class="cls-1" x="15.44" y="27.78" width="71.3" height="46.97"></rect>
                                <line class="cls-1" x1="22.53" y1="56.6" x2="39.12" y2="56.6"></line>
                                <line class="cls-1" x1="32.8" y1="62.13" x2="38.33" y2="62.13"></line>
                                <line class="cls-1" x1="22.53" y1="67.66" x2="38.33" y2="67.66"></line>
                                <line class="cls-1" x1="15.29" y1="36.28" x2="86.4" y2="36.28"></line>
                                <line class="cls-1" x1="15.29" y1="47.83" x2="86.4" y2="47.83"></line>
                            </svg>
                            <div class="row text-center">
                                <div class="col">
                                    دفع رسوم سمة دخول عمل بالقطاع الأهلي
                                </div>
                            </div>
                        </a>
                    </div>
                    <div class="col-12 col-md-4 text-center">
                        <a href="https://eres.moi.gov.kw/companies?culture=ar">
                            <img src="https://www.moi.gov.kw/main/images/assets/residency/ico-renew-companies.svg" class="moi-ico">
                            <div class="row text-center">
                                <div class="col">
                                    الخدمات الإلكترونية للشركات
                                </div>
                            </div>
                        </a>
                    </div>
                    <div class="col-12 col-md-4 text-center">
                        <a href="https://eres.moi.gov.kw/government?culture=ar">
                            <img src="https://www.moi.gov.kw/main/images/assets/residency/ico-renew-government.svg" class="moi-ico">
                            <div class="row text-center">
                                <div class="col">
                                    الخدمات الإلكترونية للحكومة
                                </div>
                            </div>
                        </a>
                    </div>
                </div>

            </div>
            <div class="modal-footer">

            </div>
        </div>
    </div>
</div>


<div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="infoModalTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="infoModalTitle">Change Company</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body" id="QAResponse">
                Your company is now changed as requested.
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
</modals>

    <div class="modal fade" id="emergencyContactModal" tabindex="-1" role="dialog" aria-labelledby="emergencyContactModalTitle" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="emergencyContactModalTitle">أرقام الطوارئ</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">×</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-12 col-md-6 text-center border-bottom">
                            الشرطة، الإسعاف و قوة الإطفاء<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            112
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom">
                            الدفاع المدني<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            1804000
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom mt-2">
                            إدارة الجرائم الإلكترونية<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                    <img src="/main/images/assets/social-media/ico-whatsapp.svg" style="height:15px;">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            <a href="https://wa.me/+96597283939">97283939</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom mt-2">
                            إدارة العامة لحماية الأحداث<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            25589535<br>
                                            97283636 &nbsp;<img src="/main/images/assets/social-media/ico-whatsapp.svg" style="height:15px;">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom mt-2">
                            الإدارة العامة لمكافحة المخدرات<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            1884141
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom mt-2">
                            الإدارة العامة لخفر السواحل<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            1880888
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom mt-2">
                            الإدارة العامة للمرور<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                    <img src="/main/images/assets/social-media/ico-whatsapp.svg" style="height:15px;">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            <a href="https://wa.me/+96599324092">99324092</a>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom mt-2">
                            الإدارة العامة للرقابة والتفتيش<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            25200334
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom mt-2">
                            الإدارة العامة لشؤون الإقامة<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            <span class="font-weight-bolder">25582555</span>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                    <img src="/main/images/assets/social-media/ico-whatsapp.svg" style="height:15px;">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            <a href="https://wa.me/+96597288211">97288211</a>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            <a href="https://wa.me/+96597288200">97288200</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 col-md-6 text-center border-bottom mt-2">
                            إدارة حماية الآداب العامة ومكافحة الإتجار بالأشخاص<br>
                            <div class="row">
                                <div class="col-4 align-self-center text-left">
                                </div>
                                <div class="col-8">
                                    <div class="row">
                                        <div class="col-12 font-weight-bold text-right">
                                            25589648<br>
                                            25589655<br>
                                            25589696
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--

    <div class="modal fade" id="newServicesModal" tabindex="-1" role="dialog" aria-labelledby="newServicesModalTitle" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="newServicesModalTitle"></h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-12 col-md-4 text-center">
                            <a href="https://edl.moi.gov.kw/Login.aspx">
                                <img src="~/images/assets/general-traffic/ico-renew.svg" class="moi-ico" />
                                <div class="row text-center">
                                    <div class="col">
    Renew Driving License
                                    </div>
                                </div>
                            </a>
                        </div>
                        <div class="col-12 col-md-4 text-center">
                            <a href="https://esp.moi.gov.kw/MOI_Kuwait/apps/services/www/MoIKuwait/desktopbrowser/default/index.html">
                                <img src="~/images/assets/esp-logo-white.svg" class="moi-ico" />
                                <div class="row text-center d-flex">
                                    <div class="col">
    منصة الخدمات الإلكترونية
                                    </div>
                                </div>
                            </a>
                        </div>
                        <div class="col-12 col-md-4 text-center">
                            <a href="https://eres.moi.gov.kw/ar/auth/login">
                                <img src="~/images/assets/residency/ico-renew.svg" class="moi-ico" />
                                <div class="row text-center">
                                    <div class="col">
    تجديد إقامة العمالة المنزلية
                                    </div>
                                </div>
                            </a>
                        </div>
                        <div class="col-12 col-md-4 text-center">
                            <a asp-area="eservices" asp-controller="residence" asp-action="HealthReport">
                                <img src="~/images/assets/common/ico-health-check-status.svg" class="moi-ico" />
                                <div class="row text-center">
                                    <div class="col">
    جاهزية نتيجة الفحص الطبي
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>

                </div>
                <div class="modal-footer">
                </div>
            </div>
        </div>
    </div>


    <div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="infoModalTitle" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="infoModalTitle">تعديل شركة الإتصالات</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body" id="QAResponse">
    Your company is now changed as requested.
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">إغلاق</button>
                </div>
            </div>
        </div>
    </div>
        -->


    
    
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" crossorigin="anonymous" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=">
        </script>
<script>(window.jQuery||document.write("\u003Cscript src=\u0022/main/lib/jquery/dist/jquery.min.js\u0022 crossorigin=\u0022anonymous\u0022 integrity=\u0022sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=\u0022\u003E\u003C/script\u003E"));</script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js" crossorigin="anonymous" integrity="sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o">
        </script>
<script>(window.jQuery && window.jQuery.fn && window.jQuery.fn.modal||document.write("\u003Cscript src=\u0022/main/lib/bootstrap/dist/js/bootstrap.bundle.min.js\u0022 crossorigin=\u0022anonymous\u0022 integrity=\u0022sha384-xrRywqdh3PHs8keKZN\u002B8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o\u0022\u003E\u003C/script\u003E"));</script>
        <script src="/main/lib/jquery-validation/dist/jquery.validate.min.js"></script>
        <script src="/main/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
        <script src="/main/lib/star-rating/js/star-rating.min.js"></script>
        <!-- optionally if you need to use a theme, then include the theme JS file as mentioned below -->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-star-rating/4.0.6/themes/krajee-svg/theme.js"></script>
        <!-- optionally if you need translation for your language then include locale file as mentioned below -->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-star-rating/4.0.6/js/locales/ar.js"></script>
        <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
        <script src="https://www.google.com/recaptcha/api.js?render=6LdUyqwUAAAAAM5MRMXHrlAjDCrWT5CcRpdXgK2p" async="" defer=""></script>
        <script src="/main/js/site.min.js?v=hVKFgwQR4FLFHd81K8gJy_gj3s0QWT-9NhbgDnnkxoI"></script>
        <script src="/main/qa/qa.min.js?v=p9LCrmcj9KdN-lfAzm9Q-jfP1cE2W97WAm9trJNZuN0"></script>

    



    <!--***********FOLLOWING SCRIPT WAS ADDED TO REMOVE NON-PASSIVE EVENT LISTENER WARNINGS FROM CHROME***********-->
    <script>

    </script>
    <!--****************************************************************************************-->
    <script>

        getFooterText = () => {
            return ' © جميع الحقوق محفوظة لوزارة الداخلية-دولة الكويت - ' + '2024'
        }

        $(document).ready(function () {
                        if ('True' == 'True') {
                $('dqa').load('/main/qa/dqa-ar.html?time=' + new Date().getTime());
                $('mqa').load('/main/qa/mqa-ar.html?time=' + new Date().getTime());
                $('modals').load('/main/qa/modals-ar.html?time=' + new Date().getTime());
            }
            else {
                //$('nav').load('/main/nav/nav-en.html');
                $('dqa').load('/main/qa/dqa-en.html?time=' + new Date().getTime());
                $('mqa').load('/main/qa/mqa-en.html?time=' + new Date().getTime());
                $('modals').load('/main/qa/modals-en.html?time=' + new Date().getTime());
            }

            //$('footer').load('/main/footer.html');
        });


    </script>
    <script type="text/javascript">
        (function () {
            $("#selectLanguage select").change(function () {
                $(this).parent().submit();
            });
        }());
        $(document).ready(function () {
            $('#overlay').on("click", function () {
                $('#overlay').addClass('d-none');
                //hideResPop();
                //hideFormsPop();
                //hideNewServicesPop();
                hideGetRefNumPop();
            });
            $("#formsSideBar").on("click", function () {
                toggleFormsSideBar();
            });
            $("#regSideBar").on("click", function () {
                toggleRegSideBar();
            });
            /*$("#sbToggler").on("click", function () {
                toggleFormsSideBar();
                $('#sbPop').popover('hide');
            });*/
            $("#sbPop").on("click", function () {
                //alert('clicked');
                $('#sbPop').popover('hide');
                $('#overlay').addClass('d-none');
            });
            $('.collapse').on('shown.bs.collapse', function () {
                $(this).prev().addClass('active-acc');
            });

            $('.collapse').on('hidden.bs.collapse', function () {
                $(this).prev().removeClass('active-acc');
            });
            //setAccordionDirection();
            // Add active class to the current button (highlight it)
            var header = document.getElementById("navbarResponsive");
            var btns = header.getElementsByClassName("nav-item");
            for (var i = 0; i < btns.length; i++) {
                btns[i].addEventListener("click", function () {
                    var current = document.getElementsByClassName("nav-item active");
                    if (current.length > 0) {
                        current[0].className = current[0].className.replace(" active", "");
                    }
                    this.className += " active";
                });
            }
            if (window.location.pathname.toLowerCase().includes("/eservices")) {
                btns[0].className = btns[0].className.replace(" active", "");
                btns[1].className += " active";
            }
            else if (window.location.pathname.toLowerCase().includes("/sections")) {
                btns[0].className = btns[0].className.replace(" active", "");
                $('#relatedDepartmentsMenu').addClass('active');
            }
            else if (window.location.pathname.toLowerCase().includes("/emagazine")) {
                btns[0].className = btns[0].className.replace(" active", "");
                //btns[10].className += " active";
                $('#navEMag').addClass('active');
                //console.log(btns[10]);
            }
            else if (window.location.pathname.toLowerCase().includes("/news/archive")) {
                btns[0].className = btns[0].className.replace(" active", "");
                //btns[11].className += " active";
                $('#navArchive').addClass('active');
            }
            else if (window.location.pathname.toLowerCase().includes("/home/strategy")) {
                btns[0].className = btns[0].className.replace(" active", "");
                //btns[11].className += " active";
                $('#navStrategy').addClass('active');
            }
        });
    </script>
    
    
    
        <script src="/main/js/gdt.min.js?v=B_ZjzLSKgWjrQUTGFgpWVqjdc8NTolanwaM4c5w9PVg"></script>
    
    <script>
        getTextFor = key => {
            switch (key) {
                case "Civil Id":
                    return 'الرقم المدني';
                    break;
                case "Civil Id or National Number":
                    return 'الرقم المدني أو الرقم الموحد';
                case "Company Number":
                    return 'الرقم الموحد للشركة';
                    break;
                case "Total tickets":
                    return 'عدد المخالفات';
                    break;
                case "Total Amount":
                    return 'المبلغ الاجمالي';
                    break;
                case "Amount to Pay":
                    return 'Amount to Pay';
                    break;
                case "Payable":
                    return 'قابلة للدفع الكترونياً';
                    break;
                case "Non Payable":
                    return 'غير قابلة للدفع الكترونياً';
                    break;
                case "Ticket":
                    return 'رقم';
                    break;
                case "KD":
                    return 'دك';
                    break;
                case "Direct":
                    return 'مباشرة';
                    break;
                 case "InDirect":
                    return 'غير مباشرة';
                    break;
                case "Plate":
                    return 'رقم اللوحة';
                    break;
                case "Type":
                    return 'نوع المخالفة';
                    break;
                case "Place":
                    return 'موقع المخالفة';
                    break;
                case "Date":
                    return 'تاريخ المخالفة';
                    break;
                case "Info":
                    return 'وصف المخالفة';
                    break;
                case "Model":
                    return 'صنف السيارة';
                    break;
                case "Amount":
                    return 'قيمة المخالفة';
                    break;
                case "Select":
                    return 'اختار';
                    break;
                case "Remove":
                    return 'إلغاء';
                    break;
                case "Selected Amount":
                    return 'إجمالي القيمة المختارة';
                    break;
                case "Invalid entry":
                    return 'البيانات المدخلة غير صحيحة';
                    break;
                case "Required":
                    return 'حقل مطلوب';
                    break;
                case "No violations found":
                    return 'لا يوجد مخالفات';
                    break;
                case "No non-payable violations found":
                    return 'لا يوجد مخالفات';
                    break;
                case "Please check with the relevant authority":
                    return 'يرجى مراجعة الجهة المختصة';
                    break;
                case "Unable to process, please try later":
                    return 'تعذّر إكمال الإجراء، يرجى المحاولة بعد حين';
                    break;
                case "Time":
                    return 'الساعة';
                    break;
                default:
                    return key;
                    break;
            }
        }

        getLang = () => {
            return  'ar';
        }
        $(document).ready(function () {
            $('#btnPay').click(function () {
                $('#btnEnquire').attr("disabled", true);
                $('#btnPay').attr("disabled", true);
                $("#workingOnIt").removeClass('d-none');
                var selectedTickets = $('.select-ticket:checked').map(function () {
                    return this.id;
                }).get();
                initiatePaymentRequest(selectedTickets,"TRAFFIC VIOLATIONS");
                return;
            });
        });
    </script>



<div><div class="grecaptcha-badge" data-style="bottomright" style="width: 256px; height: 60px; display: block; transition: right 0.3s ease 0s; position: fixed; bottom: 14px; right: -186px; box-shadow: gray 0px 0px 5px; border-radius: 2px; overflow: hidden;"><div class="grecaptcha-logo"><iframe title="reCAPTCHA" width="256" height="60" role="presentation" name="a-l20b0dajax0o" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox allow-storage-access-by-user-activation" src="https://www.google.com/recaptcha/api2/anchor?ar=1&amp;k=6LdUyqwUAAAAAM5MRMXHrlAjDCrWT5CcRpdXgK2p&amp;co=aHR0cHM6Ly93d3cubW9pLmdvdi5rdzo0NDM.&amp;hl=en&amp;v=zIriijn3uj5Vpknvt_LnfNbF&amp;size=invisible&amp;cb=r15y4mnlywff"></iframe></div><div class="grecaptcha-error"></div><textarea id="g-recaptcha-response-100000" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea></div><iframe style="display: none;"></iframe></div><script type="text/javascript" src="https://cdn.jsdelivr.net/npm/flatpickr"></script><script type="text/javascript" src="https://npmcdn.com/flatpickr/dist/l10n/ar.js"></script></body></html>