<!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', 'Laravel')); ?></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="<?php echo asset('/css/toastr.min.css'); ?>" media="all" rel="stylesheet" type="text/css" />
    <link href="<?php echo asset('/images/icomoon/style.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>
        html,
        body {
            height: 100%;
        }

        .navbar-nav {
            -ms-flex-direction: row;
            flex-direction: row;
        }

        .user-info{
            display: grid;
            height: 60px;
            font-size: 0.7rem !important;
        }
        .counter {
            -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
            box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
            /*position: absolute;*/
            z-index: 2;
            margin-top: 0;
            margin-left: -23px;
            -webkit-border-radius: 10em;
            border-radius: 10em;
            padding: 1px 7px;
            background-color: #fe1212;
            font-size: 11px;
            color: #fff;
            left: auto;
            height: 18px;
        }

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


        .brand_header {
            width: 178px;
            height: 67px;
            padding: 10px 0px 10px 0px;
        }



        .img_size {
            width: 100px;
            height: 90px;
        }

        .img_size_internet {
            width: 110px;
            height: 100px;
        }
        
        .profile_image{
            width:200px;
            height:167px;
        }
        
       #blance_view{
                display: block;
        }
        
        #leave_balance_view_btn{
            display: none;
        }
        
        .sidebar_profile{
            max-width: 190px;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        @media (max-width: 768px) {   
       
            .nevbar_fixed > .container-fluid >.nav-item.dropdown {
                width: 160px;
                text-align: right;
                margin-right: -21px;
            } 
            
            .navbar .dropdown-menu {
                left: -1px !important;
            }
            
            .navbar .dropdown-menu {
                left: 0px !important;
                border-radius: 0px;
                width: 155px;
                padding: 3px 3px !important;
            }
            
            .navbar .dropdown-menu a {
                 font-size: .7rem; 
            }
            .notification-btn{
                padding: .5rem .5rem !important;
                font-size: .9rem !important;
            }
            
            .container, .container-fluid {
                padding-right: 5px;
                padding-left: 5px;
            }
            .user-info{
                display: grid;
                height: 60px;
                font-size: 0.7rem !important;
            }
            .brand_header {
                width: 200px;
                height: 70px;
                padding: 10px;
            }
            
            .middle {
                opacity: 0;
                font-size: 8px;
                font-weight: 600;
                font-variant: petite-caps;
                margin-left: 45px;
                margin-top: -60px;
            } 
            
            .mobile-view-outer{
                opacity: 1;
                height: 23px !important;
                margin-top: 3px;
            }
            
            .mobile-view-inner{
                opacity: 0;
            }
            
            .testimonial-card .avatar.custom-height {
                    border: 1px solid #f8f8f8;
                    height: 6.5rem;
            }
            
            
            .testimonial-card .avatar {
                -webkit-border-radius: 50%;
                border-radius: 56%;
                width: 7rem;
                height: 7rem;
                margin-top: -3.5rem;
                overflow: hidden;
                border: 5px solid #fff;
            }
            
            .profile_image{
               width:200px;
               height:100px;               
            }
            
            .testimonial-card .card-up {
                overflow: hidden;
                height: 5rem;
                -webkit-border-top-left-radius: .25rem;
                border-top-left-radius: .25rem;
                -webkit-border-top-right-radius: .25rem;
                border-top-right-radius: .25rem;
            }
/*            .navbar .dropdown-menu {
                left: -70px !important;
            }*/

            .img_size {
                width: 70px;
                height: 60px;
            }

            .img_size_internet {
                width: 83px;
                height: 73px;
            }
            .mt25 {
                margin-top: 0px;
            }
            
            #blance_view{
                display: none;
            }
            
            #leave_balance_view_btn{
                display:block;
            }


        }
        .user-pic {

            width: 60px;
            padding: 2px;
            border-radius: 12px;
            margin-right: 15px;
            overflow: hidden;
        }

        .user-pic img {
            object-fit: cover;
            height: 100%;
            width: 100%;
        }
        
        .pagination .page-item.active .page-link {
            background-color: #4285f4;
            border-radius: 50%;
        }
        
       .nevbar_fixed .nav-item.dropdown{
          /*border: 1px solid rgba(0, 0, 0, .15);*/
       }
        
        
    </style>

    <noscript>
        <style>

            #u1
            {
                visibility:visible;
                margin-top: 40px;
            }
            body
            {
                visibility: hidden;
                overflow: hidden;
                /*display: :none;*/
            }
        </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>
    <?php $username=Auth::user()->username; ?>

    <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">
            <div class="sidebar-header">

                <h3 class="mb0" style="text-align:left;display: -webkit-inline-box;">
                    <a href="<?php echo e(url('/home')); ?>" 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>
            <div class="page-title p15 pt25 pb25" style="display:flex;">
                    <div class="user-pic" style="background-color: white;">

                        
                        
                        <img src="<?php echo asset('/images/profile_pic.jpg'); ?>" class="img" alt="">
                    </div>
                    <div class="user-info" style="">
                        <span _ngcontent-c1="" class="user-name"> 
                               <?php if(isset($global_data['employee_personal_data_name'])): ?>
                                 <?php echo e($global_data['employee_personal_data_name']); ?> 
                               <?php endif; ?>
                           </span>
                        <span _ngcontent-c1="" class="user-role sidebar_profile">
                               <?php if(isset($global_data['employee_personal_data_designationname'])): ?> 
                                  <?php echo e($global_data['employee_personal_data_designationname']); ?>

                               <?php endif; ?>
                           </span>
                        <span _ngcontent-c1="" class="user-status">
                               <i _ngcontent-c1="" class="fa fa-circle" style="color: #28a745;"></i>
                               <span _ngcontent-c1="" class="ng-tns-c1-0" > Online</span>
                        </span>
                    </div>
            </div>
            <ul class="list-unstyled" id="sidebar-component">
<!--                <li class="page-title p15 pt25 pb25" style="display:flex;">
                    <div class="user-pic" style="background-color: white;">

                        <?php if(isset($global_data['employee_personal_data_photo'])): ?>
                        <img src="<?php echo asset('/images/profilePic/'.$username.'/'.$global_data['employee_personal_data_photo']); ?>" class="img" alt=""> <?php else: ?>
                        <img src="<?php echo asset('/images/profile_pic.jpg'); ?>" class="img" alt=""> <?php endif; ?>
                    </div>
                    <div class="user-info" style="">

                        <span _ngcontent-c1="" class="user-name"> 
                               <?php if(isset($global_data['employee_personal_data_name'])): ?>
                                 <?php echo e($global_data['employee_personal_data_name']); ?> 
                               <?php endif; ?>
                           </span>
                        <span _ngcontent-c1="" class="user-role">
                               <?php if(isset($global_data['employee_personal_data_designationname'])): ?> 
                                  <?php echo e($global_data['employee_personal_data_designationname']); ?>

                               <?php endif; ?>
                           </span>
                        <span _ngcontent-c1="" class="user-status">
                               <i _ngcontent-c1="" class="fa fa-circle" style="color: #28a745;"></i>
                               <span _ngcontent-c1="" class="ng-tns-c1-0" > Online</span>
                        </span>
                    </div>


                </li>-->

                
                
                
                <li class="<?php echo e(Request::is('user/userhome') ? 'active' : ''); ?> mt10">
                    <a href="<?php echo e(route('userhome')); ?>"><!--<span class="icon-deshboard-32 f25 pr10"></span>--> <i class="fa fa-tachometer fa-lg pr10 "></i>Dashboard</a>
                </li>
                
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user_view_profile')): ?>
                <li class="<?php echo e(Request::is('user/profile') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('UserProfile')); ?>"><span class="icon-address-book f16 pr10"></span> My Profile</a>
                </li>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user_view_apply_leave')): ?>
                <li class="<?php echo e(Request::is('user/apply_leave*') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('leaveapply')); ?>">
                            <i class="fa fa-share-square-o fa-lg pr10" aria-hidden="true"></i> My Leave
                        </a>
                </li>
                <?php endif; ?> 
                
                
                <?php if(Auth::check()): ?> 
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('apply_resignation')): ?>
                    <li class="<?php echo e(Request::is('user/apply_resignation*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('applyresignation')); ?>">
                                 <i class="fa fa-sign-out fa-lg pr10"  aria-hidden="true"></i>Apply Resignation
                            </a>
                    </li>
                    <?php endif; ?> 
                <?php endif; ?>
                
                
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_payslip')): ?>
                <li class="<?php echo e(Request::is('user/payslip*') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('pay_slip')); ?>">
                            <i class="fa fa-money fa-lg pr10"  aria-hidden="true"></i> My Pay slip
                        </a>
                </li>
                <?php endif; ?>
                

                
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view_employee_task')): ?>
                <li class="<?php echo e(Request::is('user/my_task*') ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('mytask')); ?>">
                            <span class="icon-file-text f16 pr10"></span> My Task
                    </a>
                </li>
                <?php endif; ?> 
                
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user_view_travel')): ?>
                    <li class="<?php echo e(Request::is('user/travel*') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('usertravel')); ?>"> 
                            <i class="fa fa-plane fa-lg pr10 "></i>Travel
                        </a>
                    </li>
                <?php endif; ?> 

            </ul>
        </nav>


        <div id="content">
<!--            <nav class="navbar navbar-default nevbar_fixed">
                <div class="container-fluid">
                    <button type="button" id="sidebarCollapse" class="navbar-btn sidebarCollapse" style="cursor: pointer;">
                        <span></span>
                        <span></span>
                        <span></span>
                    </button>
                    <div class="nav navbar-nav ml-auto">
                        <div class="nav-item mr-3" style="display:flex;">
                            <button type="button" class="btn btn-sm btn-outline-warning waves-effect">
                                <i class="fa fa-bell-o fa-lg" aria-hidden="true"></i>
                            </button>
                            <span class="counter">22</span>
                        </div>
                    </div>
                    <div class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle  btn btn-sm btn-outline-info waves-effect" 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>-->
            
          <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 navbar-nav ml-auto">
<!--                        <div class="nav-item mr-3" style="display:flex;">
                            <button type="button" class="btn btn-sm btn-outline-warning waves-effect notification-btn" style="border-radius: 40px;">
                                <i class="fa fa-bell-o fa-lg" aria-hidden="true"></i>
                            </button>
                            <span class="counter">22</span>
                        </div>-->
                    </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="col-md-12 text-center">
                        <div id="flash-msg">
                            <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        </div>
                    </div>
                 <?php echo $__env->yieldContent('content'); ?>
<!--                <div class="row justify-content-center">
                    <div class="col-md-12 ">
                        <?php echo $__env->yieldContent('badcome'); ?>
                    </div>


                    <div class="col-md-12 text-center">
                        <div id="flash-msg">
                            <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        </div>
                    </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="1" 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/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/jqueryValidate.js')); ?>"></script>
        <script src="<?php echo e(asset('js/lib/jqueryAddValidate.js')); ?>"></script>


        <!--<script src="<?php echo e(asset('js/lib/jquery.twbsPagination.min.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/lib/moment.min.js')); ?>"></script>
        <script src="<?php echo e(asset('plugins/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.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('jquery-ui/jquery-ui.min.js')); ?>"></script>


        <script>
            
          var image_url=$('#image_url').val();   
            
            
            $('#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>