<!DOCTYPE html>
<html lang="<?php echo e(app()->getLocale()); ?>">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

    <title><?php echo e(config('app.name', 'HCMS')); ?></title>
    <link rel="shortcut icon" href="<?php echo asset('/media/icons/title.jpg'); ?>" />
    <!-- Styles -->
    <link href="<?php echo asset('/font-awesome/css/font-awesome.min.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
    <link href="<?php echo asset('/css/bootstrap_md.min.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
    <link href="<?php echo asset('/css/mdb.min.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" media="all" rel="stylesheet" type="text/css"/>

	 <?php echo $__env->yieldContent('dynamic_css_excpt'); ?>
     <link href="https://fonts.googleapis.com/css?family=Playfair+Display&display=swap" rel="stylesheet">
<!--    <link href="https://fonts.googleapis.com/css?family=Quicksand&display=swap" rel="stylesheet">-->
     <link href="<?php echo asset('/css/toastr.min.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
     <link href="<?php echo asset('/images/icomoon1/style.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
     <link href="<?php echo asset('/css/helper.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
     <link href="<?php echo asset('/css/sidebar.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
     <link href="<?php echo asset('/css/new_style.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
     <link href="<?php echo asset('/css/responsiv.css'); ?>" media="all" rel="stylesheet" type="text/css"/>
     <link href="<?php echo asset('/css/scrollbar.css'); ?>" media="all" rel="stylesheet" type="text/css"/>


    <?php echo $__env->yieldContent('dynamic_css'); ?>
    <script src="<?php echo e(asset('js/lib/jquery-3.2.1.min.js')); ?>"></script>

    <style>
        .pagination .page-item.active .page-link {
            background-color: #4285f4;
            border-radius: 50%;
        }

        p.error{
            color:red;
        }
        .bg_body{
           background-color: #e6e6e6;
        }
        .brand_header {
            width: 178px;
            height: 67px;
            padding: 10px 0px 10px 0px;
        }

        @media (min-width: 1100px){
            .container {
                max-width: 980px;
            }

            #sidebar.active~#content .container{
                max-width: 1300px;
            }
        }

        @media (min-width: 1200px){
            .container {
                max-width: 1080px;
            }
        }

       @media (min-width: 1400px){
            .container {
                max-width: 1145px;
            }
        }



		.input-group label.error{
			 margin-top: .25rem;
			 font-size: 13px;
			    width: 100%;
		}

        table.dataTable thead th, table.dataTable thead td {
            padding: 10px 18px;
            border-bottom: 1px solid #989898;;
        }

        .img_size{
            width: 100px;
            height:90px;
        }
        .img_size_internet{
            width: 110px;
            height:100px;
        }
    @media (max-width: 768px)
    {

        .container_layout {
            padding-top: 0px;
            padding-bottom: 0px;
        }
        .container, .container-fluid {
            padding-right: 5px;
            padding-left: 5px;
        }
        .brand_header{
            width: 200px;
            height: 68px;
            padding: 12px 15px 12px 12px;
        }

        .img_size{
            width: 70px;
            height:60px;
        }
        .img_size_internet{
            width: 83px;
            height:73px;
        }
        .mt25{
            margin-top: 0px;
        }
    }
    </style>

    <noscript>
        <style>

            #u1
            {
                visibility:visible;
                margin-top: 40px;
            }
            body
            {
                visibility: hidden;
                overflow: hidden;
            }
        </style>

        <div class="container" id="u1">
            <div class="row">
                <div class="col col-md-12 col-xs-12 col-sm-12 col-lg-12 text-center">
                    <p class="error"><i>Javascript is not enabled in your browser</i></p>
                    <p>Please use the latest version of any one of the browsers for best response.</p>
                </div>
            </div>
            <div class="row mt25" id="r1">
                <div class="col-md-4 col-xs-4   text-center">
                    <img src="<?php echo e(asset('images/mozilla_icon.png')); ?>" class="img-responsive img_size">
                    <p><label>Mozilla Firefox</label></p>
                </div>
                <div class="col-md-4 col-xs-4   text-center">
                    <img src="<?php echo e(asset('images/google_chrome.png')); ?>" class="img-responsive img_size">
                    <p><label>Google Chrome</label></p>
                </div>
                <div class="col-md-4 col-xs-4   text-center">
                    <img src="<?php echo e(asset('images/explorer_icon.png')); ?>"  class="img-responsive img_size_internet">
                    <p><label>Internet Explorer</label></p>
                </div>
                <br><br>
            </div>
        </div>
    </noscript>
</head>

<body>

<div class="page-loader-wrapper">
    <div class="loader">
        <div class="preloader">
            <div class="spinner-layer pl-red">
                <div class="circle-clipper left">
                    <div class="circle"></div>
                </div>
                <div class="circle-clipper right">
                    <div class="circle"></div>
                </div>
            </div>
        </div>
        <p>Please wait...</p>
    </div>
</div>

<div class="wrapper" style="overflow-y: hidden;">
    <nav id="sidebar" class=" ">
        <div class="sidebar-header">
                <h3 class="mb0" style="text-align:left;display: -webkit-inline-box;">
                    <a href="<?php echo e(route('adminhome')); ?>" class="closebtn1">
                        <!--<?php echo e($global_data['config']->site_name); ?>-->
                        <img src="<?php echo asset('/images/LOGO3.png'); ?>" class="brand_header">
                    </a>
                    <button type="button" id="sidebarCollapse" class="navbar-btn sidebarCollapse collapse_btn_2" style="cursor: pointer; margin-right: 10px;height: 30px;margin-top: 18px;border-radius: 15px 15px 15px 15px;box-shadow: inset 0 0 7px #655d5d;">
                    <span></span>
                    <span></span>
                    <span></span>
                </button>

                </h3>

        </div>
        <ul class="list-unstyled components" id="sidebar-component">
            <li class="page-title">
              <?php if($global_data['main_selected_module']=="ORGANIZATIONAL_STRUCTURE"): ?>
                <p style=""> Organizational Structure</p>
              <?php elseif($global_data['main_selected_module']=="USER_MANAGEMENT"): ?>
                <p style=""> User Management</p>
              <?php elseif($global_data['main_selected_module']=="MEETING_MANAGEMENT"): ?>
                <p style=""> Meeting Management</p>
              <?php elseif($global_data['main_selected_module']=="EMPLOYEES"): ?>
                <p style="" class=""> Employees</p>
              <?php elseif($global_data['main_selected_module']=="PAYROLL"): ?>
                <p style="" class="text-center"> Payroll</p>
              <?php elseif($global_data['main_selected_module']=="SERVICE_MANAGEMENT"): ?>
                <p style="">Service Management</p>
              <?php elseif($global_data['main_selected_module']=="LEAVE_MANAGEMENT"): ?>
                <p style="">Leave Management</p>
              <?php elseif($global_data['main_selected_module']=="PERFORMANCE"): ?>
                <p style="">Performance</p>
              <?php endif; ?>

            </li>
      <!--  </ul>-->
        <?php if($global_data['main_selected_module']=="ORGANIZATIONAL_STRUCTURE"): ?>


          <!--  <ul class="list-unstyled components" id="sidebar-component">-->

                <li class="<?php echo e(Request::is('organizational_structure/dashboard') ? 'active' : ''); ?> mt10">

                    <a href="<?php echo e(route('organizationalstructure')); ?>"><span class="icon-deshboard-32 f25 pr10"></span>
                        Dashboard</a>
                </li>

                <li class="<?php echo e(Request::is('organizational_structure/module_config') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('module_config')); ?>"><span class="icon-icon_setting f25 pr10"></span>Module
                        Configuration</a>
                </li>
                <li class="<?php echo e(Request::is('organizational_structure/programs') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('program_management')); ?>"><i class="fa fa-tasks pr10" aria-hidden="true"></i> <!--<span class="icon-books f16 pr10"></span>-->Program Master</a>
                </li>
                <li class="<?php echo e(Request::is('organizational_structure/levels') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('level_management')); ?>"><!--<span class="icon-file-text f16 pr10"></span>-->
                        <i class="fa fa-list-ol pr10" aria-hidden="true"></i> Level Master
                    </a>
               </li>
                <li class="<?php echo e(Request::is('organizational_structure/designations') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('designation_management')); ?>"><!--<span class="icon-address-book f16 pr10"></span>-->
                        <i class="fa fa-address-card pr10" aria-hidden="true"></i> Designation Master
                    </a>
                </li>
            </ul>

        <?php elseif($global_data['main_selected_module']=="USER_MANAGEMENT"): ?>

                <li class="<?php echo e(Request::is('user_management/dashboard*') ? 'active' : ''); ?> mt10">
                    <a href="<?php echo e(route('usermanagement')); ?>"><span class="icon-deshboard-32  pr10"></span>
                        Dashboard</a>
                </li>

             <?php if(Auth::check()): ?>

                <li class="<?php echo e(Request::is('user_management/employees*','user_management/users*','user_management/employeeusers*','user_management/users/*','user_management/districtadmin*','user_management/districtadmin/*','user_management/blockadmin*','user_management/blockadmin/*') ? 'active' : ''); ?>">
                    <a href="#users" data-toggle="collapse" class="sideb collapsed" aria-expanded="false">
                        <i class="fa fa-user-circle-o f25 pr10" aria-hidden="true"></i>Users
                    </a>
                    <ul class="collapse list-unstyled <?php echo e(Request::is('user_management/users*','user_management/users/*','user_management/districtadmin*','user_management/districtadmin/*','user_management/employeeusers*','user_management/employeeusers/*','user_management/blockadmin*','user_management/blockadmin/*') ? 'show' : ''); ?>"
                        style="" id="users">

<!--                        <li class="<?php echo e(Request::is('user_management/users*','user_management/users/*') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('users.index')); ?>">
                                <span class="icon-icon_employee pr10"></span> Users
                            </a>
                        </li>-->
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_users')): ?>
                        <li class="<?php echo e(Request::is('user_management/employees*','user_management/employeeusers*','user_management/employeeusers/*') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('employeeusers.display')); ?>">
                                <span class="icon-icon_employee pr10"></span> Employee Users
                            </a>
                        </li>
                     <?php endif; ?>
                     <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_district_users')): ?>
                        <li class="<?php echo e(Request::is('user_management/districtadmin*','user_management/districtadmin/*') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('districtadmin.display')); ?>"><span class="fa fa-cogs f25 pr10"></span>District Admins</a>
                        </li>
                     <?php endif; ?>

                     <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_block_users')): ?>
                        <li class="<?php echo e(Request::is('user_management/blockadmin*','user_management/blockadmin/*') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('blockadmin.display')); ?>"><span class="fa fa-cogs f25 pr10"></span>Block Admins</a>
                        </li>
                     <?php endif; ?>
                    </ul>
                </li>

             <?php endif; ?>



                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_roles')): ?>
                    <li class="<?php echo e(Request::is('user_management/roles*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('roles.index')); ?>">
                            <span class="icon-icon_setting  pr10"></span> Roles&Permission
                        </a>
                    </li>
                <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_permissions')): ?>
                    <li class="<?php echo e(Request::is('user_management/permissions*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('permissions.index')); ?>">
                            <span class="fa fa-cogs  pr10"></span>Permission
                        </a>
                    </li>
                <?php endif; ?>

<!--                <li class=" display_none <?php echo e(Request::is('user_management/approver_configuration/*') ? 'active' : ''); ?>">
                    <a href="#approverSubmenu1" data-toggle="collapse" class="sideb"><span
                                class="icon-icon_setting  pr10"></span>Approver Configuration</a>
                    <ul class="collapse list-unstyled <?php echo e(Request::is('user_management/approver_configuration/*') ? 'show' : ''); ?> "
                        style="" id="approverSubmenu1">
                        <li class="<?php echo e(Request::is('user_management/approver_configuration/leave_configuration') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('leaveconfiguration')); ?>"><span
                                        class="icon-books pr10"></span>Leave</a></li>
                        <li class="<?php echo e(Request::is('user_management/approver_configuration/service_configuration') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('serviceconfiguration')); ?>"><span class="icon-books pr10"></span>Service</a>
                        </li>
                    </ul>
                </li>-->
            </ul>

        <?php elseif($global_data['main_selected_module']=="MEETING_MANAGEMENT"): ?>


           <!-- <ul class="list-unstyled components" id="sidebar-component">-->
                <li class="<?php echo e(Request::is('meeting_management/dashboard*') ? 'active' : ''); ?> mt10">
                    <a href="<?php echo e(route('meetingmanagement')); ?>"><span class="icon-deshboard-32 f25 pr10"></span>
                        Dashboard</a>
                </li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_meetings')): ?>
                    <li class="<?php echo e(Request::is('meeting_management/meetings*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('meetings.index')); ?>"><span class="fa fa-sheqel f25 pr10"></span>Meeting
                            Schedule</a>
                    </li>
                <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_meeting_minutes')): ?>
                    <li class="<?php echo e(Request::is('meeting_management/meeting_minutes*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('meeting_minutes.index')); ?>"><span class="fa fa-clock-o f25 pr10"></span>Meeting
                            Minutes</a>
                    </li>
                <?php endif; ?>
            </ul>





        <?php elseif($global_data['main_selected_module']=="EMPLOYEES"): ?>

                <li class="<?php echo e(Request::is('employees/dashboard*') ? 'active' : ''); ?> mt10">
                    <a href="<?php echo e(route('employees')); ?>"><span class="icon-deshboard-32 pr10"></span> Dashboard</a>
                </li>
                <li class="<?php echo e(Request::is('employees/employeelist*','employees/employeesdata*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('employeelist')); ?>"><i class="fa fa-list pr10" aria-hidden="true"></i> Employee List</a>
                </li>
                <li class="<?php echo e(Request::is('employees/bankdetailschangeview*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('bankdetailschangeview')); ?>"><i class="fa fa-address-card pr10" aria-hidden="true"></i>Bank Details Change</a>
                    </li>
                       <li class="<?php echo e(Request::is('employees/contactdetailschangeview*') ? 'active' : ''); ?>">
                           <a href="<?php echo e(route('contactdetailschangeview')); ?>"><i class="fa fa-phone pr10" aria-hidden="true"></i>Contact Details Change</a>
                </li>
                <li class="<?php echo e(Request::is('employees/employeeverification*') ? 'active' : ''); ?>">
                           <a href="<?php echo e(route('employeeVerificationView')); ?>"><i class="fa fa-check pr10"></i>Employee Posting Verification</a>
                       </li>
  
            </ul>



        <?php elseif($global_data['main_selected_module']=="PAYROLL"): ?>

         <!--   <ul class="list-unstyled components" id="sidebar-component">   -->
                 <li class="<?php echo e(Request::is('payroll/dashboard*') ? 'active' : ''); ?> mt10">
                    <a href="<?php echo e(route('payrolls')); ?>"><span class="icon-deshboard-32 f25 pr10"></span>  Dashboard</a>
                </li>

                <li class="<?php echo e(Request::is('payroll/draftsalary*') ? 'active' : ''); ?>">
                    <a href="#draftsalary" data-toggle="collapse" class="sideb collapsed" aria-expanded="false">
                        <span class="fa fa-sheqel f25 pr10"></span> Draft Salary Generation
                    </a>
                    <ul class="collapse list-unstyled <?php echo e(Request::is('payroll/draftsalary*') ? 'show' : ''); ?>"
                        style="" id="draftsalary">

                        <li class="<?php echo e(Request::is('payroll/draftsalary/generatedraftsalary*') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('generatedraftsalary')); ?>"><span class="icon-icon_setting f25 pr10"></span>Current Month Report</a>
                        </li>
                        <li class="<?php echo e(Request::is('payroll/draftsalary/holdsalary*') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('holdsalary')); ?>"><span class="fa fa-cogs f25 pr10"></span>Hold Draft Salary</a>
                        </li>
                        <li class="<?php echo e(Request::is('payroll/draftsalary/draftsalarygenerate*','payroll/addallowancesdeduction*','payroll/viewemployeedraftsalary*') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('draftsalarygenerate')); ?>" id="checkifcurrentmonthreport">
                                <i class="fa fa-money pr10" aria-hidden="true"></i>Generate Draft Salary
                            </a>
                        </li>
                        <li class="<?php echo e(Request::is('payroll/draftsalary/draftsalaryhistory*') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('draftsalaryhistory')); ?>" id="generated_salary_history"><span class="fa fa-cogs f25 pr10"></span>Draft Salary History</a>
                        </li>
                    </ul>
                </li>
             <?php if($global_data['level_code']=='LEVEL-2'): ?>
                <li class="<?php echo e(Request::is('payroll/blocksalaryreport*') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('blocksalaryreport')); ?>"><span class="icon-books f25 pr10"></span>Submitted Salary</a>
                </li>
             <?php endif; ?>
             <?php if($global_data['level_code']=='LEVEL-1'): ?>
                <li class="<?php echo e(Request::is('payroll/districtsalaryreport*') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('districtsalaryreport')); ?>"><i class="fa fa-money pr10" aria-hidden="true"></i> Submitted Salary</a>
                </li>
             <?php endif; ?>
                <li class="<?php echo e(Request::is('payroll/salaryhold') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('salaryhold')); ?>"><span class="fa fa-cogs f25 pr10"></span>Hold Salary</a>
                </li>
        <?php if(($global_data['level_code']=='LEVEL-2')|| ($global_data['level_code']=='LEVEL-1') || ($global_data['level_code']=='LEVEL-3') ): ?>
                <li class="<?php echo e(Request::is('payroll/salaryview*') ? 'active' : ''); ?>">
                    <a href="#homeSubmenu1" data-toggle="collapse" class="sideb collapsed" aria-expanded="false"><i class="fa fa-money pr10" aria-hidden="true"></i> Salary View</a>
                    <ul class="collapse list-unstyled <?php echo e(Request::is('payroll/salaryview*') ? 'show' : ''); ?>"
                        style="" id="homeSubmenu1">

                            <li class="<?php echo e(Request::is('payroll/salaryview/currentmonthview') ? 'active' : ''); ?>">
                                <a href="<?php echo e(route('currentmonthview')); ?>" class="text-upper">
                                    <i class="fa fa-money pr10" aria-hidden="true"></i> Current Salary
                                </a>
                            </li>
                            <li class="<?php echo e(Request::is('payroll/salaryview/previousmonthview') ? 'active' : ''); ?>">
                                <a href="<?php echo e(route('previousmonthview')); ?>" class="text-upper">
                                    <i class="fa fa-money pr10" aria-hidden="true"></i> Salary History
                                </a>
                            </li>
                    </ul>
                </li>
         <?php endif; ?>

                <li class="<?php echo e(Request::is('payroll/salaryreport') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('salaryreport')); ?>"> <i class="fa fa-object-group f25 pr10" aria-hidden="true"></i>Salary Report</a>
                </li>
            </ul>



        <?php elseif($global_data['main_selected_module']=="SERVICE_MANAGEMENT"): ?>

                    <li class="<?php echo e(Request::is('service_management/dashboard*') ? 'active' : ''); ?> mt10">
                           <a href="<?php echo e(route('servicedashboard')); ?>">
                               <span class="icon-deshboard-32  pr10"></span>Dashboard
                           </a>
                       </li>
                       <li class="<?php echo e(Request::is('service_management/service*') ? 'active' : ''); ?> mt10">
                           <a href="<?php echo e(route('servicemanagement')); ?>">
                               <i class="fa fa-cogs" aria-hidden="true"></i>  Service Management
                           </a>
                       </li>



        <?php elseif($global_data['main_selected_module']=="LEAVE_MANAGEMENT"): ?>
      <!--          <ul class="list-unstyled components" id="sidebar-component">-->
                    <li class="<?php echo e(Request::is('leave/dashboard*') ? 'active' : ''); ?> mt10">
                        <a href="<?php echo e(route('leavedashboard')); ?>"><span class="icon-deshboard-32 f25 pr10"></span>
                            Dashboard</a>
                    </li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_request')): ?>
                    <li class="<?php echo e(Request::is('approve_leave*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(url('approve_leave')); ?>">
                            <span class="icon-icon_setting f25 pr10"></span> Leave Request
                        </a>
                    </li>
                <?php endif; ?>
                </ul>
        <?php elseif($global_data['main_selected_module']=="PERFORMANCE"): ?>


               <!-- <ul class="list-unstyled components" id="sidebar-component">-->
                    <li class="<?php echo e(Request::is('performance/dashboard*') ? 'active' : ''); ?> mt10">
                        <a href="<?php echo e(route('performance.dashboard')); ?>"><span class="icon-deshboard-32 f25 pr10"></span>
                            Dashboard</a>
                    </li>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_master_task')): ?>
                    <li class="<?php echo e(Request::is('performance/master_task') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('performance.master_task')); ?>">
                            <i class="fa fa-university pr10" aria-hidden="true"></i> Master Task
                        </a>
                    </li>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_district_task')): ?>
                    <li class="<?php echo e(Request::is('performance/target_task') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('performance.targettask')); ?>">
                           <i class="fa fa-object-group pr10" aria-hidden="true"></i> Assigned Task
                        </a>
                    </li>
                <?php endif; ?>
				<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_district_assigned_task')): ?>
				     <li class="<?php echo e(Request::is('performance/district_assigned_task') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('performance.district_assigned_task')); ?>">
                            <i class="fa fa-bookmark pr10 fa-lg" aria-hidden="true"></i> Assigned Task Targets
                        </a>
                    </li>
				<?php endif; ?>
				<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('assign_employee_task')): ?>
                    <li class="<?php echo e(Request::is('performance/employee_task*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('performance.employee_task')); ?>">
                            <i class="fa fa-ils pr10 fa-lg" aria-hidden="true"></i> Assign Task To Employee
                        </a>
                    </li>
			    <?php endif; ?>


 				<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_gp_achievements')): ?>

                    <li class="<?php echo e(Request::is('performance/upload_achievement*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('performance.upload_achievement')); ?>">
                           <i class="fa fa-cloud-upload f16 pr10" aria-hidden="true"></i>Upload Achievements
                        </a>
                    </li>
                <?php endif; ?>
                <?php elseif($global_data['main_selected_module']=="OTHERS"): ?>
                    <li class="<?php echo e(Request::is('others/dashboard*') ? 'active' : ''); ?> mt10">
                        <a href="<?php echo e(route('others.dashboard')); ?>"><span class="icon-deshboard-32 f25 pr10"></span>
                            Dashboard</a>
                    </li>
                    <li class="<?php echo e(Request::is('others/permanentEmployeeList*') ? 'active' : ''); ?> mt10">
                        <a href="<?php echo e(route('others.permanentEmployeeList')); ?>"><span class="icon-deshboard-32 f25 pr10"></span>
                            Permanent Employee List</a>
                    </li>
                    <li class="">
                        <a href="#transferSubmenu" data-toggle="collapse" class="sideb collapsed" aria-expanded="false">
                           <span class="icon-icon_setting f25 pr10"></span>
                            Transfer
                        </a>
                        <ul class="collapse list-unstyled <?php echo e(Request::is('others/permanentEmployeeTransfers*') ? 'show' : ''); ?>" style="" id="transferSubmenu">
                            <li class="<?php echo e(Request::is('others/permanentEmployeeTransfers*') ? 'active' : ''); ?>">
                                <a href="<?php echo e(route('others.permanentEmployeeTransfers')); ?>" class="">
                                    <i class="fa fa-angle-double-right pr10" aria-hidden="true"></i>
                                    Permanent Employee Transfers
                                </a>
                            </li>
                            <li class="<?php echo e(Request::is('others/permanentEmployeeTransfers*') ? 'active' : ''); ?>">
                                <a href="<?php echo e(route('others.contractualEmployeeTransfers')); ?>" class="">
                                    <i class="fa fa-angle-double-right pr10" aria-hidden="true"></i>
                                    Contractual Employee Transfers
                                </a>
                            </li>
                        </ul>
                 </li>

                    <li class="<?php echo e(Request::is('others/expenditure_report*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('others.expenditureReport')); ?>">
                            <i class="fa fa-ils pr10 fa-lg" aria-hidden="true"></i> Expenditure Report
                        </a>
                    </li>
                </ul>

        <?php endif; ?>


    </nav>


    <div id="content">
        <nav class="navbar navbar-default nevbar_fixed">
            <div class="container-fluid">

                <div class="navbar-header">
                    <button type="button" id="sidebarCollapse" class="navbar-btn sidebarCollapse "
                            style="cursor: pointer;">
                        <span></span>
                        <span></span>
                        <span></span>
                    </button>
                </div>


                <div class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
                        <?php echo e(Auth::user()->username); ?>

                    </a>
                    <div class="dropdown-menu dopdown" style="padding: 3px 20px;">
						<a class="dropdown-item" href="#"  id="passwordChange" ><i class="fa fa-key " aria-hidden="true"> </i> Change Password</a>

                        <a class="dropdown-item" href="<?php echo e(route('logout')); ?>"
                           onclick="event.preventDefault(); document.getElementById('logout-form1').submit();" style="border-top: 1px solid #d8d0d0;"><i class="fa fa-power-off" aria-hidden="true"> </i>
                           Logout
                        </a>
                        <form id="logout-form1" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                            <?php echo e(csrf_field()); ?>

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

            </div>
        </nav>

        <input type="hidden" name="image_url" id="image_url" value="<?php echo e($global_data['config']->image_url); ?>" >
        <input type="hidden" id="app_url" name="app_url" value=" <?php echo e(config('app.url', 'http://localhost')); ?>">

        <div class="container-fluid fixed_navbar_container main_content_style">
            <div class="row justify-content-center">
<!--                <div class="col-md-12 mt10">
                    <?php echo $__env->yieldContent('badcome'); ?>
                </div>-->
                <div class="col-md-12">
                    <div id="flash-msg" class="text-center">
                        <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                    </div>
                    <?php echo $__env->yieldContent('content'); ?>
                </div>
<!--                <div class="col-md-12">

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


    </div>




<div class="modal fade right show" id="changePassword" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
  aria-hidden="true">
  <div class="modal-dialog modal-side modal-top-right" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">Change Password</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
<form action="" method="post" id="changePasswordModel" class="needs-validation" novalidate>
	<?php echo e(csrf_field()); ?>

    <input type="hidden" value="<?php echo e(Auth::user()->username); ?>" name="employee_code">
      <div class="modal-body mx-3">
		<div class="input-group mb-4 mt-2">
		  <div class="input-group-prepend">
			<span class="input-group-text"><i class="fa fa-lock prefix grey-text"></i></span>
		  </div>
		  <input type="password" maxlength="20" minlength="4" value="" style="padding-top: 8px;" name="oldpassword" id="oldpassword" placeholder="Old Password" class="form-control" required>
			<div class="invalid-feedback">
			  Please provide old password. Length should be 4-to-20.
			</div>
		</div>
		<div class="input-group mb-4">
		  <div class="input-group-prepend">
			<span class="input-group-text"><i class="fa fa-lock prefix grey-text"></i></span>
		  </div>
		  <input type="password" maxlength="20" minlength="4" value="" style="padding-top: 8px;" name="newpassword" id="newpassword" placeholder="New Password" class="form-control" required>
			<div class="invalid-feedback">
			  Please provide a new password.Length should be 4-to-20.
			</div>
		</div>
		<div class="input-group mb-4">
		  <div class="input-group-prepend">
			<span class="input-group-text"><i class="fa fa-lock prefix grey-text"></i></span>
		  </div>
		  <input type="password" maxlength="20" minlength="4" value="" style="padding-top: 8px;" name="repassword" id="repassword" placeholder="Confirm New Password" class="form-control" required>
			<div class="invalid-feedback">
			  Please confirm new password again.Length should be 4-to-20
			</div>
		</div>
      </div>
      <div class="modal-footer d-flex justify-content-center">
	    <button type="button" class="btn btn-warning" data-dismiss="modal">Cancel</button>
        <button type="submit" class="btn btn-default">Save</button>

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


</div>

<?php


$level_code = $global_data['level_code'];

if ($level_code == 'LEVEL-1') {
    $level = 1;
    $location_code = $global_data['district_code'];
} else if ($level_code == 'LEVEL-2') {
    $level = 2;
    $location_code = $global_data['district_code'];
} else if ($level_code == 'LEVEL-3') {
    $level = 3;
    $location_code = $global_data['block_id'];
} else {
    $level = 4;
    $location_code = $global_data['gram_panchyat_id'];
}



?>
<!-- Scripts -->
<script src="<?php echo e(asset('js/lib/popper.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/lib/bootstrap_md.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/lib/mdb.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/lib/jqueryValidate.js')); ?>"></script>
<script src="<?php echo e(asset('js/lib/jqueryAddValidate.js')); ?>"></script>
<script src="<?php echo e(asset('js/lib/toastr.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/lib/sweetalert2.all.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/custom/custom_new.js')); ?>"></script>
<script src="<?php echo e(asset('js/custom/custom_ajax_call.js')); ?>"></script>

<!--<script src="<?php echo e(asset('js/lib/jquery.dataTables.min.js')); ?>"></script>
<script src="https://cdn.datatables.net/buttons/1.5.2/js/dataTables.buttons.min.js"></script>
<script src=" https://cdn.datatables.net/buttons/1.5.2/js/buttons.print.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.2/js/buttons.html5.min.js"></script>





<script src="<?php echo e(asset('js/lib/jquery.twbsPagination.min.js')); ?>"></script>-->

<!--<script src="http://103.210.73.41/PNRDHCMS/js/lib/moment.min.js"></script>-->
<!--<script src="http://103.210.73.41/PNRDHCMS/plugins/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js"></script>-->
<script src="<?php echo e(asset('js/lib/moment.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js')); ?>"></script>


<!---Shyam JQuery ---->
<?php if(session('message')): ?>
    <script>
        swal("<?php echo e(session('message')); ?>");

    </script>
<?php endif; ?>
<script>
      var image_url=$('#image_url').val();



    $(document).on('click', '#leave-apply-btn', function () {
        if ($('leave_type').val() === "3") {
            $('#leave_session').removeAttr("disabled");
        }

        $.get("check_holiday", {
            from_date: $('#from_date').val(),
            to_date: $('#to_date').val()
        }, function (j) {
            if (j.length === 1) {
                submit_apply_leave();
            } else {
                var tr = "";
                for (var i = 1; i < j.length; i++) {
                    tr += "" + j[i].holiday_name + "\n " + j[i].holiday_start + " " + j[i].holiday_end + " " + j[i].day_name + "\n\n";
                }
                swal({
                    title: "Holiday List",
                    text: tr,
                    html: true,
                    icon: "warning",
                    buttons: true,
                    dangerMode: true,
                }).then((willApply) => {
                    if (willApply) {
                        $('#leave-apply-form').submit();
                    } else {
                        swal("Your have canceled your application!"
            )
                ;
            }
            })
                ;
            }
        });

    });
    function submit_apply_leave() {
        swal({
            title: "Are you sure to apply for leave?",
            text: "Once applied can be canceled !",
            icon: "warning",
            buttons: true,
            dangerMode: true,
        })
            .then((willApply) => {
            if (willApply) {
                $('#leave-apply-form').submit();
            } else {
                swal("Your have canceled your application!"
    )
        ;
    }
    })
        ;
    }






	$('#passwordChange').on('click',function(e){
		e.preventDefault();
		 $('#changePasswordModel')[0].reset();
		$('#changePassword').modal({backdrop: 'static', keyboard: false});
	})








</script>

<!---- End---->
<?php echo $__env->yieldContent('dynamic_js'); ?>

<script>




$('#changePasswordModel').validate({
        rules: {
            oldpassword: {
                required: true,
                 minlength: 5
            },
            newpassword: {
                required: true,
                minlength: 5
            },
			repassword: {
                required: true,
                minlength: 5,
				equalTo: "#newpassword"
            }
        }
    });

$('#changePasswordModel').on('submit',function(e){
	e.preventDefault();
	$('#changePasswordModel').validate();


    if($('#changePasswordModel').valid()){
	   var form = $('#changePasswordModel')[0];
       var data = new FormData(form);
	   $.ajax({
            type: "POST",
		    enctype: 'multipart/form-data',
            processData: false,
            contentType: false,
            cache: false,
            url: "<?php echo e(route('changeUserPassword')); ?>",
            data: data,
            dataType: "json",
            success: function (data) {
                if (data.msgType==true) {
					$('#changePassword').modal('hide');
                    toastr.success(data.msg);
                } else {
					if(data.oldpassword){
					     $('#oldpassword-error').remove();
					     $('#oldpassword').after('<label id="oldpassword-error" class="error" for="oldpassword">'+data.oldpassword+'</label>');

					}
					if(data.newpassword){
					  $('#newpassword').after('<label id="newpassword-error" class="error" for="newpassword">'+data.newpassword+'</label>');
					}
				    if(data.repassword){
					  $('#repassword').after('<label id="repassword-error" class="error" for="repassword">'+data.repassword+'</label>');
					}


                   toastr.error(data.msg);
                }
            },
            error: function (jqXHR, textStatus, errorThrown) {

                callAjaxErrorFunction(jqXHR, textStatus, errorThrown);
            },
            complete: function (data) {
                $('.page-loader-wrapper').fadeOut();
            }
        });
	 }

})



</script>

<div class="f-strip">
    <div class="row">
        <div class="col-md-12">Copyright © 2019, PNRD.All rights reserved. Designed, Developed &amp; Maintained by <a href="https://gratiatechnology.com/">Gratia Technology</a></div>
    </div>
</div>
</body>

</html>
