<%@ page language="C#" autoeventwireup="true" inherits="Pages_MobileView_MobileDashBoard2, App_Web_pjbuiqf4" masterpagefile="~/Pages/Common/MasterPages/MobileViewMasterPage.master" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
   
    <asp:UpdatePanel runat="server" ID="DoctorScheduleUpdatePanel">
        <ContentTemplate>
            <div class="col-md-12 ptb12 d-inline-flex">
                <span class='btn btn-home btn-icon' onclick='DashBoard()' title='home'><span><i class='material-icons'>home</i></span></span>
                <div class="d-inline-flex w-100">
                    <label class="header-topic justify-content-center" id="HeaderLabel"></label>
                      <div class="misbtn">
                        <button id="btnMIS" class="btn bg-white-outline btn-icon exdb" onclick="MISDashboar()" style="display: none"><i class="ti-dashboard"></i>&nbsp;MIS</button>
                    </div>
                </div>
                <input type="button" value="&#xf3e5;" id="bntBackOrg" onclick="BackOrgFunction()"  class="btn btn-back btn-icon fas" />
            </div>
            <div class="top-btn col-md-12">
                <div class="custom-select ">
                    <div class='fLeft pRight5'>
                        <select id='drpOrganization' onchange="OrganizationFunction()">
                            <option selected="selected" value='0'>Select</option>
                        </select>
                    </div>
                </div>
                <div class="custom-select width-31">
                    <div class='fLeft pRight5'>
                        <select id='drpBatch' onchange="BatchFunction()">
                            <option selected="selected" value='0'>Select</option>
                        </select>
                    </div>
                </div>
            </div>


            <div class="page-header mb37">
                <div class="col-xl-12 col-sm-12 col-xs-12 border-bottom-inline xs-padd0">
                    <div class="main-topic inner" id="HeaderTitle">
                    </div>
                  
                </div>


            </div>
            <div class="bg-body-dark row center-block">
                <%-- <div class="container-fluid">
                    <div class="gutters-tiny push js-appear-enabled animated fadeIn" data-toggle="appear">
                        <div class="tab row">
                            <div class="block row arrow-up">
                                <div class="col-xl-3 col-sm-6 col-xs-12 " >
                                    <a class='float-Left' href='#' >
                                     <div class='card  pull-up'> 
                <div class='card-body'>  <h5 class='card-title text-capitalize'>No Of Student</h5> 
                <div class='tab-content'> 
                <div class='tab-pane active' >
        <a class='float-Left' href='../MobileView/NoOfStudent.aspx?OrgGroupId=  OrgId  '>
         <a class='float-Left' href='../MobileView/NoOfStudent.aspx?OrgId=  OrgId  '>
        <div class='d-flex align-items-center no-block mt51'> 
                <h1 class="pl8"><i class='fas fa-user-graduate text-info'></i></h1> 
                <div class='ml-auto'> 
                <h1 id="StudentNo">  </h1> 
                </div> 
                </div> 
                </a></div> 
            
                                   <%-- <h1>
                                        <asp:PlaceHolder ID="StudentPlaceHolder" runat="server" />
                                    </h1>
                                </div>
                             
                                    
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <a class='float-Left' href='#' >
                                     <div class='card  pull-up'> 
                <div class='card-body'>  <h5 class='card-title text-capitalize'>No Of Employee<</h5> 
                <div class='tab-content'> 
                <div class='tab-pane active' >
      <a class='float-Left' href='../MobileView/NoOfStudent.aspx?OrgGroupId=  OrgId  '>
         <a class='float-Left' href='../MobileView/NoOfStudent.aspx?OrgId=  OrgId  '>
        <div class='d-flex align-items-center no-block mt51'> 
                <h1 class="pl8"><i class='fas fa-user-graduate text-info'></i></h1> 
                <div class='ml-auto'> 
                <h1 id="EmployeeNO">  </h1> 
                </div> 
                </div> 
                </a></div> 
            
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <a class='float-Left' href='#' >
                                     <div class='card  pull-up'> 
                <div class='card-body'>  <h5 class='card-title text-capitalize'>User</h5> 
                <div class='tab-content'> 
                <div class='tab-pane active' >
        <a class='float-Left' href='../MobileView/NoOfStudent.aspx?OrgGroupId=  OrgId  '>
         <a class='float-Left' href='../MobileView/NoOfStudent.aspx?OrgId=  OrgId  '>
        <div class='d-flex align-items-center no-block mt51'> 
                <h1 class="pl8"><i class='fas fa-user-graduate text-info'></i></h1> 
                <div class='ml-auto'> 
                <h1 id="UserCount">  </h1> 
                </div> 
                </div> 
                </a></div> 
      
                                   <%-- <h1>
                                        <asp:PlaceHolder ID="UserPlaceHolder" runat="server" />
                                    </h1>
                            
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="TransportPlaceHolder" runat="server" />
                                    </h1>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="InquiryCountPlaceHolder" runat="server" />
                                    </h1>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="AddmissonPlaceHolder" runat="server" />
                                    </h1>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="SMSPlaceHolder" runat="server" />
                                    </h1>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="CircularPlaceHolder" runat="server" />
                                    </h1>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="StudentPresencePlaceHolder" runat="server" />
                                    </h1>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="EmployeePresencePlaceHolder" runat="server" />
                                    </h1>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="FeeCollectionPlaceHolder" runat="server" />
                                    </h1>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="FeePendingPlaceHolder" runat="server" />
                                    </h1>
                                </div>

                                <div class="col-xl-3 col-sm-6 col-xs-12 ">
                                    <h1>
                                        <asp:PlaceHolder ID="EmployeePendingLeavePlaceHolder" runat="server" />
                                    </h1>
                                </div>

                            </div>
                        </div>
                    </div>--%>
                <div class="container-fluid">
                    <div class="gutters-tiny push js-appear-enabled animated fadeIn" data-toggle="appear">
                        <div class="tab row">
                            <div class="block row arrow-up">
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="StudentBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <a onclick="NoOfStudentFunction()">
                                                <h5 class="card-title text-capitalize">Student Summary<i class="ti-arrow-right text-anchor float-right"></i></h5>

                                                <div class="tab-content">
                                                    <div class="tab-pane active">
                                                        <div class="d-flex align-items-center no-block m-t-51">
                                                            <h1 class="pl8"><i class='fas fa-user-graduate text-info'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="StudentNo"></h1>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </a>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv1" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="EmployeeBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <a onclick="NoOfEmployeeFunction()">
                                                <h5 class="card-title text-capitalize">Employee Summary<i class="ti-arrow-right text-anchor float-right"></i></h5>

                                                <div class="tab-content">
                                                    <div class="tab-pane active">
                                                        <div class="d-flex align-items-center no-block m-t-51">
                                                            <h1 class="pl8"><i class='fas fa-user-tie text-orange'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="EmployeeNO"></h1>

                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </a>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv2" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="UserBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <a onclick="NoOfUserFunction()">
                                                <h5 class="card-title text-capitalize">User Summary<i class="ti-arrow-right text-anchor float-right"></i></h5>

                                                <div class="tab-content">
                                                    <div class="tab-pane active">
                                                        <div class="d-flex align-items-center no-block m-t-51">
                                                            <h1 class="pl8"><i class='fas fa-user-check text-success'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="UserCount"></h1>

                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </a>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv3" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="TransportBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <a onclick="NoOfTransportFunction()">
                                                <h5 class="card-title text-capitalize">Transport Summary<i class="ti-arrow-right text-anchor float-right"></i></h5>

                                                <div class="tab-content">
                                                    <div class="tab-pane active">
                                                        <div class="d-flex align-items-center no-block m-t-51">
                                                            <h1 class="pl8"><i class='fas fa-truck text-darkp'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="TransportCount"></h1>

                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </a>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv4" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="AdmissionInquiryBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <a>
                                                <h5 class="card-title text-capitalize">Admission Inquiry<i class="ti-arrow-right text-anchor float-right"></i></h5>
                                                <ul class="nav nav-pills">
                                                    <li class="nav-item">
                                                        <a id="pills-1-tab" data-toggle="pill" href="#pills-1" role="tab">Yesterday</a>
                                                    </li>
                                                    <li class="nav-item">
                                                        <a id="pills-2-tab" data-toggle="pill" href="#pills-2" role="tab">Today</a>
                                                    </li>
                                                    <li class="nav-item">
                                                        <a class="nav-link" id="pills-3-tab" data-toggle="pill" href="#pills-3" role="tab">Week</a>
                                                    </li>
                                                    <li class="nav-item">
                                                        <a class="nav-link" id="pills-4-tab" data-toggle="pill" href="#pills-4" role="tab">Month</a>
                                                    </li>
                                                </ul>
                                                <div class="tab-content">
                                                    <div id="pills-1" onclick="NoOfInquiryCountFunction(1)">
                                                        <div class="d-flex align-items-center no-block m-t-20">
                                                            <h1 class="pl8"><i class='fas fa-question-circle text-danger'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="AdmissionInquiryYesterdaycount"></h1>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div id="pills-2" onclick="NoOfInquiryCountFunction(2)">
                                                        <div class="d-flex align-items-center no-block m-t-20">
                                                            <h1 class="pl8"><i class='fas fa-question-circle text-danger'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="DailyCount"></h1>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="tab-pane" id="pills-3" onclick="NoOfInquiryCountFunction(3)">
                                                        <div class="d-flex align-items-center no-block m-t-20">
                                                            <h1 class="pl8"><i class='fas fa-question-circle text-danger'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="WeeklyCount"></h1>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="tab-pane" id="pills-4" onclick="NoOfInquiryCountFunction(4)">
                                                        <div class="d-flex align-items-center no-block m-t-20">
                                                            <h1 class="pl8"><i class='fas fa-question-circle text-danger'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="MonthlyCount"></h1>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </a>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv5" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="AdmissionFormBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <h5 class="card-title text-capitalize">Admission Form<i class="ti-arrow-right text-anchor float-right"></i></h5>
                                            <ul class="nav nav-pills">
                                                <li class="nav-item">
                                                    <a id="pills-5-tab" data-toggle="pill" href="#pills-5" role="tab">Yesterday</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a id="pills-6-tab" data-toggle="pill" href="#pills-6" role="tab">Today</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-7-tab" data-toggle="pill" href="#pills-7" role="tab">Week</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-8-tab" data-toggle="pill" href="#pills-8" role="tab">Month</a>
                                                </li>
                                            </ul>
                                            <div class="tab-content">
                                                <div id="pills-5" onclick="AdmissionCountFunction(1)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-clipboard-check text-sgreen'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="AdmissionYesterdaycount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="pills-6" onclick="AdmissionCountFunction(2)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-clipboard-check text-sgreen'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="AdmissionDailyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-7" onclick="AdmissionCountFunction(3)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-clipboard-check text-sgreen'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="AdmissionWeeklyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-8">
                                                    <div class="d-flex align-items-center no-block m-t-20" onclick="AdmissionCountFunction(4)">
                                                        <h1 class="pl8"><i class='fas fa-clipboard-check text-sgreen'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="AdmissionMonthlyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv6" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="SMSBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <h5 class="card-title text-capitalize">SMS Summary
                                                      <a class="float-right" href="#"><i class="ti-arrow-right text-anchor"></i></a>
                                            </h5>
                                            <ul class="nav nav-pills">
                                                <li class="nav-item">
                                                    <a id="pills-9-tab" data-toggle="pill" href="#pills-9" role="tab">Yesterday</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a id="pills-10-tab" data-toggle="pill" href="#pills-10" role="tab">Today</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-11-tab" data-toggle="pill" href="#pills-11" role="tab">Month</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-12-tab" data-toggle="pill" href="#pills-12" role="tab">Year</a>
                                                </li>
                                            </ul>
                                            <div class="tab-content">
                                                <div id="pills-9" onclick="SMSCountFunction(1)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-comments text-purple'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="SMSYesterdaycount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="pills-10" onclick="SMSCountFunction(2)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-comments text-purple'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="SMSDailyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-11" onclick="SMSCountFunction(3)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-comments text-purple'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="SMSWeeklyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-12" onclick="SMSCountFunction(4)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-comments text-purple'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="SMSMonthlyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv7" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="CircularBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <h5 class="card-title text-capitalize">Circular Summary
                                                      <a class="float-right" href="#"></a>
                                            </h5>
                                            <ul class="nav nav-pills">
                                                <li class="nav-item">
                                                    <a id="pills-13-tab" data-toggle="pill" href="#pills-13" role="tab">Yesterday</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a id="pills-14-tab" data-toggle="pill" href="#pills-14" role="tab">Today</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-15-tab" data-toggle="pill" href="#pills-15" role="tab">Week</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-16-tab" data-toggle="pill" href="#pills-16" role="tab">Month</a>
                                                </li>
                                            </ul>
                                            <div class="tab-content">
                                                <div id="pills-13" onclick="CircularCountFunction(1)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-paste text-orange'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="CircularYesterday"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="pills-14" onclick="CircularCountFunction(2)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-paste text-orange'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="CircularDailyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-15"  onclick="CircularCountFunction(3)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-paste text-orange'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="CircularWeeklyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-16"  onclick="CircularCountFunction(4)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-paste text-orange'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="CircularMonthlyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv8" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="FeeCollectionBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <h5 class="card-title text-capitalize">Fee Collection
                                                      <a class="float-right" href="#"><i class="ti-arrow-right text-anchor"></i></a>
                                            </h5>
                                            <ul class="nav nav-pills">
                                                <li class="nav-item">
                                                    <a id="pills-17-tab" data-toggle="pill" href="#pills-17" role="tab">Yesterday</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a id="pills-18-tab" data-toggle="pill" href="#pills-18" role="tab">Today</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-19-tab" data-toggle="pill" href="#pills-19" role="tab">Week</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-20-tab" data-toggle="pill" href="#pills-20" role="tab">Month</a>
                                                </li>
                                            </ul>
                                            <div class="tab-content">
                                                <div id="pills-17" onclick="FeeCollectionFunction(1)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-money-bill text-grey'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="FeeCollectionYesterday"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="pills-18" onclick="FeeCollectionFunction(2)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-money-bill text-grey'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="FeeCollectionDailyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-19" onclick="FeeCollectionFunction(3)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-money-bill text-grey'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="FeeCollectionWeeklyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-20" onclick="FeeCollectionFunction(4)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-money-bill text-grey'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="FeeCollectionMonthlyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv9" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="FeePendingBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <a onclick="FeePendingFunction()">
                                                <h5 class="card-title text-capitalize">Fee Pending<i class="ti-arrow-right text-anchor float-right"></i></h5>

                                                <div class="tab-content">
                                                    <div class="tab-pane active">
                                                        <div class="d-flex align-items-center no-block m-t-51">
                                                            <h1 class="pl8"><i class='fas fa-exclamation-triangle text-warning'></i></h1>
                                                            <div class="ml-auto">
                                                                <h1 id="FeePending"></h1>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </a>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv10" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="StudentPresenceBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <h5 class="card-title text-capitalize">Student Presence Summary
                                                      <a class="float-right" href="#"><i class="ti-arrow-right text-anchor"></i></a>
                                            </h5>
                                            <ul class="nav nav-pills">
                                                <li class="nav-item">
                                                    <a id="pills-21-tab" data-toggle="pill" href="#pills-21" role="tab">Yesterday</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a id="pills-22-tab" data-toggle="pill" href="#pills-22" role="tab">Today</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-23-tab" data-toggle="pill" href="#pills-23" role="tab">Week</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-24-tab" data-toggle="pill" href="#pills-24" role="tab">Month</a>
                                                </li>
                                            </ul>
                                            <div class="tab-content">
                                                <div id="pills-21" onclick="StudentPresenceFunction(1)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-graduation-cap text-black'></i></h1>
                                                        <div class="ml-auto mt-28">
                                                            <h1 id="StudentPresenceYesterdayCount"></h1>
                                                            <h1 id="StudentPresenceYesterdayAverage"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="pills-22" onclick="StudentPresenceFunction(2)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-graduation-cap text-black'></i></h1>
                                                        <div class="ml-auto mt-28">
                                                            <h1 id="StudentPresenceDailyCount"></h1>
                                                            <h1 id="StudentPresenceDailyAverage"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-23" onclick="StudentPresenceFunction(3)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-graduation-cap text-black'></i></h1>
                                                        <div class="ml-auto mt-28">
                                                            <h1 id="StudentPresenceWeeklyCount"></h1>
                                                            <h1 id="StudentPresenceWeeklyAverage"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-24" onclick="StudentPresenceFunction(4)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-graduation-cap text-black'></i></h1>
                                                        <div class="ml-auto mt-28">
                                                            <h1 id="StudentPresenceMonthlyCount"></h1>
                                                            <h1 id="StudentPresenceMonthlyAverage"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv11" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="EmployeePresenceBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <h5 class="card-title text-capitalize">Employee Presence Summary
                                                      <a class="float-right" href="#"><i class="ti-arrow-right text-anchor"></i></a>
                                            </h5>
                                            <ul class="nav nav-pills">
                                                <li class="nav-item">
                                                    <a id="pills-25-tab" data-toggle="pill" href="#pills-25" role="tab">Yesterday</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a id="pills-26-tab" data-toggle="pill" href="#pills-26" role="tab">Today</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-27-tab" data-toggle="pill" href="#pills-27" role="tab">Week</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-28-tab" data-toggle="pill" href="#pills-28" role="tab">Month</a>
                                                </li>
                                            </ul>
                                            <div class="tab-content">
                                                <div id="pills-25" onclick="EmployeePresenceFunction(1)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-clipboard-list text-yellow'></i></h1>
                                                        <div class="ml-auto mt-28">
                                                            <h1 id="EmployeePresenceYesterdayCount"></h1>
                                                            <h1 id="EmployeePresenceYesterdayAverage"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="pills-26" onclick="EmployeePresenceFunction(2)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-clipboard-list text-yellow'></i></h1>
                                                        <div class="ml-auto mt-28">
                                                            <h1 id="EmployeePresenceDailyCount"></h1>
                                                            <h1 id="EmployeePresenceDailyAverage"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-27" onclick="EmployeePresenceFunction(3)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-clipboard-list text-yellow'></i></h1>
                                                        <div class="ml-auto mt-28">
                                                            <h1 id="EmployeePresenceWeeklyCount"></h1>
                                                            <h1 id="EmployeePresenceWeeklyAverage"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-28" onclick="EmployeePresenceFunction(4)">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-clipboard-list text-yellow'></i></h1>
                                                        <div class="ml-auto mt-28">
                                                            <h1 id="EmployeePresenceMonthlyCount"></h1>
                                                            <h1 id="EmployeePresenceMonthlyAverage"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv12" style="display: none"></div>
                                    </div>
                                </div>
                                <div class="col-xl-3 col-sm-6 col-xs-12 " id="EmployeeLeavePendingBlog" style="display: none">
                                    <div class="card  pull-up">
                                        <div class="card-body">
                                            <h5 class="card-title text-capitalize">Employee Leave Pending
                                                      <a class="float-right" href="#"></i></a>
                                            </h5>
                                            <ul class="nav nav-pills">
                                                <li class="nav-item">
                                                    <a id="pills-29-tab" data-toggle="pill" href="#pills-29" role="tab">Yesterday</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a id="pills-30-tab" data-toggle="pill" href="#pills-30" role="tab">Today</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-31-tab" data-toggle="pill" href="#pills-31" role="tab">Week</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="pills-32-tab" data-toggle="pill" href="#pills-32" role="tab">Month</a>
                                                </li>
                                            </ul>
                                            <div class="tab-content">
                                                <div id="pills-29">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-exclamation-circle text-pink'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="EmployeePendingYesterday"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="pills-30">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-exclamation-circle text-pink'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="EmployeePendingDailyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-31">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-exclamation-circle text-pink'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="EmployeePendingWeeklyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="tab-pane" id="pills-32">
                                                    <div class="d-flex align-items-center no-block m-t-20">
                                                        <h1 class="pl8"><i class='fas fa-exclamation-circle text-pink'></i></h1>
                                                        <div class="ml-auto">
                                                            <h1 id="EmployeePendingMonthlyCount"></h1>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="se-pre-con" id="LoaderDiv13" style="display: none"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
             <script>
                 var Id;
                 var Group;
                 var BatchId;
                 var mySessionVar;
                 var mySessionOrg;
                 var NewBatchId;
                 var NewId = 0;
                 var SessionGroup;
                 var NewGroup;
                 var ij =0;

                 $(document).ready(function () {
                     var myurl = window.location.href;
                     var keyval = myurl.split('?')[1].split('&');
                     // Id = parseInt(keyval[0].split('=')[1].toString());
                     BatchId = 0;
                     
                     if (keyval[0].split('=')[0].toString() == 'OrgId' || keyval[0].split('=')[0].toString() == 'OrgGroupId') {
                         Group = keyval[0].split('=')[0].toString();
                     }
                     else { Group = keyval[0].split('=')[1].toString();}// sessionStorage.setItem('NewGroup', Group);}//sessionStorage.clear(); }
                     
      <%-- alert(parseInt('<%=Session["UserName"] %>'));--%>
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/GetOrgDropDownList",
                data: JSON.stringify({ "Group": Group }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                async:false,
                success: function (result) {
                    $("#drpOrganization").html(result.d);
                    mySessionOrg = sessionStorage.getItem("NewId");
                    //sessionStorage.removeItem("NewId");
                   // sessionStorage.removeItem("NewBatchId");
                    //alert(mySessionOrg);
                    if (mySessionOrg == null || mySessionOrg == "" || mySessionOrg == undefined || mySessionOrg == 0) {
                        Id = $("#drpOrganization option:first").val();
                    }
                    else {
                        $("#drpOrganization").val(mySessionOrg);
                        Id = mySessionOrg;
                    }
                    //StudentDataBind();
                    AssignPermission();
                    ij = '<%= Session["Flag"] %>';
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
            //var ij = 0;
                     //ij = 0;
                     if (ij == 0) {
                         
                $("#pills-1-tab").addClass('nav-link active');
                $("#pills-1").addClass('tab-pane active');
                $("#pills-2-tab").addClass('nav-link');
                $("#pills-2").addClass('tab-pane');

                $("#pills-5-tab").addClass('nav-link active');
                $("#pills-5").addClass('tab-pane active');
                $("#pills-6-tab").addClass('nav-link');
                $("#pills-6").addClass('tab-pane');

                $("#pills-9-tab").addClass('nav-link active');
                $("#pills-9").addClass('tab-pane active');
                $("#pills-10-tab").addClass('nav-link');
                $("#pills-10").addClass('tab-pane');

                $("#pills-13-tab").addClass('nav-link active');
                $("#pills-13").addClass('tab-pane active');
                $("#pills-14-tab").addClass('nav-link');
                $("#pills-14").addClass('tab-pane');

                $("#pills-17-tab").addClass('nav-link active');
                $("#pills-17").addClass('tab-pane active');
                $("#pills-18-tab").addClass('nav-link');
                $("#pills-18").addClass('tab-pane');

                $("#pills-21-tab").addClass('nav-link active');
                $("#pills-21").addClass('tab-pane active');
                $("#pills-22-tab").addClass('nav-link');
                $("#pills-22").addClass('tab-pane');

                $("#pills-25-tab").addClass('nav-link active');
                $("#pills-25").addClass('tab-pane active');
                $("#pills-26-tab").addClass('nav-link');
                $("#pills-26").addClass('tab-pane');


                $("#pills-29-tab").addClass('nav-link active');
                $("#pills-29").addClass('tab-pane active');
                $("#pills-30-tab").addClass('nav-link');
                $("#pills-30").addClass('tab-pane');
            }
            else {
                $("#pills-1-tab").addClass('nav-link');
                $("#pills-1").addClass('tab-pane');
                $("#pills-2-tab").addClass('nav-link active');
                $("#pills-2").addClass('tab-pane active');

                $("#pills-5-tab").addClass('nav-link');
                $("#pills-5").addClass('tab-pane');
                $("#pills-6-tab").addClass('nav-link active');
                $("#pills-6").addClass('tab-pane active');

                $("#pills-9-tab").addClass('nav-link');
                $("#pills-9").addClass('tab-pane');
                $("#pills-10-tab").addClass('nav-link active');
                $("#pills-10").addClass('tab-pane active');

                $("#pills-13-tab").addClass('nav-link');
                $("#pills-13").addClass('tab-pane');
                $("#pills-14-tab").addClass('nav-link active');
                $("#pills-14").addClass('tab-pane active');


                $("#pills-17-tab").addClass('nav-link');
                $("#pills-17").addClass('tab-pane');
                $("#pills-18-tab").addClass('nav-link active');
                $("#pills-18").addClass('tab-pane active');

                $("#pills-21-tab").addClass('nav-link');
                $("#pills-21").addClass('tab-pane');
                $("#pills-22-tab").addClass('nav-link active');
                $("#pills-22").addClass('tab-pane active');

                $("#pills-25-tab").addClass('nav-link');
                $("#pills-25").addClass('tab-pane');
                $("#pills-26-tab").addClass('nav-link active');
                $("#pills-26").addClass('tab-pane active');

                $("#pills-29-tab").addClass('nav-link');
                $("#pills-29").addClass('tab-pane');
                $("#pills-30-tab").addClass('nav-link active');
                $("#pills-30").addClass('tab-pane active');
            }
        });

        function OrganizationFunction() {
            Id = $("#drpOrganization").val();
            sessionStorage.setItem('NewId', Id);
            $("#drpOrganization").val(Id);
            sessionStorage.removeItem("NewBatchId");
            GetOrgId();
            CurrentBatchGet();
        }

        function AssignPermission() {
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/AssignPermission",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    var OrgGroupId = "";
                    $.each(obj, function (i, item) {
                        if (item.RoleDashletId == 35 && item.IsCheck == true) {
                            document.getElementById("StudentBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 36 && item.IsCheck == true) {
                            document.getElementById("EmployeeBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 37 && item.IsCheck == true) {
                            document.getElementById("UserBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 38 && item.IsCheck == true) {
                            document.getElementById("TransportBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 39 && item.IsCheck == true) {
                            document.getElementById("AdmissionInquiryBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 40 && item.IsCheck == true) {
                            document.getElementById("AdmissionFormBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 41 && item.IsCheck == true) {
                            document.getElementById("SMSBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 42 && item.IsCheck == true) {
                            document.getElementById("CircularBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 43 && item.IsCheck == true) {
                            document.getElementById("FeeCollectionBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 44 && item.IsCheck == true) {
                            document.getElementById("FeePendingBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 45 && item.IsCheck == true) {
                            document.getElementById("StudentPresenceBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 46 && item.IsCheck == true) {
                            document.getElementById("EmployeePresenceBlog").style.display = "block";
                        }
                        else if (item.RoleDashletId == 47 && item.IsCheck == true) {
                            document.getElementById("EmployeeLeavePendingBlog").style.display = "block";
                        }
                    });
                    //document.getElementById("MisDashBoard").innerHTML = OrgGroupId;
                    GetOrgId();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }

        function BatchFunction() {
            BatchId = $("#drpBatch").val();
            sessionStorage.setItem('NewBatchId', BatchId);
            $("#drpBatch").val(BatchId);
            //CurrentBatchGet();
            StudentDataBind();
        }
        function CurrentBatchGet() {

            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/GetBatch",
                data: JSON.stringify({ "Id": Id, "Group": Group }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    mySessionVar = sessionStorage.getItem("NewBatchId");
                    $("#drpBatch").html(result.d);

                    if (mySessionVar == null || mySessionVar == "" || mySessionVar == undefined || mySessionVar == 0) {
                        BatchId = $("#drpBatch").val();
                    }
                    else {
                        $("#drpBatch").val(mySessionVar);
                        BatchId = mySessionVar;
                    }
                    StudentDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }


        function GetOrgId() {
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/GetOrgIdHeader",
                data: JSON.stringify({ "Id": Id, "Group": Group }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    if (Group == "OrgId") {
                        var Header = "<h5 class='page-title'>" + obj[0].Title + "</h5>";
                        $("#HeaderLabel").text("MIS DashBoard");
                        $("#btnMIS").hide();
                    }
                    else {
                        var Header = "<h5 class='page-title'>" + obj[0].Title + "</h5>";
                        $("#HeaderLabel").text("EIS DashBoard");
                        $("#btnMIS").show();

                    }
                    document.getElementById("HeaderTitle").innerHTML = Header;
                   CurrentBatchGet();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function StudentDataBind() {
            $("#LoaderDiv1").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/StudentDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    //alert(BatchId);
                    //alert(obj[0].StudentCount);
                    document.getElementById("StudentNo").innerHTML = obj[0].StudentCount;
                    $("#LoaderDiv1").hide();
                    EmployeeDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function EmployeeDataBind() {
            $("#LoaderDiv2").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/EmployeeDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {

                    var obj = (result.d);
                    // alert(obj[0].EmployeeCount);
                    document.getElementById("EmployeeNO").innerHTML = obj[0].EmployeeCount;
                    $("#LoaderDiv2").hide();
                    UserCountDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function UserCountDataBind() {
            $("#LoaderDiv3").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/UserCountDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    //alert(obj[0].UserCount);
                    document.getElementById("UserCount").innerHTML = obj[0].UserCount;
                    $("#LoaderDiv3").hide();
                    TransportCountDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function TransportCountDataBind() {
            $("#LoaderDiv4").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/TransportCountDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    //alert(BatchId);
                    //alert(obj[0].TransportStudentCount);
                    document.getElementById("TransportCount").innerHTML = obj[0].TransportStudentCount;
                    $("#LoaderDiv4").hide();
                    InquiryCountDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function InquiryCountDataBind() {
            $("#LoaderDiv5").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/InquiryCountDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    document.getElementById("AdmissionInquiryYesterdaycount").innerHTML = obj[0].YesterdayCount;
                    document.getElementById("DailyCount").innerHTML = obj[0].DailyCount;
                    document.getElementById("WeeklyCount").innerHTML = obj[0].WeeklyCount;
                    document.getElementById("MonthlyCount").innerHTML = obj[0].MonthlyCount;
                    $("#LoaderDiv5").hide();
                    AddmissonCountDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function AddmissonCountDataBind() {
            $("#LoaderDiv6").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/AddmissonCountDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    document.getElementById("AdmissionYesterdaycount").innerHTML = obj[0].YesterdayCount;
                    document.getElementById("AdmissionDailyCount").innerHTML = obj[0].DailyCount;
                    document.getElementById("AdmissionWeeklyCount").innerHTML = obj[0].WeeklyCount;
                    document.getElementById("AdmissionMonthlyCount").innerHTML = obj[0].MonthlyCount;
                    $("#LoaderDiv6").hide();
                    SMSCountDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function SMSCountDataBind() {
            $("#LoaderDiv7").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/SMSCountDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);

                    document.getElementById("SMSYesterdaycount").innerHTML = obj[0].YesterdayCount;
                    document.getElementById("SMSDailyCount").innerHTML = obj[0].DailyCount;
                    document.getElementById("SMSWeeklyCount").innerHTML = obj[0].WeeklyCount;
                    document.getElementById("SMSMonthlyCount").innerHTML = obj[0].MonthlyCount;
                    $("#LoaderDiv7").hide();
                    CircularCountDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function CircularCountDataBind() {
            $("#LoaderDiv8").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/CircularCountDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    document.getElementById("CircularYesterday").innerHTML = obj[0].YesterdayCount;
                    document.getElementById("CircularDailyCount").innerHTML = obj[0].DailyCount;
                    document.getElementById("CircularWeeklyCount").innerHTML = obj[0].WeeklyCount;
                    document.getElementById("CircularMonthlyCount").innerHTML = obj[0].MonthlyCount;
                    $("#LoaderDiv8").hide();
                    FeeCollectionDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function FeeCollectionDataBind() {
            $("#LoaderDiv9").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/FeeCollectionDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    document.getElementById("FeeCollectionYesterday").innerHTML = obj[0].YesterdayCount;
                    document.getElementById("FeeCollectionDailyCount").innerHTML = obj[0].DailyAmount;
                    document.getElementById("FeeCollectionWeeklyCount").innerHTML = obj[0].WeeklyAmount;
                    document.getElementById("FeeCollectionMonthlyCount").innerHTML = obj[0].MonthlyAmount;
                    $("#LoaderDiv9").hide();
                    FeePendingDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function FeePendingDataBind() {
            $("#LoaderDiv10").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/FeePendingDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    document.getElementById("FeePending").innerHTML = obj[0].PendingAmount;
                    $("#LoaderDiv10").hide();
                    StudentPresenceDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function StudentPresenceDataBind() {
            $("#LoaderDiv11").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/StudentPresenceDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    document.getElementById("StudentPresenceYesterdayAverage").innerHTML = obj[0].YesterdayAverage + "%";
                    document.getElementById("StudentPresenceYesterdayCount").innerHTML = obj[0].YesterdayCount;
                    document.getElementById("StudentPresenceDailyAverage").innerHTML = obj[0].DailyAverage + "%";
                    document.getElementById("StudentPresenceDailyCount").innerHTML = obj[0].DailyCount;
                    document.getElementById("StudentPresenceWeeklyAverage").innerHTML = obj[0].WeeklyAverage + "%";
                    document.getElementById("StudentPresenceWeeklyCount").innerHTML = obj[0].WeeklyCount;
                    document.getElementById("StudentPresenceMonthlyAverage").innerHTML = obj[0].MonthlyAverage + "%";
                    document.getElementById("StudentPresenceMonthlyCount").innerHTML = obj[0].MonthlyCount;
                    $("#LoaderDiv11").hide();
                    EmployeePresenceDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function EmployeePresenceDataBind() {
            $("#LoaderDiv12").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/EmployeePresenceDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    document.getElementById("EmployeePresenceYesterdayCount").innerHTML = obj[0].YesterdayCount;
                    document.getElementById("EmployeePresenceYesterdayAverage").innerHTML = obj[0].YesterdayAverage + "%";
                    document.getElementById("EmployeePresenceDailyCount").innerHTML = obj[0].DailyCount;
                    document.getElementById("EmployeePresenceDailyAverage").innerHTML = obj[0].DailyAverage + "%";
                    document.getElementById("EmployeePresenceWeeklyCount").innerHTML = obj[0].WeeklyCount;
                    document.getElementById("EmployeePresenceWeeklyAverage").innerHTML = obj[0].WeeklyAverage + "%";
                    document.getElementById("EmployeePresenceMonthlyCount").innerHTML = obj[0].MonthlyCount;
                    document.getElementById("EmployeePresenceMonthlyAverage").innerHTML = obj[0].MonthlyAverage + "%";
                    $("#LoaderDiv12").hide();
                    EmployeePendingLeaveDataBind();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }
        function EmployeePendingLeaveDataBind() {
            $("#LoaderDiv13").show();
            $.ajax({
                type: "POST",
                url: "MobileDashBoard2.aspx/EmployeePendingLeaveDataBind",
                data: JSON.stringify({ "Id": Id, "Group": Group, "BatchId": parseInt(BatchId) }),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    document.getElementById("EmployeePendingYesterday").innerHTML = obj[0].YesterdayCount;
                    document.getElementById("EmployeePendingDailyCount").innerHTML = obj[0].DailyCount;
                    document.getElementById("EmployeePendingWeeklyCount").innerHTML = obj[0].WeeklyCount;
                    document.getElementById("EmployeePendingMonthlyCount").innerHTML = obj[0].MonthlyCount;
                    $("#LoaderDiv13").hide();
                },
                error: function (xhr, status, error) {
                    var err = eval("(" + xhr.responseText + ")");
                    console.log(err.Message);
                }
            });
        }

        function NoOfStudentFunction() {
            window.location.href = "../MobileView/NoOfStudent.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId;
        }
        function NoOfEmployeeFunction() {
            window.location.href = "../MobileView/NoOfEmployee.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId;
        }
        function NoOfUserFunction() {
            window.location.href = "../MobileView/NoOfUserCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId;
        }
        function NoOfTransportFunction() {
            window.location.href = "../MobileView/NoOfTransport.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId;
        }
        function NoOfInquiryCountFunction(id) {
            if (id == 1) {
                window.location.href = "../MobileView/NoOfInquiryCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=-1";
            }
            else if (id == 2) {
                window.location.href = "../MobileView/NoOfInquiryCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=1";
            }
            else if (id == 3) {
                window.location.href = "../MobileView/NoOfInquiryCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=7";
            }
            else if (id == 4) {
                window.location.href = "../MobileView/NoOfInquiryCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=30";
            }
            else {
                alert('Record Not Found');
            }
        }
        function AdmissionCountFunction(id) {
            if (id == 1) {
                window.location.href = "../MobileView/NoOfAddmissonCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=-1";
            }
            else if (id == 2) {
                window.location.href = "../MobileView/NoOfAddmissonCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=1";
            }
            else if (id == 3) {
                window.location.href = "../MobileView/NoOfAddmissonCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=7";
            }
            else if (id == 4) {
                window.location.href = "../MobileView/NoOfAddmissonCount.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=30";
            }
            else {
                alert('Record Not Found');
            }
        }
        function SMSCountFunction(id) {
            if (id == 1) {
                window.location.href = "../MobileView/NoOfSMSCount.aspx?Id=" + Id + "&Group=" + Group + "&Count=-1";
            }
            else if (id == 2) {
                window.location.href = "../MobileView/NoOfSMSCount.aspx?Id=" + Id + "&Group=" + Group + "&Count=1";
            }
            else if (id == 3) {
                window.location.href = "../MobileView/NoOfSMSCount.aspx?Id=" + Id + "&Group=" + Group + "&Count=7";
            }
            else if (id == 4) {
                window.location.href = "../MobileView/NoOfSMSCount.aspx?Id=" + Id + "&Group=" + Group + "&Count=30";
            }
            else {
                alert('Record Not Found');
            }
        }

        function CircularCountFunction(id) {
            if (id == 1) {
                window.location.href = "../MobileView/NoOfCircularCount.aspx?Id=" + Id + "&Group=" + Group + "&Count=-1";
            }
            else if (id == 2) {
                window.location.href = "../MobileView/NoOfCircularCount.aspx?Id=" + Id + "&Group=" + Group + "&Count=1";
            }
            else if (id == 3) {
                window.location.href = "../MobileView/NoOfCircularCount.aspx?Id=" + Id + "&Group=" + Group + "&Count=7";
            }
            else if (id == 4) {
                window.location.href = "../MobileView/NoOfCircularCount.aspx?Id=" + Id + "&Group=" + Group + "&Count=30";
            }
            else {
                alert('Record Not Found');
            }
        }
        function FeeCollectionFunction(id) {
            if (id == 1) {
                window.location.href = "../MobileView/FeeCollection.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=-1";
            }
            else if (id == 2) {
                window.location.href = "../MobileView/FeeCollection.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=1";
            }
            else if (id == 3) {
                window.location.href = "../MobileView/FeeCollection.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=7";
            }
            else if (id == 4) {
                window.location.href = "../MobileView/FeeCollection.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=30";
            }
            else {
                alert('Record Not Found');
            }
        }
        function FeePendingFunction() {
            window.location.href = "../MobileView/FeePending.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId;
        }
        function StudentPresenceFunction(id) {
            if (id == 1) {
                window.location.href = "../MobileView/NoOfStudentPresence.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=-1";
            }
            else if (id == 2) {
                window.location.href = "../MobileView/NoOfStudentPresence.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=1";
            }
            else if (id == 3) {
                window.location.href = "../MobileView/NoOfStudentPresence.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=7";
            }
            else if (id == 4) {
                window.location.href = "../MobileView/NoOfStudentPresence.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=30";
            }
            else {
                alert('Record Not Found');
            }
        }
        function EmployeePresenceFunction(id) {
            if (id == 1) {
                window.location.href = "../MobileView/NoOfEmployeePresence.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=-1";
            }
            else if (id == 2) {
                window.location.href = "../MobileView/NoOfEmployeePresence.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=1";
            }
            else if (id == 3) {
                window.location.href = "../MobileView/NoOfEmployeePresence.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=7";
            }
            else if (id == 4) {
                window.location.href = "../MobileView/NoOfEmployeePresence.aspx?Id=" + Id + "&Group=" + Group + "&BatchId=" + BatchId + "&Count=30";
            }
            else {
                alert('Record Not Found');
            }
        }
        function BackOrgFunction() {

            sessionStorage.removeItem('idList');
            sessionStorage.removeItem('idCount');
            if (Group == "OrgId") {
                window.location.href = "../MobileView/DashBoard.aspx";

            }
            else {
                window.location.href = "../MobileView/DashBoard.aspx";
                $("#drpBatch").val(BatchId);
            }
            sessionStorage.removeItem("NewBatchId");
        }


        function MISDashboar() {
            window.location.href = "../MobileView/MobileDashBoard2.aspx?Group=OrgId";
        }
        function DashBoard() {
            window.location.href = "../MobileView/DashBoard.aspx";
        }
    </script>
            <script>
                function openNav() {
                    document.getElementById("mySidenav").style.width = "344px";
                }

                function closeNav() {
                    document.getElementById("mySidenav").style.width = "0";
                }
            </script>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
