<!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()); ?>">

    <link rel="icon" sizes="16x16" href="<?php echo e(asset('images/favicon.ico')); ?>">
    <title><?php echo $__env->yieldContent('title'); ?> | <?php echo e(env('APP_NAME')); ?></title>
    <!-- ===== Bootstrap CSS ===== -->
    <link href="<?php echo e(asset('bootstrap/dist/css/bootstrap.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('plugins/components/custom-select/custom-select.css')); ?>" rel="stylesheet">
    <!-- ===== Plugin CSS ===== -->
    <link href="<?php echo e(asset('plugins/components/datatables/jquery.dataTables.min.css')); ?>" rel="stylesheet"
        type="text/css" />
    <!-- ===== Animation CSS ===== -->
    <link href="<?php echo e(asset('css/animate.css')); ?>" rel="stylesheet">
    <!-- ===== Custom CSS ===== -->
    <link href="<?php echo e(asset('css/style.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/toast.css')); ?>" rel="stylesheet">
    <!-- ===== Color CSS ===== -->
    <link href="<?php echo e(asset('css/colors/default.css')); ?>" id="theme" rel="stylesheet">
    <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> -->
    <link href="<?php echo e(asset('plugins/components/bootstrap-datepicker/bootstrap-datepicker.min.css')); ?>">

    <link href="https://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
    <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" /> -->

    <?php
    function current_page($uri = '/')
    {
        return strstr(request()->path(), $uri);
    }
    
    function home_page()
    {
        if (request()->path() == '/') {
            return true;
        } else {
            return false;
        }
    }
    ?>

       <style type="text/css">
/* .select2-container--mytheme {
  background-color: #fff;
}
.select2-container--mytheme .select2-search__field {
  padding: 4px 6px;
  font-size: 14px;
  border-radius: 20px;
}

.select2-container--mytheme .select2-selection__rendered {
  background-color: #f1f3f4;
  border-radius: 20px;
  border-color: #d3d3d3;
  border-width: 1px;
}

.select2-container--mytheme .select2-selection__arrow {
  border-color: #d3d3d3;
}

.select2-container--mytheme .select2-dropdown {
  border-radius: 20px;
  background-color: #fff;
  border-color: #d3d3d3;
  border-width: 1px;
}

.select2-container--mytheme .select2-results__option--highlighted {
  background-color: #f0f0f0;
} */
/* Increase padding of the search input field */
/* Increase the height of the search input field */
.select2-container--mytheme .select2-search__field {
  height: 40px;
  padding: 10px 12px;
  color: #fff; /* Input text color */
}

/* Increase the height and border radius of the selected option */
.select2-container--mytheme .select2-selection__rendered {
  height: 40px;
  line-height: 40px;
  border-radius: 30px;
  background-color: #76B5C5;
  border-color: #76B5C5;
  color: #fff; /* Selected text color */
}

/* Highlight the selected option on hover */
.select2-container--mytheme .select2-selection__rendered:hover {
  background-color: #60A7B9;
}

/* Increase the height, padding, and border radius of the dropdown */
.select2-container--mytheme .select2-dropdown {
  height: 200px;
  padding: 10px 0;
  border-width: 2px;
  border-radius: 30px;
  border-color: #76B5C5;
}

/* Set the background color and text color of the dropdown options */
.select2-container--mytheme .select2-results__option {
  background-color: #76B5C5;
  color: #fff;
}

/* Highlight the dropdown option on hover */
.select2-container--mytheme .select2-results__option:hover {
  background-color: #60A7B9;
  color: #fff;
}

/* Set the background color and text color of the selected dropdown option */
.select2-container--mytheme .select2-results__option[aria-selected=true] {
  background-color: #60A7B9;
  color: #fff;
}

/* Set the background color and text color of the dropdown option group headers */
.select2-container--mytheme .select2-results__group {
  background-color: #76B5C5;
  color: #fff;
}





        @media  print {
            a[href]:after {
                visibility: hidden;
            }

            /*  table.table-bordered{
        border:1px solid black !important;
        margin-top:20px;
        }
        table.table-bordered > thead > tr > th{
        border:1px solid black !important;
        }
        table.table-bordered > tbody > tr > td{
        border:1px solid black !important;
        }*/
            /* .white-box {
        border: 1px solid #000000 !important;
        }*/
            .div-border {
                border: 1px solid #000000;
                padding: 5px;
            }

            .font-weight-bold {
                font-weight: bold;
            }

            .pricing-section {
                border: 1px solid black;
                padding: 15px;
            }

            .us-text {
                float: left;
            }

            .us-next-line {
                display: block;
            }
        }

        #myTable th {
            color: black;
        }


        table.table-striped tbody tr:nth-of-type(odd) {
            background-color: #fafbfd !important;
        }


        table.table-striped tbody tr:nth-of-type(even):hover {
            background-color: #e5f4ff !important;
        }

        table.table-striped tbody tr:nth-of-type(odd):hover {
            background-color: #e5f4ff !important;
        }

        .table-hover>tbody>tr:hover {
            background-color: #e5f4ff !important;
        }

        .anchor-link {
            display: none;
        }

        /* .newha {
            float: right;
            font-size: 30px;
            background: #102b4d;
            width: 45px;
            height: 45px;
            text-align: center;
            border-radius: 50%;
            cursor: pointer;
            line-height: 50px;
            color: #f8eded;
            margin-right: 20px;
            margin-top: 6px;
            transition: 0s;
            display: inline-block;
        } */

        /* .newha:hover .swh {
            display: block;
            margin-right: -5px;
            transition-delay: 1s;
            margin-top: 5px;
        } */

        /* .newha:hover {
            background: black;
        }

        .swh {
            color: white;
            display: none;
            float: right;
            width: 85px;
            height: 40px;
            background: black;
            text-align: center;
            line-height: 40px;
            border: 1px solid black;
            margin-right: 5px;
            border-radius: 13%;
            font-size: 14px;
            font-weight: bold;
            box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
            transform: scale(1.03);
            letter-spacing: 1px;
            font-family: Helvetica;
        } */

        .newhas1 {
       margin-top: 3px;
       background: white;
       display: flex;
       box-sizing:border-box;
       padding: 20px;
       margin-left: 5px;
       flex-direction: row;
       border-radius: 10px;
       margin-right:6px;
      }

        .newhas1:hover {
            background: #ECF5EB;;
            cursor: pointer;
        }

        .imghai {
            margin-left: 20px;
        }

        .imghai>i {}

        .imghai:hover .swhh {
            display: inline;
            transition: 0.5s ease;

        }

        .imghai>img {
            width: 35px;
            height: 35px;
        }

        .has {
            float: left;
            font-size: 25px;
            background: lightblue;
            width: 37px;
            height: 37px;
            text-align: center;
            border-radius: 50%;
            cursor: pointer;
            line-height: 40px;
            color: #f8eded;
            margin-right: 20px;
            margin-top: 6px;
            transition: 0s;
        }

        .lu {
          display: flex;
          flex: auto;
          font-weight: bold;
          font-size: x-large;
        }

        .newdiv {
            display: none;
            position: absolute;
            z-index: 3;
            width: 22%;
            background: white;
            float: right;
            transform: scale(1.03);
            margin-top: 12px;
            margin-right: 30px;
            border-radius: 10px;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
            margin-left: 76%;
        }
        .nayadiv {
              padding: 10px;
              border-radius: 10px;
              margin-left: 5px;
              font-size: 17px;
              color:#006e6a;
              margin-right: 6px;
              margin-bottom: 5px;
        }
        .nayadiv:hover {
            background: #ECF5EB;
            cursor: pointer;
        }

        .show {
            display: block;
        }

        .seconddiv {
            display: none;
            position: absolute;
            z-index: 10;
            width: 25%;
            background: white;
            float: right;
            transform: scale(1.03);
            margin-top: 12px;
            border-radius: 10px;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
            margin-left: 73%;
            padding: 23px;
        }

        .fas {
            color: black;
            width: 40px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            cursor: pointer;
        }

        .fas:hover {
            color: black;
            width: 40px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            background: #D8D8D8;
            border-radius: 50%;
        }

        .hastext {
            display: flex;
            color: black;
            font-size: 21px;
            font-weight: 600;
            display: contents;
        }

        .newsecondiv {
            margin-top: 20px;
            cursor: pointer;

        }
        .newsecondiv > li{
            list-style-type: none;
        }
        .newsecondiv:hover {
            background: #D8D8D8;
            height: 50px;
            border-radius: 7px;
        }

        .radios {
            float: right;
        }

        .lui {
            font-family: 'Segoe UI Historic';
            font-weight: 200px;
            font-size: 18px;
            color: black;
            padding: 5px;
        }

       
        
        .hass {
            font-size: 25px;
            background: lightblue;
            width: 37px;
            height: 37px;
            text-align: center;
            border-radius: 50%;
            cursor: pointer;
            line-height: 40px;
            color: #f8eded;
            margin-right: 20px;
            margin-top: 6px;
            margin-left: 5px;
            transition: 0s;
            object-fit: cover;
            border: 1px solid #dfd2d5;
        }

        .swhh {
            position: absolute;
            width: 130px;
            z-index: 3;
            display: none;
            color: white;
            height: 25px;
            background: black;
            margin-top: 8px;
            text-align: center;
            line-height: 20px;
            border: 1px solid black;
            border-radius: 10%;
            margin-left: -117px;
            font-size: 10px;
            font-weight: bold;
            box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
            transform: scale(1.03);
            font-family: Helvetica;
        }

        #rot {
             font-size: 52px;
             position: absolute;
             top: 3px;
             right: 14px;
             line-height: 0px;
             color: #3D515A;
        }
        #rot:hover {
            color: #3D515A;
            cursor: pointer;
            transition: 0.4s;
            transform: rotate(360deg);
            -webkit-transform: rotate(360deg);
            -ms-transform: rotate(360deg);
        }

        .shows {
            display: block;
        }

        .showing {
            display: none;
        }

        #ley {
            font-size: 23px;
            color: white;
            background: violet;
            width: 34px;
            height: 35px;
            border-radius: 50%;
            text-align: center;
            line-height: revert;
        }
        .halp{
            float: left;
            font-size: 25px;
            background: lightblue;
            width: 35px;
            height: 37px;
            text-align: center;
            border-radius: 50%;
            cursor: pointer;
            line-height: 40px;
            color: #f8eded;
            margin-right: 20px;
            margin-top: 6px;
            transition: 0s;
        }
        .chal {
          width: 45px;
          height: 45px;
          border-radius: 50%;
          position: absolute;
          z-index: 2;
          right: 20px;
            }
            #newid {
              color: white;
              font-weight: 700;
              font-size: 21px;
              margin-top: 5%;
              margin-right: 25px;
            }
            .ekdiv{
                display: flex;
                float: right;
                margin-top: 2px;
                margin-bottom: 2px;
            }
            /* select project style */
            .sboxnew{
               width: 35%;
               /* margin: 22px auto 0; */
               /* position: absolute;
               z-index: 10;
               margin-left: 22%;
               margin-top: -90px; */
}
.optionss{
    margin-top: 20px;
    padding: 0px;
}
.optionss li{
    height: 58px;
    border-radius: 5px;
    font-size: 21px;
    font-weight: 500px;
    list-style-type: none;
    cursor: pointer;
}
.optionss li:hover{
    background:  #e5f4ff !important;;
    width: 100%;
}
.select-btn, .options li{
    display: flex;
    cursor: pointer;
    align-items: center;
}
.select-btn{
    height: 65px;
    font-size: 22px;
    padding: 0 20px;
    background: #31708f;
    justify-content: space-between;
}
.select-btn i{
    font-size: 31px;
    transition: transform 0.3s linear;
}
.sboxnew.active .select-btn i{
    display: block;
    transform: rotate(-180deg);
}
.content{
    display: none;
    padding: 20px;
    margin-top: 2px;
    background: #31708f;
    z-index: 5;
}
.sboxnew.active .content{
    display: block;
}
.content .search{
position: relative;
}
.search i{
    left: 15px;
    line-height: 53px;
    position: absolute;
    font-size: 20px;
    color: #999;
}
.search input{
    height: 53px;
    width: 100%;
    outline: none;
    border-radius: 40px;
    font-size: 17px;
    padding: 0 15px 0 43px;
    border: 1px solid black;
}
.content .options{
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 7px;
}
.options::-webkit-scrollbar{
    width: 11px;
}
.options::-webkit-scrollbar-track{
    background: #ccc;
    border-radius: 25px;
}
.options::-webkit-scrollbar-thumb{
    background:  slategray;;
    border-radius: 25px;
}
.options li{
    height: 58px;
    border-radius: 5px;
    padding: 0 13px;
    font-size: 21px;
    font-weight: 500px;
}
.options li:hover, li.selected{
    background: lightslategray;
}
html{
    scroll-behavior: smooth; 
}
#progress {
    color: red;
    position: fixed;
    bottom: 20px;
    right: 10px;
    width: 55px;
    height: 55px;
    display: none;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 5;
}
#progress-value{
    display: block;
    height: calc(100% - 15px);
    width: calc(100% - 15px);
    background: black;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: white;
}
/*  */
.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden; 
  border: none; 
  cursor: pointer; 
  margin-right: 20px;
  margin-top: 8px;
} 
.circle-btn img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
}

/*  */
.span {
    display: none;
    position: absolute;
    float: right;
    background: gray;
    width: 5%;
    border-radius: 7px;
    text-align: center;
    color: white;
    font-size: 15px;
    font-weight: 500;
    height: 38px;
    line-height: 2.5;
    z-index: 1;
    letter-spacing: .5px;
    top: 61px;
    right: 6px;
    background: #000000a6;;
    opacity: 0;
}
.circle-btn:hover .span{
  display: block;
  opacity: 1;
} 
        /* End Select box  */
        @media  only screen and (max-width: 1024px) {
            .newdiv {
                display: none;
                width: auto;
                position: absolute;
                z-index: 3;
                /* height: 185px; */
                background: white;
                /* float: right; */
                transform: scale(1.03);
                margin-top: 12px;
                /* margin-right: 30px; */
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                margin-left: 823px;
            }

            .seconddiv {
                display: none;
                position: absolute;
                z-index: 3;
                width: 30%;
                background: white;
                transform: scale(1.03);
                margin-top: 12px;
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                margin-left: 823px;
                padding: 23px;
            }
        }

        @media  only screen and (max-width: 862px) {
            .newdiv {
                display: none;
                width: auto;
                position: absolute;
                z-index: 3;
                /* height: 185px; */
                background: white;
                /* float: right; */
                transform: scale(1.03);
                margin-top: 12px;
                /* margin-right: 30px; */
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                margin-left: 633px;
            }

            .seconddiv {
                display: none;
                position: absolute;
                z-index: 3;
                width: 35%;
                /* height: 220px; */
                background: white;
                /* float: right; */
                transform: scale(1.03);
                margin-top: 12px;
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                margin-left: 633px;
                padding: 23px;
            }
        }

        @media  only screen and (max-width: 1075px) {
            .newdiv {
                display: none;
                width: auto;
                position: absolute;
                z-index: 3;
                /* height: 185px; */
                background: white;
                /* float: right; */
                transform: scale(1.03);
                margin-top: 12px;
                /* margin-right: 30px; */
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                margin-left: 70%;
            }

            .seconddiv {
                display: none;
                position: absolute;
                z-index: 3;
                width: 32%;
                /* height: 220px; */
                background: white;
                /* float: right; */
                transform: scale(1.03);
                margin-top: 12px;
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                margin-left: 65%;
                padding: 23px;
            }
        }

        @media  only screen and (max-width: 720px) {
            .newdiv {
                display: none;
                width: auto;
                position: absolute;
                z-index: 3;
                /* height: 185px; */
                background: white;
                /* float: right; */
                transform: scale(1.03);
                margin-top: 75px;
                /* margin-right: 30px; */
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                margin-left: 56%;
            }

            .seconddiv {
                display: none;
                position: absolute;
                z-index: 3;
                width: 43%;
                /* height: 220px; */
                background: white;
                /* float: right; */
                transform: scale(1.03);
                margin-top: 75px;
                border-radius: 10px;
                box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
                margin-left: 55%;
                padding: 23px;
            }
        }
         
 


    </style>
    <?php echo $__env->yieldContent('css'); ?>
</head>

<body class="mini-sidebar">
    <!-- Preloader -->

    <?php
        $data = \App\MultiProject::getMultiProject();
        $active = \App\MultiProject::getActiveProject();

        $app_society=false;
        $app_high_rise = false;
       
       
    


    ?>
   

    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('isSuperAdmin')): ?>
    <?php
    $app_society = false;
    $app_high_rise = false;
     if(isset($ids[0])){
        if($ids[0] != 'all'){
            $result=   \App\MultiProject::whereIn('id',$ids)->where('project_type_id',\App\ProjectType::society)->first();
       
            if(!empty( $result))
            {
                $app_society = true;
               $app_high_rise = true; 
            }
            else {
                $app_society = false;
               $app_high_rise = true; 
            }
        }
        else {
          $r=  \App\MultiProject::where('project_type_id',\App\ProjectType::society)->first();
          if(!empty( $r))
            {
                $app_society = true;
               $app_high_rise = true; 
            }
            else {
                $app_society = false;
               $app_high_rise = true; 
            }
        }
     }
  
       
      
    ?>
    <?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies('isSuperAdmin')): ?>
    <?php
    if($cookie_project_type == \App\ProjectType::society)
        {
            $app_society=true;
            $app_high_rise = false;
        }
        if($cookie_project_type == \App\ProjectType::high_rise ){
            $app_high_rise = true;
            $app_society=false;
        }
       
    ?> 
    <?php endif; ?>

   
 
    <div id="wrapper">
        <div class="preloader">
            <div class="cssload-speeding-wheel"></div>
        </div>


        <!-- ===== Top-Navigation ===== -->
        <nav class="navbar navbar-default navbar-static-top m-b-0 no-print" style="position: sticky; top: 0;">
            <div class="navbar-header">
                <div class="ekdiv">
                    
                    <?php if(!empty($active['project'])): ?>
                        <p id="newid"><?php echo e($active['project']->name); ?></p>
                    <?php else: ?>
                        <p id="newid"><?php echo e(Auth::user()->name); ?></p>
                    <?php endif; ?>
                    <!-- <i class="fa fa-refresh rot" aria-hidden="true"></i>  -->

                    <div class="circle-btn" onclick="show()">
                    <span
 
                            class="x4k7w5x x1h91t0o x1h9r5lt x1jfb8zj xv2umb2 x1beo9mf xaigb6o x12ejxvf x3igimt xarpa2k xedcshv x1lytzrv x1t2pt76 x7ja8zs x1qrby5j"
                            id="rot">
                            <div aria-label="Switch Profiles"
                                class="x1i10hfl xjbqb8w xjqpnuy xa49m3k xqeqjp1 x2hbi6w x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x1ypdohk xdl72j9 x2lah0s xe8uvvx xdj266r x11i5rnm xat24cr x1mh8g0r x2lwn1j xeuugli xexx8yu x4uap5 x18d9i69 xkhd6sd x1n2onr6 x16tdsg8 x1hl2dhg xggy1nq x1ja2u2z x1t137rt x1o1ewxj x3x9cwd x1e5q0jg x13rtm0m x3nfvp2 x1q0g3np x87ps6o x1lku1pv x1a2a7pz x6s0dn4 xl56j7k"
                                role="button" tabindex="0">
                                <div class="x135icu2"><svg fill="currentColor" viewBox="0 0 20 20" width="1em"
                                        height="1em"
                                        class="x1lliihq x1k90msu x2h7rmj x1qfuztq xfuq9xy x10w6t97 x1td3qas">
                                        <g fill-rule="evenodd" transform="translate(-446 -398)">
                                            <g fill-rule="nonzero">
                                                <path
                                                    d="M96.628 206.613A7.97 7.97 0 0 1 96 203.5a7.967 7.967 0 0 1 2.343-5.657A7.978 7.978 0 0 1 104 195.5a7.978 7.978 0 0 1 5.129 1.86.75.75 0 0 0 .962-1.15A9.479 9.479 0 0 0 104 194a9.478 9.478 0 0 0-6.717 2.783A9.467 9.467 0 0 0 94.5 203.5a9.47 9.47 0 0 0 .747 3.698.75.75 0 1 0 1.381-.585zm14.744-6.226A7.97 7.97 0 0 1 112 203.5a7.967 7.967 0 0 1-2.343 5.657A7.978 7.978 0 0 1 104 211.5a7.978 7.978 0 0 1-5.128-1.86.75.75 0 0 0-.962 1.152A9.479 9.479 0 0 0 104 213a9.478 9.478 0 0 0 6.717-2.783 9.467 9.467 0 0 0 2.783-6.717 9.47 9.47 0 0 0-.747-3.698.75.75 0 1 0-1.381.585z"
                                                    transform="translate(352 204.5)"></path>
                                                <path
                                                    d="M109.5 197h-2.25a.75.75 0 1 0 0 1.5h3a.75.75 0 0 0 .75-.75v-3a.75.75 0 1 0-1.5 0V197zm-11 13h2.25a.75.75 0 1 0 0-1.5h-3a.75.75 0 0 0-.75.75v3a.75.75 0 1 0 1.5 0V210z"
                                                    transform="translate(352 204.5)"></path>
                                            </g>
                                        </g>
                                    </svg></div>
                                <div
                                    class="x1jx94hy x1z11no5 xjy5m1g x1mnwbp6 x4pb5v6 xyqdw3p x10ogl3i xg8j3zb x1k2j06m x10l6tqk">
                                    <div class="x1rg5ohu x1n2onr6 x3ajldb x1ja2u2z"></div>
                                </div>
                            </div>
                        </span>

                        <?php if(empty($active['project'])): ?>
                            <img src="<?php echo e(asset('plugins/images/users/admin.jpg')); ?>" alt="">
                        <?php else: ?>
                            <img src="<?php echo e(asset('images/' . $active['project']->image)); ?>" alt="">
                        <?php endif; ?>
                        <span class="span">Switch</span>
                    </div>



                    <!-- <div class="newha" onclick="myFunction()">   <img src="images/logoo1.png" class="chal"> <i class="fa fa-spinner " aria-hidden="true"></i>
                    <button type="button" class="swh">Switch</button>
                </div> -->


                </div>
                <a class="navbar-toggle font-20 hidden-sm hidden-md hidden-lg " href="#" data-toggle="collapse"
                    data-target=".navbar-collapse">

                    <i class="fa fa-bars"></i>
                </a>

                <div class="top-left-part" style="text-align: center;padding:15px;">
                    <a class="logo" href="<?php echo e(route('home')); ?>">

                        <!-- <img src="<?php echo e(asset('images/logo.png')); ?>" class="logo-img" style="width: 15%; height: 15%; background: white"> -->
                        <span style="font-size: 21px;color:white;font-weight:700;">
                            <?php echo e(env('APP_NAME')); ?>


                        </span>
                    </a>
                </div>
                <ul class="nav navbar-top-links navbar-left hidden-xs">
                    <li>
                        <a href="#" class="sidebartoggler font-20 waves-effect waves-light"><i
                                class="icon-arrow-left-circle"></i></a>
                    </li>



                </ul>

            </div>
        </nav>
        <!-- ===== Top-Navigation-End ===== -->
        <div class="color-shicher-wraper no-print" style="z-index: 9999; margin-top: 30px;">
            <div class="setting-button-wrapper-1">
                <button type="button" class="setting-button" title="Payment Schedule Calculator"><i id="id12"
                        class="fa fa-calculator"></i></button>
            </div>
            <form id="form_app" method="post" target="_blank" action="<?php echo e(route('schedule.generate')); ?>">
                <?php echo e(csrf_field()); ?>

                <div class="swhicher-button">
                    <h3><b>Payment Scheduler </b><button type="button" onclick="refresh()"><i
                                class="fa fa-refresh fa-sm"></i></button></h3>
                    <div style="margin-bottom: 5px;"><label style="width:35%">Unit No</label>
                        <select class="chosen-select" style="margin-bottom: 0px;width:63%!important;"
                            name="unit_number_app" id="unit_number_app">

                            <option value=""></option>
                            <?php $__currentLoopData = $units; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($p->id); ?>"><?php echo e($p->unit_number); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        </select>
                        <!-- <input type="integer" style="margin-bottom: 0px;width:53%;" autocomplete="off" class="form-group" id='total_sqft_app' value=""> -->
                    </div>
                    <!-- <div style="margin-bottom: 10px;"><label style="width:40%">Type</label>
        <input type="integer" style="margin-bottom: 0px;width:53%;" autocomplete="off" class="form-group" id='rate_sqft_app' value="">
        </div> -->
                    <div style="margin-bottom: 5px;"><label style="width:35%">Status</label>
                        <input type="integer" disabled="" readonly="" style="margin-bottom: 0px;width:63%;"
                            autocomplete="off" class="form-group" id='status_app' value="">
                    </div>
                    <div style="margin-bottom: 5px;"><label style="width:35%">Type</label>
                        <input type="integer" disabled="" readonly="" style="margin-bottom: 0px;width:63%;"
                            autocomplete="off" class="form-group" id='type_app' value="">
                    </div>
                    <div style="margin-bottom: 5px;"><label style="width:35%">Size</label>
                        <input type="integer" disabled="" readonly="" style="margin-bottom: 0px;width:63%;"
                            autocomplete="off" class="form-group" id='size_app' value="">
                    </div>

                    <div style="margin-bottom: 5px;"><label style="width:35%">Categories</label>
                        <div class="bootstrap-tagsinput" id="category_app">

                        </div>
                        <!-- <textarea disabled="" readonly="" style="margin-bottom: 0px;width:53%;" autocomplete="off" class="form-group"
                            id='category_app'></textarea> -->

                    </div>
                    <div style="margin-bottom: 5px;"><label style="width:35%">Total Price</label>
                        <input type="integer" disabled="" readonly="" style="margin-bottom: 0px;width:63%;"
                            autocomplete="off" class="form-group" id='total_amount_app' value="">
                    </div>
                    <div style="margin-bottom: 5px;"><label style="width:35%">Extra Charges</label>
                        <input type="integer" disabled="" readonly="" style="margin-bottom: 0px;width:63%;"
                            autocomplete="off" class="form-group" id='extra_charges_app' value="">
                    </div>
                    <div style="margin-bottom: 10px;"><label style="width:40%;    font-size: 1.3rem;">Discount (
                            <input type="checkbox" id="per_discount"> % )</label>
                        <input type="integer" style="margin-bottom: 0px;width:53%;" class="form-group"
                            autocomplete="off" id='discount_app' name="discount_app" value="">
                    </div>
                    <div style="margin-bottom: 5px;"><label style="width:35%">Net Amount</label>
                        <input type="integer" disabled="" readonly="" style="margin-bottom: 0px;width:63%;"
                            autocomplete="off" class="form-group" id='net_amount_app' value="">
                    </div>


                    <div style="margin-bottom: 5px;">
                        <label style="width:35%">Down Payment</label>
                        <input type="integer" style="margin-bottom: 0px;width:63%;" class="form-group"
                            autocomplete="off" name="down_payment_app" id='down_payment_app' value="">
                    </div>
                    <div style="margin-bottom: 5px;">
                        <label style="width:35%">Montlhy</label>
                        <input type="integer" style="margin-bottom: 0px;width:30%;" class="form-group"
                            autocomplete="off" name="monthly_installment_app" id='monthly_installment_app'
                            value=""> <input readonly="" type="integer" autocomplete="off" disabled=""
                            style="margin-bottom: 0px;width:30%;" class="form-group"
                            name="total_monthly_installment_app" id='total_monthly_installment_app' value="">
                    </div>
                    <div style="margin-bottom: 5px;">
                        <!--  <label style="width:35%">Semi Annually</label> -->
                        <select style="width:35%" name="annual_select" id="annual_select">
                            <option value="1">None</option>
                            <option value="3">Quarterly</option>
                            <option value="6" selected="">Semi Annually</option>
                            <option value="12">Annually</option>
                        </select>
                        <input type="integer" autocomplete="off" style="margin-bottom: 0px;width:30%;"
                            class="form-group" name="annual_installment_app" id='annual_installment_app'
                            value="">
                        <input type="integer" autocomplete="off" disabled=""
                            style="margin-bottom: 0px;width:30%;" class="form-group"
                            name="total_annual_installment_app" id='total_annual_installment_app' value="">
                    </div>
                    <div style="margin-bottom: 5px;">
                        <label style="width:35%">Possession</label>
                        <input type="integer" style="margin-bottom: 0px;width:63%;" class="form-group"
                            autocomplete="off" name="possession_app" id='possession_app' value="">
                    </div>
                    <div style="margin-bottom: 5px;">
                        <label style="width:35%">Total Months</label>
                        <input type="integer" autocomplete="off" s
                            class="form-group" name="total_months_atyle="margin-bottom: 0px;width:63%;"pp" id='total_months_app' value="">
                    </div>
                    <div style="margin-bottom: 5px; text-align: center;">
                        <a href="javascript:{}" onclick="document.getElementById('form_app').submit();"
                            class="fcbtn btn btn-success btn-outline btn-1c">Print Payment Schedule</a>
                    </div>

                </div>
            </form>

        </div>
        <!--/.color-shicher-wraper-->
        <!-- ===== Left-Sidebar ===== -->
        <aside class="sidebar no-print" role="navigation">
            <div class="slim-scroll">
                <div class="user-profile">
                    <div class="dropdown user-pro-body">
                        <div class="profile-image">
                            <img src="<?php echo e(asset('plugins/images/users/admin.jpg')); ?>" alt="user-img"
                                class="img-circle">
                            <a href="#" class="dropdown-toggle u-dropdown text-blue" data-toggle="dropdown"
                                role="button" aria-haspopup="true" aria-expanded="false">
                                <span class="badge badge-danger">
                                    <i class="fa fa-angle-down"></i>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated flipInY">
                                <li><a href="<?php echo e(route('admin.profile')); ?>"><i class="fa fa-user"></i> Profile</a>
                                </li>

                                <li><a href="<?php echo e(route('projectswitch.index')); ?>"><i class="fa fa-fighter-jet"></i>
                                        Project Switching</a>
                                </li>
                                <li role="separator" class="divider"></li>

                                <form id='form1' action="<?php echo e(route('logout')); ?>" method="POST">
                                    <?php echo e(csrf_field()); ?>

                                </form>
                                <li> <a href='#' onclick="document.getElementById('form1').submit();"><i
                                            class="fa fa-power-off"></i> Logout</a></li>

                            </ul>
                        </div>
                        <p class="profile-text m-t-15 font-16"><a href="#"> <?php echo e(Auth::user()->name); ?></a></p>
                    </div>
                </div>
                <nav class="sidebar-nav active">
                    <ul id="side-menu" class="in">
                        <li class="<?php echo e(home_page() ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('home')); ?>" class="<?php echo e(home_page() ? 'active' : ''); ?>"
                                aria-expanded="false"><i class="icon-screen-desktop fa-fw"></i> <span
                                    class="hide-menu">Dashboard</span></a>
                        </li>




                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-customer', 'create-customer'])): ?>
                            <li>

                                <a class=" <?php echo e(current_page('customer/all') ? 'active' : ''); ?> <?php echo e(current_page('add/customer') ? 'active' : ''); ?> <?php echo e(current_page('customer-requests') ? 'active' : ''); ?> waves-effect"
                                    href="javascript:void(0);" aria-expanded="false">
                                    <i class="fa fa-caret-right caret-icon"></i>
                                    <i class="icon-people fa-fw"></i>
                                    <span class="hide-menu">Customers</span></a>
                                <ul aria-expanded="false"
                                    class="collapse <?php echo e(current_page('customer/all') ? 'in' : ''); ?> <?php echo e(current_page('add/customer') ? 'in' : ''); ?> <?php echo e(current_page('customer-requests') ? 'in' : ''); ?>">

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-customer')): ?>

                                        <li class="<?php echo e(current_page('add/customer') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('add/customer') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('customer.addView')); ?>"><i class="icon-check fa-fw"></i> New
                                                Customer</a> </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-customer')): ?>

                                        <li class="<?php echo e(current_page('customer/all') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('customer/all') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('customer.all')); ?>"><i class="icon-check fa-fw"></i> Customers
                                                List</a> </li>
                                    <?php endif; ?>

                                </ul>


                            </li>

                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-customer', 'create-customer'])): ?>
                            <li>

                                <a class=" <?php echo e(current_page('nominee/all') ? 'active' : ''); ?> 
                                <?php echo e(current_page('/add/nominee') ? 'active' : ''); ?>

                                  waves-effect"
                                    href="javascript:void(0);" aria-expanded="false">
                                    <i class="fa fa-caret-right caret-icon"></i>
                                    <i class="icon-user fa-fw"></i>
                                    <span class="hide-menu">Nominees</span></a>
                                <ul aria-expanded="false"
                                    class="collapse <?php echo e(current_page('nominee/all') ? 'in' : ''); ?> <?php echo e(current_page('add/nominee') ? 'in' : ''); ?> ">

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-customer')): ?>

                                        <li class="<?php echo e(current_page('add/nominee') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('add/nominee') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('nominee.addView')); ?>"><i class="icon-check fa-fw"></i> New
                                                Nominee</a> </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-customer')): ?>

                                        <li class="<?php echo e(current_page('nominee/all') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('nominee/all') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('nominee.all')); ?>"><i class="icon-check fa-fw"></i> Nominee
                                                List</a> </li>
                                    <?php endif; ?>

                                </ul>


                            </li>
                            <?php endif; ?>
                        <?php endif; ?>

                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-inventory', 'create-inventory'])): ?>
                            <li>
                                <a class=" <?php echo e(current_page('inventory-status-sheet') ? 'active' : ''); ?> <?php echo e(current_page('add/inventory') ? 'active' : ''); ?> <?php echo e(current_page('inventory/all') ? 'active' : ''); ?> waves-effect"
                                    href="javascript:void(0);" aria-expanded="false">
                                    <i class="fa fa-caret-right caret-icon"></i>
                                    <i class="icon-layers fa-fw"></i>
                                    <span class="hide-menu">Inventories</span></a>
                                <ul aria-expanded="false"
                                    class="collapse <?php echo e(current_page('inventory-status-sheet') ? 'in' : ''); ?> <?php echo e(current_page('add/inventory') ? 'in' : ''); ?> <?php echo e(current_page('inventory/all') ? 'in' : ''); ?>">

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-inventory')): ?>
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('isSuperAdmin')): ?>
                                        <li class="<?php echo e(current_page('add/inventory') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('add/inventory') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('inventory.add.before')); ?>"><i class="icon-check fa-fw"></i>
                                                 Add Inventory</a> </li>
                                       <?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies('isSuperAdmin')): ?>
                                                 <li class="<?php echo e(current_page('add/inventory') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('add/inventory') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('inventory.add')); ?>"><i class="icon-check fa-fw"></i>
                                                     Add Inventory</a> </li>
                                                 <?php endif; ?>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-inventory')): ?>
                                        <li class="<?php echo e(current_page('inventory/') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('inventory/') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('inventory.all')); ?>"><i class="icon-check fa-fw"></i>
                                                Inventory List</a> </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-inventory')): ?>
                                        <li class="<?php echo e(current_page('inventory-status-sheet') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('inventory-status-sheet') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('inventory.sheet')); ?>"><i class="icon-check fa-fw"></i>
                                                Inventory Status Sheet</a> </li>
                                    <?php endif; ?>

                                </ul>

                            </li>
                        <?php endif; ?>






                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-registration', 'create-membership', 'list-membership', 'approve-membership'])): ?>

                            <li>
                                <a class=" <?php echo e(current_page('adjust-units/all') ? 'active' : ''); ?> <?php echo e(current_page('refund-units') ? 'active' : ''); ?> <?php echo e(current_page('pending-development-charges') ? 'active' : ''); ?> <?php echo e(current_page('add/development-charges') ? 'active' : ''); ?> <?php echo e(current_page('statement/') ? 'active' : ''); ?> <?php echo e(current_page('pending-statement') ? 'active' : ''); ?> <?php echo e(current_page('registrations') ? 'active' : ''); ?> <?php echo e(current_page('memberships') ? 'active' : ''); ?> <?php echo e(current_page('transfer/all') ? 'active' : ''); ?> <?php echo e(current_page('add/statement') ? 'active' : ''); ?>  <?php echo e(current_page('cancel-statements') ? 'active' : ''); ?> <?php echo e(current_page('noc') ? 'active' : ''); ?>  <?php echo e(current_page('block-units/all') ? 'active' : ''); ?> <?php echo e(current_page('list/development-charges') ? 'active' : ''); ?> waves-effect"
                                    href="javascript:void(0);" aria-expanded="false">
                                    <i class="fa fa-caret-right caret-icon"></i>
                                    <i class="glyphicon glyphicon-th-list fa-fw"></i> <span class="hide-menu">
                                        Sales</span></a>
                                <ul aria-expanded="false"
                                    class="collapse <?php echo e(current_page('adjust-units/all') ? 'in' : ''); ?> <?php echo e(current_page('refund-units') ? 'in' : ''); ?> <?php echo e(current_page('pending-development-charges') ? 'in' : ''); ?> <?php echo e(current_page('add/development-charges') ? 'in' : ''); ?> <?php echo e(current_page('statement/') ? 'in' : ''); ?> <?php echo e(current_page('pending-statement') ? 'in' : ''); ?> <?php echo e(current_page('transfer/') ? 'in' : ''); ?> <?php echo e(current_page('memberships') ? 'in' : ''); ?> <?php echo e(current_page('registrations') ? 'in' : ''); ?> <?php echo e(current_page('add/statement') ? 'in' : ''); ?> <?php echo e(current_page('cancel-statements') ? 'in' : ''); ?>  <?php echo e(current_page('noc') ? 'in' : ''); ?>  <?php echo e(current_page('block-units/all') ? 'in' : ''); ?> <?php echo e(current_page('list/development-charges') ? 'in' : ''); ?>">


                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-membership')): ?>
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('isSuperAdmin')): ?>
                                    <li class="<?php echo e(current_page('before-add/statement') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('before-add/statement') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('statement.add.before-admin')); ?>"><i class="icon-check fa-fw"></i>New
                                        Sale</a> </li>

                                    <?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies('isSuperAdmin')): ?>
                                    <li class="<?php echo e(current_page('add/statement') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('add/statement') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('statement.addView')); ?>"><i class="icon-check fa-fw"></i>New
                                        Sale</a> </li>
                                    <?php endif; ?>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-membership')): ?>
                                        <li class="<?php echo e(current_page('statement/') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('statement/') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('statement.all')); ?>"><i class="icon-check fa-fw"></i>
                                                Properties List</a> </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'approve-membership')): ?>
                                        <li class="<?php echo e(current_page('pending-statement') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('pending-statement') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('statement.pending')); ?>"><i class="icon-check fa-fw"></i>
                                                Pending Statements <?php if($pendingStatements > 0): ?>
                                                    <span class="label label-rounded pull-right"
                                                        style="line-height: 1.8;    min-width: 0px;font-size: 14px;padding: 0px 8px;background-color: rgb(204 2 2);"><?php echo e($pendingStatements); ?></span>
                                                <?php endif; ?>
                                            </a>
                                        </li>
                                    <?php endif; ?>



                            
                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-membership')): ?>
                                    

                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-block')): ?>
                                            <li class="<?php echo e(current_page('block-units/all') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('block-units/all') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('property.block.view')); ?>"><i class="icon-check fa-fw"></i>
                                                    Block list<br></a> </li>
                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-membership')): ?>
                                      
                                        <li>

                                            <a class=" waves-effect <?php echo e(current_page('noc') ? 'active' : ''); ?> <?php echo e(current_page('transfer/') ? 'active' : ''); ?>"
                                                href="javascript:void(0);" aria-expanded="false">
                                                <i class="fa fa-caret-right caret-icon"></i>
                                                <i class="fa fa-building-o fa-fw"></i> <span
                                                    class="hide-menu">Unit Transfer  
                                                </span>
                                            </a>
                                            <ul aria-expanded="false"
                                                class="collapse <?php echo e(current_page('noc') ? 'active' : ''); ?> <?php echo e(current_page('transfer/') ? 'active' : ''); ?> ">


                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-membership')): ?>
                                                <li class="<?php echo e(current_page('noc') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('noc') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('noc_req')); ?>">
                                                        <i class="icon-check fa-fw"></i>
                                                        NOC List</a>
                                                </li>
                                                <?php endif; ?>


                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-membership')): ?>
                                                <li class="<?php echo e(current_page('transfer/') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('transfer/') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('transfer.all')); ?>"><i class="icon-check fa-fw"></i> Transfer
                                                    List</a> </li>
                                                    <?php endif; ?>
                                                   


                                                

                                               

                                            </ul>
                                        </li>
                                    <?php endif; ?>
                                            <?php if($app_society): ?>

                                                <li>

                                                    <a class=" <?php echo e(current_page('add/development-charges') ? 'active' : ''); ?> <?php echo e(current_page('add/development-charges') ? 'active' : ''); ?> <?php echo e(current_page('pending-development-charges') ? 'active' : ''); ?> <?php echo e(current_page('list/development-charges') ? 'active' : ''); ?> waves-effect "
                                                        href="javascript:void(0);" aria-expanded="false">
                                                        <i class="fa fa-caret-right caret-icon"></i>
                                                        <i class="fa fa-building-o fa-fw"></i> <span
                                                            class="hide-menu">Development Charges  
                                                        </span>
                                                    </a>
                                                    <ul aria-expanded="false"
                                                        class="collapse <?php echo e(current_page('pending-development-charges') ? 'in' : ''); ?> <?php echo e(current_page('add/development-charges') ? 'in' : ''); ?> <?php echo e(current_page('add/development-charges') ? 'active' : ''); ?>  <?php echo e(current_page('/pending-development-charges') ? 'active' : ''); ?> <?php echo e(current_page('list/development-charges') ? 'in' : ''); ?>">


                                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-membership')): ?>
                                                            <li
                                                                class="<?php echo e(current_page('add/development-charges') ? 'active' : ''); ?>">
                                                                <a class="<?php echo e(current_page('add/development-charges') ? 'active' : ''); ?>"
                                                                    href="<?php echo e(route('statement.addDevelopmentCharges')); ?>"><i
                                                                        class="icon-check fa-fw"></i>Add Charges</a>
                                                            </li>
                                                        <?php endif; ?>





                                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'approve-membership')): ?>
                                                            <li
                                                                class="<?php echo e(current_page('pending-development-charges') ? 'active' : ''); ?>">
                                                                <a class="<?php echo e(current_page('pending-development-charges') ? 'active' : ''); ?>"
                                                                    href="<?php echo e(route('development-charges.pending')); ?>"><i
                                                                        class="icon-check fa-fw"></i> Pending Charges <?php if($pendingDevelopmentCharges > 0): ?>
                                                                        <span class="label label-rounded pull-right"
                                                                            style="line-height: 1.8;    min-width: 0px;font-size: 14px;padding: 0px 8px;background-color: rgb(204 2 2);"><?php echo e($pendingDevelopmentCharges); ?></span>
                                                                    <?php endif; ?>
                                                                </a>
                                                            </li>
                                                        <?php endif; ?>

                                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'edit-membership')): ?>
                                                            <li
                                                                class="<?php echo e(current_page('list/development-charges') ? 'active' : ''); ?>">
                                                                <a class="<?php echo e(current_page('list/development-charges') ? 'active' : ''); ?>"
                                                                    href="<?php echo e(route('development-charges.list')); ?>"><i
                                                                        class="icon-check fa-fw"></i> List Charges

                                                                </a>
                                                            </li>
                                                        <?php endif; ?>


                                                    </ul>
                                                </li>
                                            <?php endif; ?>
                                       



                                        <li>

                                            <a class=" waves-effect  <?php echo e(current_page('refund-units') ? 'active' : ''); ?> <?php echo e(current_page('cancel-statements') ? 'active' : ''); ?> <?php echo e(current_page('cancel-statements') ? 'active' : ''); ?>  <?php echo e(current_page('refund-units') ? 'active' : ''); ?>  <?php echo e(current_page('adjust-units/all') ? 'active' : ''); ?>  "
                                                href="javascript:void(0);" aria-expanded="false">
                                                <i class="fa fa-caret-right caret-icon"></i>
                                                <i class="icon-chart fa-fw"></i> <span
                                                    class="hide-menu">Cancellation</span></a>
                                            <ul aria-expanded="false"
                                                class="collapse <?php echo e(current_page('adjust-units/all') ? 'in' : ''); ?> <?php echo e(current_page('refund-units') ? 'in' : ''); ?> <?php echo e(current_page('cancel-statements') ? 'in' : ''); ?> <?php echo e(current_page('report/generel-ledger') ? 'active' : ''); ?>  <?php echo e(current_page('report/trial-balance') ? 'active' : ''); ?> <?php echo e(current_page('report/balance-sheet') ? 'active' : ''); ?> <?php echo e(current_page('report/profit-loss-statement') ? 'active' : ''); ?> <?php echo e(current_page('report/cash-flow-statement') ? 'active' : ''); ?>  ">


                                                <li class="<?php echo e(current_page('cancel-statements') ? 'active' : ''); ?>"> <a
                                                        class="<?php echo e(current_page('cancel-statements') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('statement.cancel')); ?>"><i
                                                            class="icon-check fa-fw"></i>Cancelled Units</a> </li>

                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-refund')): ?>
                                                    <li class="<?php echo e(current_page('refund-units') ? 'active' : ''); ?> "> <a
                                                            class="<?php echo e(current_page('refund-units') ? 'active' : ''); ?>"
                                                            href="<?php echo e(route('property.refund')); ?>"><i
                                                                class="icon-check fa-fw"></i> Refunded Units<br></a> </li>
                                                <?php endif; ?>
                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-adjust')): ?>
                                                    <li class="<?php echo e(current_page('adjust-units/all') ? 'active' : ''); ?> "> <a
                                                            class="<?php echo e(current_page('adjust-units/all') ? 'active' : ''); ?>"
                                                            href="<?php echo e(route('property.adjust.view')); ?>"><i
                                                                class="icon-check fa-fw"></i>Adjusted Units</a> </li>
                                                <?php endif; ?>

                                            </ul>
                                        </li>
                                    <?php endif; ?>
                                </ul>
                            </li>
                        <?php endif; ?>




                       
                            <?php if($app_society): ?>

                                

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-balloting', 'create-balloting'])): ?>
                                    <li>
                                        <a class=" <?php echo e(current_page('/pre-conditions') ? 'active' : ''); ?> 
                                                  <?php echo e(current_page('balloting/all-map-files') ? 'active' : ''); ?>  <?php echo e(current_page('balloting/pre-condition-list') ? 'active' : ''); ?>  <?php echo e(current_page('balloting/direct') ? 'active' : ''); ?> waves-effect"
                                            href="javascript:void(0);" aria-expanded="false">
                                            <i class="fa fa-caret-right caret-icon"></i>
                                            <i class="fa fa-globe fa-fw"></i>
                                            <span class="hide-menu">Balloting</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('/pre-conditions') ? 'in' : ''); ?> <?php echo e(current_page('balloting/pre-conditions') ? 'in' : ''); ?> <?php echo e(current_page('balloting/all-map-files') ? 'in' : ''); ?> <?php echo e(current_page('balloting/pre-condition-list') ? 'in' : ''); ?> <?php echo e(current_page('balloting/direct') ? 'in' : ''); ?>">

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-balloting')): ?>
                                                <li class="<?php echo e(current_page('/pre-conditions') ? 'active' : ''); ?>"> <a
                                                        class="<?php echo e(current_page('/pre-conditions') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('balloting.start.preconditions')); ?>"><i
                                                            class="icon-check fa-fw"></i> Design Balloting</a> </li>
                                            <?php endif; ?>

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-balloting')): ?>
                                                <li class="<?php echo e(current_page('/all-map-files') ? 'active' : ''); ?>"> <a
                                                        class="<?php echo e(current_page('/all-map-files') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('balloting.map.list')); ?>"><i
                                                            class="icon-check fa-fw"></i> Balloting List</a> </li>
                                            <?php endif; ?>

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-balloting')): ?>
                                                <li class="<?php echo e(current_page('/pre-condition-list') ? 'active' : ''); ?>"> <a
                                                        class="<?php echo e(current_page('/pre-condition-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('balloting.precondition.list')); ?>"><i
                                                            class="icon-check fa-fw"></i> Pre-Condition List</a> </li>
                                            <?php endif; ?>

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-balloting')): ?>
                                                <li class="<?php echo e(current_page('/direct') ? 'active' : ''); ?>"> <a
                                                        class="<?php echo e(current_page('/direct') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('balloting.direct.index')); ?>"><i
                                                            class="icon-check fa-fw"></i> Direct Balloting</a> </li>
                                            <?php endif; ?>

                                        </ul>

                                    </li>
                                <?php endif; ?>
                                

                            <?php endif; ?>
                        



                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['merging-properties', 'merging-properties-requisition',
                            'merging-properties-approval', 'buy-back-requisition', 'buyback-properties',
                            'buy-back-approval', 'buyback-payment'])): ?>
                            <li>
                                <a class=" <?php echo e(current_page('buy-back/add') ? 'active' : ''); ?> <?php echo e(current_page('buy-back/list') ? 'active' : ''); ?> <?php echo e(current_page('buy-back/list-requisition') ? 'active' : ''); ?> <?php echo e(current_page('buy-back/add-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/property-list') ? 'active' : ''); ?>   <?php echo e(current_page('/pending-approval') ? 'active' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/add-requisition') ? 'active' : ''); ?> waves-effect "href="javascript:void(0);"
                                    aria-expanded="false"> 
                                    <i class="fa fa-caret-right caret-icon"></i> 
                                    <i class="icon-home fa-fw"></i><span class="hide-menu"> Merging Property </span></a>
                                    <ul aria-expanded="false"
                                        class="collapse  <?php echo e(current_page('buy-back/add') ? 'in' : ''); ?> <?php echo e(current_page('buy-back/list') ? 'in' : ''); ?>  <?php echo e(current_page('buy-back/list-requisition') ? 'in' : ''); ?> <?php echo e(current_page('buy-back/add-requisition') ? 'in' : ''); ?> <?php echo e(current_page('/property-list') ? 'in' : ''); ?>  <?php echo e(current_page('/pending-approval') ? 'in' : ''); ?> <?php echo e(current_page('/add-requisition') ? 'in' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'in' : ''); ?>">


                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['merging-properties', 'merging-properties-requisition',
                                        'merging-properties-approval'])): ?>

                                        <li>
                                            <a class="<?php echo e(current_page('merging-properties') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false">
                                                <i class="fa fa-caret-right caret-icon"></i> <span class="hide-menu"> Merging
                                                    Forms</span></a>
                                            <ul aria-expanded="false"
                                                class="collapse <?php echo e(current_page('merging-properties') ? 'in' : ''); ?> ">



                                                <li>
                                                    <a class=" <?php echo e(current_page('merging-properties/add-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/pending-approval') ? 'active' : ''); ?>  waves-effect "
                                                        href="javascript:void(0);" aria-expanded="false">
                                                        <i class="fa fa-caret-square-o-down" aria-hidden="true"></i> <span
                                                            class="hide-menu"> Requisition Form</span></a>
                                                    <ul aria-expanded="false"
                                                        class="collapse  <?php echo e(current_page('merging-properties/add-requisition') ? 'in' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'in' : ''); ?> <?php echo e(current_page('/pending-approval') ? 'in' : ''); ?>">

                                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'merging-properties-requisition')): ?>

                                                            <li
                                                                class="<?php echo e(current_page('merging-properties/add-requisition') ? 'active' : ''); ?>">
                                                                <a class="<?php echo e(current_page('merging-properties/add-requisition') ? 'active' : ''); ?>"
                                                                    href="<?php echo e(route('merging.properties.requisition')); ?>"><i
                                                                        class="icon-check fa-fw"></i>Requisition Form Add</a>
                                                            </li>

                                                            <li class="<?php echo e(current_page('/list-requisition') ? 'active' : ''); ?>">
                                                                <a class="<?php echo e(current_page('/list-requisition') ? 'active' : ''); ?>"
                                                                    href="<?php echo e(route('merging.properties.list.requisition')); ?>"><i
                                                                        class="icon-check fa-fw"></i>Requisition Form List</a>
                                                            </li>

                                                        <?php endif; ?>

                                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'merging-properties-approval')): ?>

                                                            <li class="<?php echo e(current_page('/pending-approval') ? 'active' : ''); ?>">
                                                                <a class="<?php echo e(current_page('/pending-approval') ? 'active' : ''); ?>"
                                                                    href="<?php echo e(route('merging.properties.pending.approval')); ?>"><i
                                                                        class="icon-check fa-fw"></i>Pending approval</a>
                                                            </li>

                                                        <?php endif; ?>

                                                    </ul>
                                                </li>

                                                <li>
                                                    <a class="  waves-effect <?php echo e(current_page('merging-properties/list') ? 'active' : ''); ?> <?php echo e(current_page('merging-properties/add') ? 'active' : ''); ?> "
                                                        href="javascript:void(0);" aria-expanded="false">
                                                        <i class="fa fa-caret-square-o-down" aria-hidden="true"></i> <span
                                                            class="hide-menu"> Assessment Form</span></a>
                                                    <ul aria-expanded="false"
                                                        class="collapse <?php echo e(current_page('merging-properties/add') ? 'in' : ''); ?> <?php echo e(current_page('merging-properties/list') ? 'in' : ''); ?>">

                                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'merging-properties')): ?>

                                                            <li
                                                                class="<?php echo e(current_page('merging-properties/add') ? 'active' : ''); ?>">
                                                                <a class="<?php echo e(current_page('merging-properties/add') ? 'active' : ''); ?>"
                                                                    href="<?php echo e(route('merging.properties')); ?>"><i
                                                                        class="icon-check fa-fw"></i>Assesment Form Add</a>
                                                            </li>

                                                            <li
                                                                class="<?php echo e(current_page('merging-properties/list') ? 'active' : ''); ?>">
                                                                <a class="<?php echo e(current_page('merging-properties/list') ? 'active' : ''); ?>"
                                                                    href="<?php echo e(route('merging.properties.list')); ?>"><i
                                                                        class="icon-check fa-fw"></i>Assesment Form List</a>
                                                            </li>

                                                        <?php endif; ?>
                                                </li>
                                            </ul>

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'merging-properties')): ?>

                                            <li class="<?php echo e(current_page('/property-list') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('/property-list') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('merging.property.list')); ?>">Merging Property List</a> </li>

                                        <?php endif; ?>
                                    </ul>

                                </li>

                            <?php endif; ?>
                    

                        </ul>
                        </li>
                    <?php endif; ?>

                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'follow-up')): ?>

                        <li>
                            <a class=" <?php echo e(current_page('/expired') ? 'active' : ''); ?> <?php echo e(current_page('follow-up/upcoming') ? 'active' : ''); ?> <?php echo e(current_page('follow-up') ? 'active' : ''); ?> <?php echo e(current_page('report/account-statement') ? 'active' : ''); ?> <?php echo e(current_page('follow-up/upcoming') ? 'active' : ''); ?>  <?php echo e(current_page('today') ? 'active' : ''); ?>  <?php echo e(current_page('follow-up/expired') ? 'active' : ''); ?> waves-effect"
                                href="javascript:void(0);" aria-expanded="false">
                                <i class="fa fa-caret-right caret-icon"></i>
                                <i class="icon-calender fa-fw"></i> <span class="hide-menu">Follow ups</span></a>
                            <ul aria-expanded="false"
                                class="collapse <?php echo e(current_page('/expired') ? 'in' : ''); ?> <?php echo e(current_page('follow-up/upcoming') ? 'in' : ''); ?> <?php echo e(current_page('today') ? 'in' : ''); ?> <?php echo e(current_page('report/account-statement') ? 'in' : ''); ?>">


                                <li class="<?php echo e(current_page('report/account-statement') ? 'active' : ''); ?> "> <a
                                        class="<?php echo e(current_page('report/account-statement') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('report.account-statement')); ?>"><i class="icon-check fa-fw"></i>
                                        Recovery Account<br>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Statement</a> </li>

                                <li class="<?php echo e(current_page('follow-up/upcoming') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('follow-up/upcoming') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('followup.upcoming')); ?>"><i class="icon-check fa-fw"></i> Up
                                        Coming</a> </li>

                                <li class="<?php echo e(current_page('today') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('today') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('followup.today')); ?>"><i class="icon-check fa-fw"></i> Today</a>
                                </li>

                                <li class="<?php echo e(current_page('/expired') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('/expired') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('followup.expired')); ?>"><i class="icon-check fa-fw"></i>
                                        Expired</a> </li>


                            </ul>

                        </li>

                    <?php endif; ?>


                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['create-receipt', 'list-receipt'])): ?>

                        <li>
                            <a class=" <?php echo e(current_page('token/receipt/pendings') ? 'active' : ''); ?> <?php echo e(current_page('receipt/pendings') ? 'active' : ''); ?> <?php echo e(current_page('refend-token') ? 'active' : ''); ?>    waves-effect"
                                href="javascript:void(0);" aria-expanded="false">
                                <i class="fa fa-caret-right caret-icon"></i>
                                <i class="icon-book-open fa-fw"></i>
                                <span class="hide-menu">Receipts</span></a>
                            <ul aria-expanded="false"
                                class="collapse <?php echo e(current_page('token/receipt/pendings') ? 'in' : ''); ?> <?php echo e(current_page('receipt/pendings') ? 'in' : ''); ?> <?php echo e(current_page('refend-token') ? 'in' : ''); ?> ">

                                <li>
                                    <a class=" waves-effect  <?php echo e(current_page('receipt/downpayment') ? 'active' : ''); ?> <?php echo e(current_page('add/receipt') ? 'active' : ''); ?> <?php echo e(current_page('/add-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'active' : ''); ?>  <?php echo e(current_page('receipt/pendings') ? 'active' : ''); ?>  "
                                        href="javascript:void(0);" aria-expanded="false">
                                        <i class="fa fa-caret-square-o-down" aria-hidden="true"></i> <span
                                            class="hide-menu"> Customer Receipt</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('receipt/downpayment') ? 'in' : ''); ?> <?php echo e(current_page('add/receipt') ? 'in' : ''); ?> <?php echo e(current_page('/add-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'active' : ''); ?> <?php echo e(current_page('receipt/pendings') ? 'in' : ''); ?>">

                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-receipt')): ?>
                                            <li class="<?php echo e(current_page('add/receipt') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('add/receipt') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('receipt.addView')); ?>"><i class="icon-check fa-fw"></i>
                                                    Add Customer Receipt </a> </li>
                                        <?php endif; ?>

                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-receipt')): ?>

                                            <li class="<?php echo e(current_page('receipt/downpayment') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('receipt/downpayment') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('receipt.downpayment.all')); ?>"><i
                                                        class="icon-check fa-fw"></i>Customer Receipt List</a> </li>

                                        <?php endif; ?>

                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'approve-receipt')): ?>
                                            <li class="<?php echo e(current_page('receipt/pendings') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('receipt/pendings') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('receipt.pending')); ?>"><i
                                                        class="icon-check fa-fw"></i>Pending Receipts <?php if($pendingReceipts > 0): ?>
                                                        <span class="label label-rounded pull-right"
                                                            style=" line-height: 1.8;   min-width: 0px;font-size: 14px;padding: 0px 8px;background-color: rgb(204 2 2);"><?php echo e($pendingReceipts); ?></span>
                                                    <?php endif; ?>
                                                </a>
                                            </li>
                                        <?php endif; ?>
                                    </ul>
                                </li>
                               
                                    <?php if($app_society): ?>
                                        <li>
                                            <a class=" waves-effect <?php echo e(current_page('add/dealer-receipt') ? 'active' : ''); ?> <?php echo e(current_page('receipt/package-pendings') ? 'active' : ''); ?> <?php echo e(current_page('receipt/dealer/package-approved') ? 'active' : ''); ?>  <?php echo e(current_page('/add-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'active' : ''); ?>    "
                                                href="javascript:void(0);" aria-expanded="false">
                                                <i class="fa fa-caret-square-o-down" aria-hidden="true"></i> <span
                                                    class="hide-menu"> Dealer Package Receipt</span></a>
                                            <ul aria-expanded="false"
                                                class="collapse <?php echo e(current_page('add/dealer-receipt') ? 'in' : ''); ?> <?php echo e(current_page('receipt/package-pendings') ? 'in' : ''); ?> <?php echo e(current_page('receipt/dealer/package-approved') ? 'in' : ''); ?>   <?php echo e(current_page('/add-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'active' : ''); ?>">


                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-receipt')): ?>
                                                    <li class="<?php echo e(current_page('add/dealer-receipt') ? 'active' : ''); ?>"> <a
                                                            class="<?php echo e(current_page('add/dealer-receipt') ? 'active' : ''); ?>"
                                                            href="<?php echo e(route('receipt.addView.dealerproperty')); ?>"><i
                                                                class="icon-check fa-fw"></i> Add Dealer Receipt </a> </li>
                                                <?php endif; ?>

                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-receipt')): ?>
                                                    <li
                                                        class="<?php echo e(current_page('receipt/dealer/package-approved') ? 'active' : ''); ?>">
                                                        <a class="<?php echo e(current_page('receipt/dealer/package-approved') ? 'active' : ''); ?>"
                                                            href="<?php echo e(route('receipt.package-approved.get')); ?>"><i
                                                                class="icon-check fa-fw"></i>Dealer Receipt List</a>
                                                    </li>
                                                <?php endif; ?>

                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'approve-receipt')): ?>
                                                    <li
                                                        class="<?php echo e(current_page('receipt/package-pendings') ? 'active' : ''); ?>">
                                                        <a class="<?php echo e(current_page('receipt/package-pendings') ? 'active' : ''); ?>"
                                                            href="<?php echo e(route('receipt.package.pending')); ?>"><i
                                                                class="icon-check fa-fw"></i>Pending Dealer Receipts
                                                            <?php if($pendingPackageReceipt > 0): ?>
                                                                <span class="label label-rounded pull-right"
                                                                    style="margin-top: -29px; line-height: 1.8;   min-width: 0px;font-size: 14px;padding: 0px 8px;background-color: rgb(204 2 2);"><?php echo e($pendingPackageReceipt); ?></span>
                                                            <?php endif; ?>

                                                        </a>
                                                    </li>
                                                <?php endif; ?>
                                            </ul>
                                        </li>
                                    <?php endif; ?>
                                

                                <li>
                                    <a class=" waves-effect <?php echo e(current_page('receipt-add/transfer') ? 'active' : ''); ?>  <?php echo e(current_page('receipt/transfer') ? 'active' : ''); ?>   <?php echo e(current_page('receipt/cheaque/cancel') ? 'active' : ''); ?> <?php echo e(current_page('receipt/company/tax') ? 'active' : ''); ?> <?php echo e(current_page('receipt/customer/tax') ? 'active' : ''); ?> <?php echo e(current_page('receipt/surcharge') ? 'active' : ''); ?>  <?php echo e(current_page('/add-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'active' : ''); ?>    "
                                        href="javascript:void(0);" aria-expanded="false">
                                        <i class="fa fa-caret-square-o-down" aria-hidden="true"></i> <span
                                            class="hide-menu">
                                            Other Receipts</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('receipt/cheaque/cancel') ? 'in' : ''); ?> <?php echo e(current_page('receipt/company/tax') ? 'in' : ''); ?> <?php echo e(current_page('receipt/customer/tax') ? 'in' : ''); ?> <?php echo e(current_page('receipt/surcharge') ? 'in' : ''); ?> <?php echo e(current_page('/add-requisition') ? 'active' : ''); ?> <?php echo e(current_page('/list-requisition') ? 'active' : ''); ?>">


                                        <li class="<?php echo e(current_page('receipt/surcharge') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('receipt/surcharge') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('receipt.surcharge')); ?>"><i
                                                    class="icon-check fa-fw"></i>Surcharge Receipts</a> </li>


                                        <li class="<?php echo e(current_page('receipt/customer/tax') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('receipt/customer/tax') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('receipt.customer.tax.all')); ?>"><i
                                                    class="icon-check fa-fw"></i>Customer Tax Receipts</a> </li>

                                        <li class="<?php echo e(current_page('receipt/company/tax') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('receipt/company/tax') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('receipt.company.tax.all')); ?>"><i
                                                    class="icon-check fa-fw"></i>Company Tax Receipts</a> </li>

                                        <li class="<?php echo e(current_page('receipt/transfer') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('receipt/transfer') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('transfer.receipt')); ?>"><i
                                                    class="icon-check fa-fw"></i>Transfer Receipts</a> </li>

                                                  
                                                    <li class="<?php echo e(current_page('receipt/cheaque/cancel') ? 'active' : ''); ?>"> <a
                                                        class="<?php echo e(current_page('receipt/cheaque/cancel') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('receipt.cancel.cheaque')); ?>"><i
                                                            class="icon-check fa-fw"></i>Cancel Cheaque Receipts</a> </li>
                                    </ul>
                                </li>








                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['create-receipt', 'list-receipt'])): ?>


                                    <li>
                                        <a class=" waves-effect <?php echo e(current_page('receipt/refund-unit') ? 'active' : ''); ?>   <?php echo e(current_page('receipt/refund-pendings') ? 'in' : ''); ?> <?php echo e(current_page('receipt/refund-openfile') ? 'active' : ''); ?> "
                                            href="javascript:void(0);" aria-expanded="false">
                                            <i class="fa fa-caret-square-o-down" aria-hidden="true"></i> <span
                                                class="hide-menu">
                                                Unit Refund Receipts</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('receipt/refund-unit') ? 'in' : ''); ?>  <?php echo e(current_page('receipt/refund-pendings') ? 'in' : ''); ?>  <?php echo e(current_page('receipt/refund-openfile') ? 'active' : ''); ?>">



                                            <li class="<?php echo e(current_page('receipt/refund-unit') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('receipt/refund-unit') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('property.refund.receipt')); ?>"><i
                                                        class="icon-check fa-fw"></i>Add Close File Receipts</a> </li>
                                            <?php if($app_society): ?>
                                                <li class="<?php echo e(current_page('receipt/refund-openfile') ? 'active' : ''); ?>"> <a
                                                        class="<?php echo e(current_page('receipt/refund-openfile') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('property.refund-openfile.receipt')); ?>"><i
                                                            class="icon-check fa-fw"></i>Add Open File Receipts</a> </li>
                                            <?php endif; ?>
                                            <li class="<?php echo e(current_page('receipt/refund-pendings') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('receipt/refund-pendings') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('receipt.refund.pending')); ?>"><i
                                                        class="icon-check fa-fw"></i>Pending Receipts</a> </li>

                                                        <li class="<?php echo e(current_page('refund-receipt/list') ? 'active' : ''); ?>"> <a
                                                            class="<?php echo e(current_page('refund-receipt/list') ? 'active' : ''); ?>"
                                                            href="<?php echo e(route('receipt.refund.list')); ?>"><i
                                                                class="icon-check fa-fw"></i>Receipt List</a> </li>
                                        </ul>
                                    </li>

                                    <li>
                                        <a class=" waves-effect <?php echo e(current_page('receipt/cancel-unit') ? 'active' : ''); ?> <?php echo e(current_page('receipt/cancel-openfile') ? 'active' : ''); ?>   <?php echo e(current_page('receipt/cancel-pendings') ? 'in' : ''); ?> <?php echo e(current_page('cancel-receipt/list') ? 'active' : ''); ?> "
                                            href="javascript:void(0);" aria-expanded="false">
                                            <i class="fa fa-caret-square-o-down" aria-hidden="true"></i> <span
                                                class="hide-menu">
                                                Unit Cancel Receipts</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('receipt/cancel-unit') ? 'in' : ''); ?>  <?php echo e(current_page('receipt/cancel-openfile') ? 'in' : ''); ?>  <?php echo e(current_page('receipt/cancel-pendings') ? 'in' : ''); ?>  <?php echo e(current_page('cancel-receipt/list') ? 'active' : ''); ?>">



                                            <li class="<?php echo e(current_page('receipt/cancel-unit') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('receipt/cancel-unit') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('property.cancel.receipt')); ?>"><i
                                                        class="icon-check fa-fw"></i>Add Close File Receipts</a> </li>
                                            <?php if($app_society): ?>
                                                <li class="<?php echo e(current_page('receipt/cancel-openfile') ? 'active' : ''); ?>"> <a
                                                        class="<?php echo e(current_page('receipt/cancel-openfile') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('property.cancel-openfile.receipt')); ?>"><i
                                                            class="icon-check fa-fw"></i>Add Open File Receipts</a> </li>
                                            <?php endif; ?>
                                            <li class="<?php echo e(current_page('receipt/cancel-pendings') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('receipt/cancel-pendings') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('receipt.cancel.pending')); ?>"><i
                                                        class="icon-check fa-fw"></i>Pending Receipts</a> </li>

                                                        <li class="<?php echo e(current_page('cancel-receipt/list') ? 'active' : ''); ?>"> <a
                                                            class="<?php echo e(current_page('cancel-receipt/list') ? 'active' : ''); ?>"
                                                            href="<?php echo e(route('receipt.cancel.list')); ?>"><i
                                                                class="icon-check fa-fw"></i>Receipt List</a> </li>
                                        </ul>
                                    </li>



                                    <li>
                                        <a class="   <?php echo e(current_page('token/receipt/pendings') ? 'active' : ''); ?> <?php echo e(current_page('refend-token') ? 'active' : ''); ?> <?php echo e(current_page('token/receipt/all') ? 'active' : ''); ?> <?php echo e(current_page('add/token/receipt') ? 'active' : ''); ?>  waves-effect"
                                            href="javascript:void(0);" aria-expanded="false">
                                            <i class="fa fa-caret-square-o-down" aria-hidden="true"></i>
                                            <span class="hide-menu">Token Receipts</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('token/receipt/pendings') ? 'in' : ''); ?> <?php echo e(current_page('refend-token') ? 'in' : ''); ?> <?php echo e(current_page('token/receipt/all') ? 'in' : ''); ?> <?php echo e(current_page('add/token/receipt') ? 'in' : ''); ?> <?php echo e(current_page('token.receipt.addView') ? 'in' : ''); ?> ">

                                            <li class="<?php echo e(current_page('add/token/receipt') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('add/token/receipt') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('token.receipt.addView')); ?>"><i
                                                        class="icon-check fa-fw"></i> Add
                                                    Token Receipts</a> </li>


                                            <li class="<?php echo e(current_page('token/receipt/all') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('token/receipt/all') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('token.receipt.all')); ?>"><i
                                                        class="icon-check fa-fw"></i>List
                                                    Token Receipt</a> </li>

                                            <li class="<?php echo e(current_page('refend-token') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('refend-token') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('refend.token')); ?>"><i
                                                        class="icon-check fa-fw"></i>Refund Token
                                                    Receipt</a> </li>

                                            <li class="<?php echo e(current_page('token/receipt/pendings') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('token/receipt/pendings') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('token.receipt.pending')); ?>"><i
                                                        class="icon-check fa-fw"></i>Pending Token Receipt</a> </li>

                                        </ul>

                                    </li>

                                <?php endif; ?>

                            </ul>

                        </li>
                    <?php endif; ?>



                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-dealer', 'create-dealer', 'list-dealer-rebate'])): ?>
                        <li>
                            <a class=" <?php echo e(current_page('add/dealer') ? 'active' : ''); ?> <?php echo e(current_page('dealer/all') ? 'active' : ''); ?> <?php echo e(current_page('issue/open-file') ? 'active' : ''); ?> <?php echo e(current_page('pending/open-file/all-packages') ? 'active' : ''); ?> <?php echo e(current_page('dealer-rebate/all') ? 'active' : ''); ?> <?php echo e(current_page('dealer-package-rebate/all') ? 'active' : ''); ?> waves-effect"
                                href="javascript:void(0);" aria-expanded="false">
                                <i class="fa fa-caret-right caret-icon"></i>
                                <i class="icon-user-follow fa-fw"></i> <span class="hide-menu">Dealers <?php if($app_society): ?>
                                        <?php if($pendingPackage > 0): ?>
                                            <i class="fa fa-circle pull-right" aria-hidden="true"
                                                style="line-height: 1.8;    min-width: 0px;font-size: 14px;padding: 0px 8px; color: rgb(204 2 2);"></i>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </span>
                            </a>
                            <ul aria-expanded="false"
                                class="collapse  <?php echo e(current_page('add/dealer') ? 'in' : ''); ?> <?php echo e(current_page('dealer/all') ? 'in' : ''); ?> <?php echo e(current_page('issue/open-file') ? 'in' : ''); ?> <?php echo e(current_page('pending/open-file/all-packages') ? 'in' : ''); ?> <?php echo e(current_page('dealer-rebate/all') ? 'in' : ''); ?>  <?php echo e(current_page('dealer-package-rebate/all') ? 'in' : ''); ?>">
                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'create-dealer')): ?>
                                    <li class="<?php echo e(current_page('add/dealer') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('add/dealer') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('dealer.addView')); ?>"><i class="icon-check fa-fw"></i> Add Dealer</a> </li>
                                <?php endif; ?>
                                
                                    <?php if($app_society): ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-openfile')): ?>
                                            <li class="<?php echo e(current_page('issue/open-file') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('issue/open-file') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('openfile.view')); ?>"><i
                                                        class="icon-check fa-fw"></i>Issue Open File/Form</a> </li>
                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'approve-openfile-package')): ?>
                                            <li class="<?php echo e(current_page('pending/open-file/all-packages') ? 'active' : ''); ?>">
                                                <a class="<?php echo e(current_page('pending/open-file/all-packages') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('openfile.pending.package')); ?>"><i
                                                        class="icon-check fa-fw"></i> Pending Packages <?php if($pendingPackage > 0): ?>
                                                        <span class="label label-rounded pull-right"
                                                            style="line-height: 1.8;    min-width: 0px;font-size: 14px;padding: 0px 8px;background-color: rgb(204 2 2);"><?php echo e($pendingPackage); ?></span>
                                                    <?php endif; ?> </a>
                                            </li>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-dealer')): ?>

                                    <li class="<?php echo e(current_page('dealer/all') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('dealer/all') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('dealer.all')); ?>"><i class="icon-check fa-fw"></i> Dealer
                                            List</a> </li>
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-dealer-rebate')): ?>
                                    <li class="<?php echo e(current_page('dealer-rebate/all') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('dealer-rebate/all') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('rebate.all')); ?>"><i class="icon-check fa-fw"></i> Dealer
                                            Inventory Rebates</a> </li>
                                <?php endif; ?>
                               
                                    <?php if($app_society): ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-dealer-rebate')): ?>
                                            <li class="<?php echo e(current_page('dealer-package-rebate/all') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('dealer-package-rebate/all') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('rebate.package.all')); ?>"><i
                                                        class="icon-check fa-fw"></i> Dealer Package Rebates</a> </li>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                

                            </ul>

                        </li>
                    <?php endif; ?>



                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['manage-account-dashboard', 'list-chart-of-account', 'list-voucher',
                        'manage-customer-voucher', 'manage-vendor-voucher', 'manage-dealer-voucher',
                        'manage-employee-voucher', 'manage-reconciliation', 'list-bank-account', 'hrm',
                        'list-customer-adjustment', 'fixed-assets'])): ?>
                        <li>
                            <a class=" waves-effect <?php echo e(current_page('bank-account/all') ? 'active' : ''); ?> <?php echo e(current_page('reconciliations') ? 'active' : ''); ?>

        <?php echo e(current_page('adjustment') ? 'active' : ''); ?>

        <?php echo e(current_page('chart-of-account') ? 'active' : ''); ?> <?php echo e(current_page('general-journal-entries') ? 'active' : ''); ?> <?php echo e(current_page('customer-vouchers') ? 'active' : ''); ?>

        <?php echo e(current_page('vendor-vouchers') ? 'active' : ''); ?> 
        <?php echo e(current_page('accounts/fixed-assets') ? 'active' : ''); ?> <?php echo e(current_page('dealer-vouchers') ? 'active' : ''); ?> <?php echo e(current_page('employee-vouchers') ? 'active' : ''); ?>

        <?php echo e(current_page('account-dashboard') ? 'active' : ''); ?> "
                                href="javascript:void(0);" aria-expanded="false"> 
                                <i class="fa fa-caret-right caret-icon"></i> <i class="icon-chart fa-fw"></i> <span
                                    class="hide-menu"> Accounts</span></a>

                            <ul aria-expanded="false"
                                class="collapse  <?php echo e(current_page('bank-account/all') ? 'in' : ''); ?>

        <?php echo e(current_page('customer-vouchers') ? 'in' : ''); ?>

        <?php echo e(current_page('vendor-vouchers') ? 'in' : ''); ?>

        <?php echo e(current_page('accounts/fixed-assets') ? 'in' : ''); ?>

        <?php echo e(current_page('dealer-vouchers') ? 'in' : ''); ?>

        <?php echo e(current_page('employee-vouchers') ? 'in' : ''); ?>

        <?php echo e(current_page('reconciliations') ? 'in' : ''); ?>

        <?php echo e(current_page('adjustment') ? 'in' : ''); ?><?php echo e(current_page('chart-of-account') ? 'in' : ''); ?> <?php echo e(current_page('general-journal-entries') ? 'in' : ''); ?> 
        <?php echo e(current_page('account-dashboard') ? 'in' : ''); ?> ">

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'manage-account-dashboard')): ?>
                                    <li class="<?php echo e(current_page('account-dashboard') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('account-dashboard') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('account-dashboard')); ?>"><i class="icon-check fa-fw"></i>
                                            Dashboard</a> </li>
                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-voucher')): ?>
                                    <li class="<?php echo e(current_page('general-journal-entries') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('general-journal-entries') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('entry.all')); ?>"><i class="icon-check fa-fw"></i> General Journal
                                            Entries</a> </li>
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'manage-customer-voucher')): ?>
                                    <li class="<?php echo e(current_page('customer-vouchers') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('customer-vouchers') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('customer-vouchers')); ?>"><i class="icon-check fa-fw"></i>
                                            Customer</a> </li>
                                <?php endif; ?>



                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'manage-vendor-voucher')): ?>
                                    <li class="<?php echo e(current_page('vendor-vouchers') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('vendor-vouchers') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('vendor-vouchers')); ?>"><i class="icon-check fa-fw"></i>
                                            Vendor</a> </li>
                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'fixed-assets')): ?>

                                    <li class="<?php echo e(current_page('accounts/fixed-assets') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('fixed-assets') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('fixed.assets.accounts')); ?>"><i class="icon-check fa-fw"></i>
                                            Fixed Asset</a> </li>

                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'manage-dealer-voucher')): ?>

                                    <li class="<?php echo e(current_page('dealer-vouchers') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('dealer-vouchers') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('dealer-vouchers')); ?>"><i class="icon-check fa-fw"></i>
                                            Dealer</a> </li>

                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'manage-employee-voucher')): ?>

                                    <li class="<?php echo e(current_page('employee-vouchers') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('employee-vouchers') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('employee-vouchers')); ?>"><i class="icon-check fa-fw"></i>
                                            Employee</a> </li>
                                <?php endif; ?>





                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'manage-reconciliation')): ?>

                                    <li class="<?php echo e(current_page('reconciliatons') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('reconciliations') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('reconcile.all')); ?>"><i class="icon-check fa-fw"></i>
                                            Reconciliations</a> </li>

                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-customer-adjustment')): ?>
                                    <li class="<?php echo e(current_page('adjustment') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('adjustment') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('adjustment.all')); ?>"><i class="icon-check fa-fw"></i> Customer
                                            Adjustments</a> </li>
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-bank-account')): ?>
                                    <li class="<?php echo e(current_page('bank-account/all') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('bank-account/all') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('bank.all')); ?>"><i class="icon-check fa-fw"></i>Bank Accounts</a>
                                    </li>
                                <?php endif; ?>


                            </ul>

                        </li>
                    <?php endif; ?>


                    <!-- <li >
        <a class=" waves-effect  <?php echo e(current_page('expense') ? 'active' : ''); ?> <?php echo e(current_page('payment') ? 'active' : ''); ?>  <?php echo e(current_page('vendor') ? 'active' : ''); ?>" href="javascript:void(0);" aria-expanded="false">
        <i class="fa fa-caret-right caret-icon"></i>
        <i class="icon-grid fa-fw"></i> <span class="hide-menu"> Expense</span></a>
        <ul aria-expanded="false" class="collapse  <?php echo e(current_page('expense') ? 'in' : ''); ?> <?php echo e(current_page('payment') ? 'in' : ''); ?> <?php echo e(current_page('vendor') ? 'in' : ''); ?>">


        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-expense')): ?>
                        <li class="<?php echo e(current_page('expense') ? 'active' : ''); ?>"> <a class="<?php echo e(current_page('expense') ? 'active' : ''); ?>" href="<?php echo e(route('expense.all')); ?>"><i class="icon-check fa-fw"></i> Bills</a> </li>
        <?php endif; ?>
        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-expense')): ?>
                        <li class="<?php echo e(current_page('payment') ? 'active' : ''); ?>"> <a class="<?php echo e(current_page('payment') ? 'active' : ''); ?>" href="<?php echo e(route('payment.all')); ?>"><i class="icon-check fa-fw"></i> Payments</a> </li>
        <?php endif; ?>




        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-dealer-rebate')): ?>
                        <li class="<?php echo e(current_page('dealer-rebate') ? 'active' : ''); ?>"> <a class="<?php echo e(current_page('dealer-rebate') ? 'active' : ''); ?>" href="<?php echo e(route('rebate.all')); ?>"><i class="icon-check fa-fw"></i> Dealer Rebates</a> </li>
        <?php endif; ?>

        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-vendor')): ?>
                        <li class="<?php echo e(current_page('vendor') ? 'active' : ''); ?>"> <a class="<?php echo e(current_page('vendor') ? 'active' : ''); ?>" href="<?php echo e(route('vendor1.all')); ?>"><i class="icon-check fa-fw"></i> Vendors</a> </li>
        <?php endif; ?>

        </ul>

        </li> -->




                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-department', 'list-item', 'list-item-category', 'list-purchase-request',
                        'view-vendor', 'create-item-manufacture', 'view-vendor', 'store-keeper',
                        'manage-procurement-dashboard', 'mir'])): ?>

                        <li>
                            <a class=" class= <?php echo e(current_page('cs-approval-pending/1') ? 'active' : ''); ?> <?php echo e(current_page('pr-approval-pending/1') ? 'active' : ''); ?> <?php echo e(current_page('material-issue-request/list') ? 'active' : ''); ?> <?php echo e(current_page('work-order/list') ? 'active' : ''); ?> <?php echo e(current_page('work-order/create') ? 'active' : ''); ?> <?php echo e(current_page('vendors/vendor-list') ? 'active' : ''); ?> <?php echo e(current_page('vendors/add-vendor') ? 'active' : ''); ?> <?php echo e(current_page('store-keeper/purchase-order') ? 'active' : ''); ?> <?php echo e(current_page('store-keeper/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('categories/category-list') ? 'active' : ''); ?> <?php echo e(current_page('dashboard/1') ? 'active' : ''); ?> <?php echo e(current_page('purchase-requests') ? 'active' : ''); ?> 
        <?php echo e(current_page('item-manufacture') ? 'active' : ''); ?> 
        <?php echo e(current_page('categories/add-category') ? 'active' : ''); ?> 
        <?php echo e(current_page('department') ? 'active' : ''); ?>

        <?php echo e(current_page('request-for-quotations') ? 'active' : ''); ?> <?php echo e(current_page('comparative-statements') ? 'active' : ''); ?> <?php echo e(current_page('purchase-orders') ? 'active' : ''); ?> <?php echo e(current_page('purchase-order-receipts') ? 'active' : ''); ?>  waves-effect"
                                href="javascript:void(0);" aria-expanded="false">
                                <i class="fa fa-caret-right caret-icon"></i>
                                <i class="icon-notebook fa-fw"></i>
                                <span class="hide-menu">Procurement</span></a>
                            <ul aria-expanded="false"
                                class="collapse <?php echo e(current_page('dashboard/1') ? 'in' : ''); ?>

        <?php echo e(current_page('cs-approval-pending/1') ? 'in' : ''); ?>

        <?php echo e(current_page('pr-approval-pending/1') ? 'in' : ''); ?>

        <?php echo e(current_page('material-issue-request/list') ? 'in' : ''); ?>

        <?php echo e(current_page('work-order/create') ? 'in' : ''); ?>

        <?php echo e(current_page('work-order/list') ? 'in' : ''); ?>

        <?php echo e(current_page('vendors/vendor-list') ? 'in' : ''); ?>

        <?php echo e(current_page('vendors/add-vendor') ? 'in' : ''); ?>

        <?php echo e(current_page('store-keeper/purchase-order') ? 'in' : ''); ?>

        <?php echo e(current_page('categories/category-list') ? 'in' : ''); ?>

        <?php echo e(current_page('store-keeper/dashboard') ? 'in' : ''); ?>

        <?php echo e(current_page('items') ? 'in' : ''); ?>

        <?php echo e(current_page('categories/category-list') ? 'active' : ''); ?>

        <?php echo e(current_page('categories/add-category') ? 'in' : ''); ?>

        <?php echo e(current_page('department') ? 'in' : ''); ?>

        <?php echo e(current_page('item-manufacture') ? 'active' : ''); ?> 
        <?php echo e(current_page('purchase-requests') ? 'in' : ''); ?>  <?php echo e(current_page('request-for-quotations') ? 'in' : ''); ?> <?php echo e(current_page('comparative-statements') ? 'in' : ''); ?> 
        <?php echo e(current_page('purchase-orders') ? 'in' : ''); ?> <?php echo e(current_page('purchase-order-receipts') ? 'in' : ''); ?>">
                                <?php
                                    $user = \App\User::with('role')->find(Auth::user()->id);
                                ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['manage-procurement-dashboard'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('dashboard/1') ? 'active' : ''); ?>  waves-effect"
                                            href="<?php echo e(route('dashboard1', [$user->role->role_id])); ?>"
                                            aria-expanded="false"><i class="fa fa-building-o"></i> <span class="hide-menu"
                                                style="margin-left: 20px;"> Dashboard </span></>

                                    </li>

                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('role', 'admin')): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('procurement-dashboard') ? 'active' : ''); ?> waves-effect"
                                            href="<?php echo e(route('dashboard1', [$user->role->role_id])); ?>"
                                            aria-expanded="false"><i class="fa fa-building-o"></i> <span class="hide-menu"
                                                style="margin-left: 20px;"> Dashboard </span></a>

                                    </li>

                                <?php endif; ?>




                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-department', 'create-department'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('department') ? 'active' : ''); ?>  waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">Department</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('department') ? 'in' : ''); ?> ">

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['create-department'])): ?>
                                                <li class="<?php echo e(current_page('departments/add-department') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('departments/add-department') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('department.add')); ?>" class="  waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> Add </span></a>

                                                </li>
                                            <?php endif; ?>



                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-department'])): ?>
                                                <li class="<?php echo e(current_page('departments/department-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('departments/department-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('department.list')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> List </span></a>

                                                </li>
                                            <?php endif; ?>

                                        </ul>

                                    </li>


                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-item-category', 'create-item-category'])): ?>

                                    <li>
                                        <a class=" <?php echo e(current_page('categories/add-category') ? 'active' : ''); ?> <?php echo e(current_page('categories/category-list') ? 'active' : ''); ?>   waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">Category</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('categories/add-category') ? 'in' : ''); ?> <?php echo e(current_page('categories/category-list') ? 'in' : ''); ?> ">

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['create-item-category'])): ?>
                                                <li class="<?php echo e(current_page('categories/add-category') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('categories/add-category') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('category.add')); ?>" class="waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;">
                                                            Add
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>



                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-item-category'])): ?>
                                                <li class="<?php echo e(current_page('categories/category-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('categories/category-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('category.list')); ?>" class="waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;">
                                                            List
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>


                                        </ul>

                                    </li>


                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['create-item-manufacture', 'item-manufacture'])): ?>

                                    <li>
                                        <a class=" <?php echo e(current_page('items/create-manufacture') ? 'active' : ''); ?> <?php echo e(current_page('item-manufacture') ? 'active' : ''); ?>  waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">Items
                                                manufacture</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('items/create-manufacture') ? 'in' : ''); ?> <?php echo e(current_page('item-manufacture') ? 'in' : ''); ?> ">


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['create-item-manufacture'])): ?>
                                                <li class="<?php echo e(current_page('items/create-manufacture') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/create-manufacture') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('create.manufacture')); ?>" class="waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;">
                                                            Add
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['item-manufacture'])): ?>
                                                <li class="<?php echo e(current_page('items/item-manufacture-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/item-manufacture-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.manufacture.list')); ?>" class="waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;">
                                                            List
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>


                                        </ul>

                                    </li>

                                <?php endif; ?>



                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['store-keeper'])): ?>

                                    <li>
                                        <a class=" <?php echo e(current_page('items/aging-report') ? 'active' : ''); ?> <?php echo e(current_page('items/returning-list') ? 'active' : ''); ?> <?php echo e(current_page('items/releasing-list') ? 'active' : ''); ?>  <?php echo e(current_page('store-keeper/purchase-order') ? 'active' : ''); ?>  <?php echo e(current_page('store-keeper/dashboard') ? 'active' : ''); ?>  waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">Store
                                                Keeper</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('items/aging-report') ? 'in' : ''); ?> <?php echo e(current_page('items/returning-list') ? 'in' : ''); ?> <?php echo e(current_page('items/releasing-list') ? 'in' : ''); ?>  <?php echo e(current_page('store-keeper/purchase-order') ? 'in' : ''); ?>  <?php echo e(current_page('store-keeper/dashboard') ? 'in' : ''); ?>">


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['store-keeper'])): ?>
                                                <li class="<?php echo e(current_page('store-keeper/dashboard') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('store-keeper/dashboard') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('manage.store.keeper.dashboard')); ?>" class="waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;">
                                                            Dashboard
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['store-keeper'])): ?>
                                                <li class="<?php echo e(current_page('store-keeper/purchase-order') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('store-keeper/purchase-order') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('store.keeper.purchase.order')); ?>" class="waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;">
                                                            Purchase Order
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>



                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['store-keeper-view-item-list'])): ?>
                                                <li class="<?php echo e(current_page('items/item-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/item-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.list')); ?>" class="waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;">
                                                            Inventory List
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-item', 'create-item', 'releasing-item-view'])): ?>
                                                <li class="<?php echo e(current_page('items/releasing-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/releasing-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.releasing-list')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;">Inventory Releasings </span></a>

                                                </li>
                                            <?php endif; ?>



                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-item', 'create-item', 'returning-item-view'])): ?>
                                                <li class="<?php echo e(current_page('items/returning-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/returning-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.returning-list')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;">Inventory Returnings </span></a>
                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-item', 'create-item', 'item-aging-report'])): ?>
                                                <li class="<?php echo e(current_page('items/aging-report') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/aging-report') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.aging-report')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> Inventory Aging Report </span></a>
                                                </li>
                                            <?php endif; ?>



                                        </ul>

                                    </li>

                                <?php endif; ?>



                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['item-unit'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('item-unit') ? 'active' : ''); ?> <?php echo e(current_page('items/create-unit') ? 'active' : ''); ?> <?php echo e(current_page('items/unit-list') ? 'active' : ''); ?> waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">Item
                                                units</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('item-unit') ? 'in' : ''); ?> <?php echo e(current_page('items/create-unit') ? 'in' : ''); ?> <?php echo e(current_page('items/unit-list') ? 'in' : ''); ?>">

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['item-unit'])): ?>
                                                <li class="<?php echo e(current_page('items/create-unit') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/create-unit') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('create.item.unit')); ?>" class="  waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> Add </span></a>

                                                </li>
                                            <?php endif; ?>



                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['item-unit'])): ?>
                                                <li class="<?php echo e(current_page('items/unit-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/unit-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.unit.list')); ?>" class="  waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> List </span></a>
                                                </li>
                                            <?php endif; ?>

                                        </ul>

                                    </li>

                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-vendor'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('vendors/add-vendor') ? 'active' : ''); ?> <?php echo e(current_page('vendors/vendor-list') ? 'active' : ''); ?> waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">vendor</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('vendors/add-vendor') ? 'in' : ''); ?> <?php echo e(current_page('vendors/vendor-list') ? 'in' : ''); ?> ">

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-vendor'])): ?>
                                                <li class="<?php echo e(current_page('vendors/add-vendor') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('vendors/add-vendor') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('vendor.add')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false">
                                                        <i class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;">
                                                            Add
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-vendor'])): ?>
                                                <li class="<?php echo e(current_page('vendors/vendor-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('vendors/vendor-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('vendor.list')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i>
                                                        <span class="hide-menu" style="margin-left: 20px;"> List
                                                        </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>
                                        </ul>
                                    </li>
                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-item'])): ?>
                                    <li>
                                        <a class=" <?php echo e(current_page('items/add-item') ? 'active' : ''); ?> <?php echo e(current_page('items/item-list') ? 'active' : ''); ?> <?php echo e(current_page('items/variance-report') ? 'active' : ''); ?> waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span
                                                class="hide-menu">Inventory</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('items/add-item') ? 'in' : ''); ?> <?php echo e(current_page('items/item-list') ? 'in' : ''); ?> <?php echo e(current_page('items/variance-report') ? 'in' : ''); ?>">


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-item', 'create-item', 'releasing-item-view'])): ?>
                                                <li class="<?php echo e(current_page('items/add-item') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/add-item') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.add')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> Add </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>




                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-item', 'create-item', 'releasing-item-view'])): ?>
                                                <li class="<?php echo e(current_page('items/item-list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/item-list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.list')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> List </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-item', 'create-item', 'item-variance-report'])): ?>
                                                <li class="<?php echo e(current_page('items/variance-report') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('items/variance-report') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('item.variance-report')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> Variance Analysis </span></a>
                                                </li>
                                            <?php endif; ?>

                                        </ul>

                                    </li>

                                <?php endif; ?>





                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['work-order'])): ?>

                                    <li>
                                        <a class=" <?php echo e(current_page('work-order') ? 'active' : ''); ?> <?php echo e(current_page('work-order/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('work-order/create') ? 'active' : ''); ?> <?php echo e(current_page('work-order/list') ? 'active' : ''); ?> waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">Work
                                                Order</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('work-order') ? 'in' : ''); ?> <?php echo e(current_page('work-order/dashboard') ? 'in' : ''); ?> <?php echo e(current_page('work-order/create') ? 'in' : ''); ?> <?php echo e(current_page('work-order/list') ? 'in' : ''); ?>">

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['work-order'])): ?>
                                                <li class="<?php echo e(current_page('work-order/dashboard') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('work-order/dashboard') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('work-order.gannt-chart')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> Dashboard</span></a>
                                                </li>
                                            <?php endif; ?>



                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['work-order'])): ?>
                                                <li class="<?php echo e(current_page('work-order/create') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('work-order/create') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('work-order.create')); ?>" class="  waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;">Add </span></a>
                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['work-order'])): ?>
                                                <li class="<?php echo e(current_page('work-order/list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('work-order/list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('work-order.list')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> List </span></a>
                                                </li>
                                            <?php endif; ?>


                                        </ul>

                                    </li>

                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-purchase-request', 'create-purchase-request'])): ?>

                                    <li>
                                        <a class="  <?php echo e(current_page('purchase-request') ? 'active' : ''); ?>  <?php echo e(current_page('purchase-requests/add-cash') ? 'active' : ''); ?>  waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">Purchase Request
                                            </span></a>
                                        <ul aria-expanded="false"
                                            class="collapse  <?php echo e(current_page('purchase-request') ? 'in' : ''); ?> <?php echo e(current_page('purchase-requests/add-cash') ? 'in' : ''); ?> ">


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-purchase-request', 'create-purchase-request'])): ?>
                                                <li class="<?php echo e(current_page('purchase-requests/add-cash') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('purchase-requests/add-cash') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('purchase-requests.add.cash')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> Cash Pr </span></a>
                                                </li>
                                            <?php endif; ?>

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-purchase-request', 'create-purchase-request'])): ?>
                                                <li class="<?php echo e(current_page('purchase-requests/add') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('purchase-requests/add') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('purchase-requests.add')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> Add </span></a>

                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-purchase-request', 'create-purchase-request'])): ?>
                                                <li class="<?php echo e(current_page('purchase-requests/list') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('purchase-requests/list') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('purchase-requests.list')); ?>" class=" waves-effect"
                                                        href="javascript:void(0);" aria-expanded="false"><i
                                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                                            style="margin-left: 20px;"> List </span></a>

                                                </li>
                                            <?php endif; ?>


                                        </ul>

                                    </li>

                                <?php endif; ?>





                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['mir'])): ?>
                                    <li class="<?php echo e(current_page('material-issue-request/list') ? 'active' : ''); ?>">
                                        <a class="<?php echo e(current_page('material-issue-request/list') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('material.issue.request.list')); ?>" class="waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i>
                                            <span class="hide-menu">
                                                MIR
                                            </span>
                                        </a>
                                    </li>
                                <?php endif; ?>






                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['approve-po'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('approval') ? 'active' : ''); ?>  <?php echo e(current_page('pr-approval-pending/1') ? 'active' : ''); ?> <?php echo e(current_page('cs-approval-pending/1') ? 'active' : ''); ?> waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span
                                                class="hide-menu">Approvals</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('approval') ? 'in' : ''); ?> <?php echo e(current_page('pr-approval-pending/1') ? 'in' : ''); ?> <?php echo e(current_page('cs-approval-pending/1') ? 'in' : ''); ?> ">

                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-purchase-request', 'create-purchase-request'])): ?>

                                                <li class="<?php echo e(current_page('pr-approval-pending/1') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('pr-approval-pending/1') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('pr-approval-pending', [$user->role->role_id])); ?>"
                                                        class=" waves-effect" href="javascript:void(0);"
                                                        aria-expanded="false"><i class="fa fa-building-o"></i> <span
                                                            class="hide-menu" style="margin-left: 20px;">PR Pending </span></a>
                                                </li>
                                            <?php endif; ?>


                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['approve-po'])): ?>
                                                <li class="<?php echo e(current_page('cs-approval-pending/1') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('cs-approval-pending/1') ? 'active' : ''); ?>"
                                                        class=" waves-effect"
                                                        href="<?php echo e(route('cs-approval-pending', [$user->role->role_id])); ?>"
                                                        aria-expanded="false"><i class="fa fa-building-o"></i> <span
                                                            class="hide-menu" style="margin-left: 20px;"> PO Pending </span></a>

                                                </li>
                                            <?php endif; ?>


                                        </ul>

                                    </li>
                                <?php endif; ?>




                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-request-for-quotation'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('request-for-quotations') ? 'active' : ''); ?> waves-effect"
                                            href="<?php echo e(route('request-for-quotations.list')); ?>" aria-expanded="false"><i
                                                class="fa fa-building-o"></i> <span class="hide-menu"
                                                style="margin-left: 20px;"> Request For Quotation </span></a>

                                    </li>
                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-comparative-statement'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('comparative-statements') ? 'active' : ''); ?> waves-effect"
                                            href="<?php echo e(route('comparative-statements.list')); ?>" aria-expanded="false"><i
                                                class="fa fa-building-o"></i> <span class="hide-menu"
                                                style="margin-left: 20px;"> Comparative Statement </span></a>

                                    </li>
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-purchase-order'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('purchase-orders') ? 'active' : ''); ?> waves-effect"
                                            href="<?php echo e(route('purchase-orders.list')); ?>" aria-expanded="false"><i
                                                class="fa fa-building-o"></i> <span class="hide-menu"
                                                style="margin-left: 20px;"> Purchase Order </span></a>

                                    </li>
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['list-po-receipt'])): ?>
                                    <li>
                                        <a class="<?php echo e(current_page('purchase-order-receipts') ? 'active' : ''); ?> waves-effect"
                                            href="<?php echo e(route('purchase-order-receipts.list')); ?>" aria-expanded="false"><i
                                                class="fa fa-building-o"></i> <span class="hide-menu"
                                                style="margin-left: 20px;"> Receipts </span></a>

                                    </li>
                                <?php endif; ?>

                            </ul>
                        </li>


                    <?php endif; ?>




                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'fixed-assets')): ?>

                        <li>
                            <a class=" <?php echo e(current_page('asset-location/create') ? 'active' : ''); ?> <?php echo e(current_page('assets/locations') ? 'active' : ''); ?> <?php echo e(current_page('fixed-assets/type') ? 'active' : ''); ?> <?php echo e(current_page('fixed-assets/create') ? 'active' : ''); ?> <?php echo e(current_page('fixed-asset/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('items/fixed-assets') ? 'active' : ''); ?> <?php echo e(current_page('items/fixed-assets/sold') ? 'active' : ''); ?> <?php echo e(current_page('assets/maintainance') ? 'active' : ''); ?> <?php echo e(current_page('fixed-asset/ledger') ? 'active' : ''); ?> <?php echo e(current_page('fixed-asset/depreciation-report') ? 'active' : ''); ?> waves-effect"
                                href="javascript:void(0);" aria-expanded="false">
                                <i class="fa fa-caret-right caret-icon"></i>
                                <i class="icon-calender fa-fw"></i> <span class="hide-menu">Fixed Asset</span></a>
                            <ul aria-expanded="false"
                                class="collapse <?php echo e(current_page('asset-location/create') ? 'in' : ''); ?> <?php echo e(current_page('assets/locations') ? 'in' : ''); ?> <?php echo e(current_page('fixed-assets/type') ? 'in' : ''); ?> <?php echo e(current_page('fixed-assets/create') ? 'in' : ''); ?> <?php echo e(current_page('fixed-asset/dashboard') ? 'in' : ''); ?> <?php echo e(current_page('items/fixed-assets') ? 'in' : ''); ?> <?php echo e(current_page('items/fixed-assets/sold') ? 'in' : ''); ?> <?php echo e(current_page('assets/maintainance') ? 'in' : ''); ?> <?php echo e(current_page('fixed-asset/ledger') ? 'in' : ''); ?> <?php echo e(current_page('fixed-asset/depreciation-report') ? 'in' : ''); ?>">


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['fixed-assets'])): ?>
                                    <li class=" <?php echo e(current_page('fixed-asset/dashboard') ? 'active' : ''); ?>">
                                        <a class="<?php echo e(current_page('fixed-asset/dashboard') ? 'active' : ''); ?> "
                                            href="<?php echo e(route('fixed.asset.dashboard')); ?>" class="waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i>
                                            <span class="hide-menu">
                                                Dashboard
                                            </span>
                                        </a>
                                    </li>
                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['fixed-assets'])): ?>
                                    <li class="<?php echo e(current_page('items/fixed-assets') ? 'active' : ''); ?>">
                                        <a class="<?php echo e(current_page('items/fixed-assets') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('fixed.assets')); ?>" class="waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i>
                                            <span class="hide-menu">
                                                Assets
                                            </span>
                                        </a>
                                    </li>
                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['fixed-assets'])): ?>
                                    <li class="<?php echo e(current_page('items/fixed-assets/sold') ? 'active' : ''); ?>">
                                        <a class="<?php echo e(current_page('items/fixed-assets/sold') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('fixed.assets.sold')); ?>" class="waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i>
                                            <span class="hide-menu">
                                                For Sale
                                            </span>
                                        </a>
                                    </li>
                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['fixed-asset-types', 'fixed-assets'])): ?>

                                    <li>
                                        <a class=" <?php echo e(current_page('fixed-assets/type') ? 'active' : ''); ?> <?php echo e(current_page('fixed-assets/create') ? 'active' : ''); ?> <?php echo e(current_page('fixed-asset-types') ? 'active' : ''); ?>  waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu"> Type</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('fixed-assets/type') ? 'in' : ''); ?> <?php echo e(current_page('fixed-assets/create') ? 'in' : ''); ?> <?php echo e(current_page('fixed-asset-types') ? 'in' : ''); ?> ">


                                            <li class="<?php echo e(current_page('fixed-assets/create') ? 'active' : ''); ?>">
                                                <a class="<?php echo e(current_page('fixed-assets/create') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('create.fixed.asset.type')); ?>" class="waves-effect"
                                                    href="javascript:void(0);" aria-expanded="false"><i
                                                        class="fa fa-building-o"></i>
                                                    <span class="hide-menu" style="margin-left: 20px;">
                                                        Add
                                                    </span>
                                                </a>
                                            </li>

                                            <li class="<?php echo e(current_page('fixed-assets/type') ? 'active' : ''); ?>">
                                                <a class="<?php echo e(current_page('fixed-assets/type') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('fixed.asset.type')); ?>" class="waves-effect"
                                                    href="javascript:void(0);" aria-expanded="false"><i
                                                        class="fa fa-building-o"></i>
                                                    <span class="hide-menu" style="margin-left: 20px;">
                                                        List
                                                    </span>
                                                </a>
                                            </li>

                                        </ul>

                                    </li>

                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['asset-location', 'fixed-assets'])): ?>

                                    <li>
                                        <a class="<?php echo e(current_page('asset-location/create') ? 'active' : ''); ?> <?php echo e(current_page('assets/locations') ? 'active' : ''); ?> <?php echo e(current_page('fixed-asset-types') ? 'active' : ''); ?>  waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i> <span class="hide-menu">
                                                Location</span></a>
                                        <ul aria-expanded="false"
                                            class="collapse <?php echo e(current_page('assets/locations') ? 'in' : ''); ?> <?php echo e(current_page('asset-location/create') ? 'in' : ''); ?> <?php echo e(current_page('fixed-asset-types') ? 'in' : ''); ?> ">


                                            <li class="<?php echo e(current_page('asset-location/create') ? 'active' : ''); ?>">
                                                <a class="<?php echo e(current_page('asset-location/create') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('create.asset.location')); ?>" class="waves-effect"
                                                    href="javascript:void(0);" aria-expanded="false"><i
                                                        class="fa fa-building-o"></i>
                                                    <span class="hide-menu" style="margin-left: 20px;">
                                                        Add
                                                    </span>
                                                </a>
                                            </li>

                                            <li class="<?php echo e(current_page('assets/locations') ? 'active' : ''); ?>">
                                                <a class="<?php echo e(current_page('assets/locations') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('asset.location')); ?>" class="waves-effect"
                                                    href="javascript:void(0);" aria-expanded="false"><i
                                                        class="fa fa-building-o"></i>
                                                    <span class="hide-menu" style="margin-left: 20px;">
                                                        List
                                                    </span>
                                                </a>
                                            </li>

                                        </ul>

                                    </li>

                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['fixed-assets-maintainance', 'fixed-assets'])): ?>
                                    <li class="<?php echo e(current_page('assets/maintainance') ? 'active' : ''); ?>">
                                        <a class="<?php echo e(current_page('assets/maintainance') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('asset.maintainance')); ?>" class="waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i>
                                            <span class="hide-menu">
                                                Maintainance
                                            </span>
                                        </a>
                                    </li>
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['fixed-assets'])): ?>
                                    <li class="<?php echo e(current_page('fixed-asset/ledger') ? 'active' : ''); ?>">
                                        <a class="<?php echo e(current_page('fixed-asset/ledger') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('fixed.asset.ledger')); ?>" class="waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i>
                                            <span class="hide-menu">
                                                Asset Ledger
                                            </span>
                                        </a>
                                    </li>
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['fixed-assets'])): ?>
                                    <li class="<?php echo e(current_page('fixed-asset/depreciation-report') ? 'active' : ''); ?>">
                                        <a class="<?php echo e(current_page('fixed-asset/depreciation-report') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('depreciation.report')); ?>" class="waves-effect"
                                            href="javascript:void(0);" aria-expanded="false"><i
                                                class="icon-calender fa-fw"></i>
                                            <span class="hide-menu">
                                                Depreciation Report
                                            </span>
                                        </a>
                                    </li>
                                <?php endif; ?>




                            </ul>

                        </li>


                    <?php endif; ?>



                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['hrm'])): ?>

                        <li>

                            <a class=" <?php echo e(current_page('hrm/edit/hrm-setting') ? 'active' : ''); ?> <?php echo e(current_page('employees/salary/for/approve') ? 'active' : ''); ?> <?php echo e(current_page('designation/list-designation') ? 'active' : ''); ?> <?php echo e(current_page('designation/add-designation') ? 'active' : ''); ?>  <?php echo e(current_page('hrm/employee-sheet') ? 'active' : ''); ?> <?php echo e(current_page('hrm/add-employee') ? 'active' : ''); ?> <?php echo e(current_page('hrmemployee/list-deduction-title') ? 'active' : ''); ?>  <?php echo e(current_page('hrmemployee/add-deduction-title') ? 'active' : ''); ?> <?php echo e(current_page('hrmemployee/add-allowance-title') ? 'active' : ''); ?> <?php echo e(current_page('hrmemployee/list-allowance-title') ? 'active' : ''); ?><?php echo e(current_page('hrmemployee/add-allowance-title') ? 'active' : ''); ?> <?php echo e(current_page('/hrm/add-employee') ? 'active' : ''); ?> <?php echo e(current_page('/hrm/add-employee') ? 'active' : ''); ?> <?php echo e(current_page('/hrm/add-employee') ? 'active' : ''); ?> <?php echo e(current_page('hrm/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('hrmemployee/add-benevolent-fund') ? 'active' : ''); ?> <?php echo e(current_page('hrm/employee/list-loan') ? 'active' : ''); ?> <?php echo e(current_page('hrm/add-attendance') ? 'active' : ''); ?> <?php echo e(current_page('hrm/list-attendance/schedual-plan') ? 'active' : ''); ?> <?php echo e(current_page('hrm/texcition/show') ? 'active' : ''); ?> waves-effect"
                                href="javascript:void(0);" aria-expanded="false">
                                <i class="fa fa-caret-right caret-icon"></i>
                                <i class="icon-people fa-fw"></i>
                                <span class="hide-menu">HRM</span></a>
                            <ul aria-expanded="false"
                                class="collapse <?php echo e(current_page('hrm/edit/hrm-setting') ? 'in' : ''); ?> <?php echo e(current_page('employees/salary/for/approve') ? 'in' : ''); ?> <?php echo e(current_page('designation/list-designation') ? 'in' : ''); ?> <?php echo e(current_page('designation/add-designation') ? 'in' : ''); ?> <?php echo e(current_page('hrm/employee-sheet') ? 'in' : ''); ?> <?php echo e(current_page('hrm/add-employee') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/list-deduction-title') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/add-deduction-title') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/add-allowance-title') ? 'in' : ''); ?> <?php echo e(current_page('hrm/dashboard') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/add-benevolent-fund') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/add-allowance-title') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/list-allowance-title') ? 'in' : ''); ?> <?php echo e(current_page('hrm/employee/list-loan') ? 'in' : ''); ?> <?php echo e(current_page('hrm/add-attendance') ? 'in' : ''); ?> <?php echo e(current_page('hrm/list-attendance/schedual-plan') ? 'in' : ''); ?> <?php echo e(current_page('hrm/texcition/show') ? 'in' : ''); ?>">



                                <li class="<?php echo e(current_page('hrm/dashboard') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('hrm/dashboard') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('hrm.dashboard')); ?>"><i class="icon-check fa-fw"></i>
                                        Dashboard</a> </li>





                                <li>
                                    <a class="<?php echo e(current_page('follow-up') ? 'active' : ''); ?>  <?php echo e(current_page('hrmemployee/add-benevolent-fund') ? 'active' : ''); ?> <?php echo e(current_page('hrmemployee/show-benevolent-fund') ? 'active' : ''); ?> waves-effect"
                                        href="javascript:void(0);" aria-expanded="false"><i
                                            class="icon-calender fa-fw"></i> <span class="hide-menu">Benevolent
                                            Fund</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('follow-up') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/add-benevolent-fund') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/show-benevolent-fund') ? 'in' : ''); ?>">


                                        <li
                                            class="<?php echo e(current_page('hrmemployee/add-benevolent-fund') ? 'active' : ''); ?>">
                                            <a href="<?php echo e(route('add.benevolent.fund')); ?>"
                                                class="<?php echo e(current_page('hrmemployee/add-benevolent-fund') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false"><i
                                                    class="fa fa-building-o"></i> <span class="hide-menu"
                                                    style="margin-left: 20px;"> Add </span></a>

                                        </li>

                                        <li
                                            class="<?php echo e(current_page('hrmemployee/show-benevolent-fund') ? 'active' : ''); ?>">
                                            <a href="<?php echo e(route('benevolent-fund.show')); ?>"
                                                class="<?php echo e(current_page('hrmemployee/show-benevolent-fund') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false"><i
                                                    class="fa fa-building-o"></i> <span class="hide-menu"
                                                    style="margin-left: 20px;"> List</span></a>

                                        </li>

                                    </ul>

                                </li>





                                <li>
                                    <a class="<?php echo e(current_page('follow-up') ? 'active' : ''); ?> <?php echo e(current_page('hrmemployee/add-allowance-title') ? 'active' : ''); ?> <?php echo e(current_page('hrmemployee/list-allowance-title') ? 'active' : ''); ?> waves-effect"
                                        href="javascript:void(0);" aria-expanded="false"><i
                                            class="icon-calender fa-fw"></i> <span
                                            class="hide-menu">Allowances</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('follow-up') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/add-allowance-title') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/list-allowance-title') ? 'in' : ''); ?>">


                                        <li
                                            class="<?php echo e(current_page('hrmemployee/add-allowance-title') ? 'active' : ''); ?>">
                                            <a href="<?php echo e(route('add.Allowance.title')); ?>"
                                                class="<?php echo e(current_page('hrmemployee/add-allowance-title') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false"><i
                                                    class="fa fa-building-o"></i> <span class="hide-menu"
                                                    style="margin-left: 20px;"> Add </span></a>

                                        </li>

                                        <li
                                            class="<?php echo e(current_page('hrmemployee/list-allowance-title') ? 'active' : ''); ?>">
                                            <a href="<?php echo e(route('list.Allowance.title')); ?>"
                                                class="<?php echo e(current_page('hrmemployee/list-allowance-title') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false"><i
                                                    class="fa fa-building-o"></i> <span class="hide-menu"
                                                    style="margin-left: 20px;"> List </span></a>

                                        </li>

                                    </ul>

                                </li>

                                <li
                                    class=" <?php echo e(current_page('hrmemployee/list-deduction-title') ? 'active' : ''); ?> <?php echo e(current_page('hrmemployee/add-deduction-title') ? 'active' : ''); ?> <?php echo e(current_page('hrm/add-employee') ? 'active' : ''); ?> <?php echo e(current_page('hrm/employee-sheet') ? 'active' : ''); ?>">
                                    <a class="<?php echo e(current_page('follow-up') ? 'active' : ''); ?>  waves-effect"
                                        class="<?php echo e(current_page('hrmemployee/add-deduction-title') ? 'active' : ''); ?>"
                                        href="javascript:void(0);" aria-expanded="false"><i
                                            class="icon-calender fa-fw"></i> <span
                                            class="hide-menu">Deductions</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('hrmemployee/list-deduction-title') ? 'in' : ''); ?> <?php echo e(current_page('hrmemployee/add-deduction-title') ? 'in' : ''); ?> <?php echo e(current_page('follow-up') ? 'in' : ''); ?> <?php echo e(current_page('hrm/add-employee') ? 'in' : ''); ?> <?php echo e(current_page('hrm/employee-sheet') ? 'active' : ''); ?> ">


                                        <li
                                            class="<?php echo e(current_page('hrmemployee/add-deduction-title') ? 'active' : ''); ?>">
                                            <a href="<?php echo e(route('add.deduction.title')); ?>"
                                                class="<?php echo e(current_page('hrmemployee/add-deduction-title') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false"><i
                                                    class="fa fa-building-o"></i> <span class="hide-menu"
                                                    style="margin-left: 20px;"> Add </span></a>

                                        </li>

                                        <li
                                            class="<?php echo e(current_page('hrmemployee/list-deduction-title') ? 'active' : ''); ?>">
                                            <a href="<?php echo e(route('list.deduction.title')); ?>"
                                                class="<?php echo e(current_page('hrmemployee/list-deduction-title') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false"><i
                                                    class="fa fa-building-o"></i> <span class="hide-menu"
                                                    style="margin-left: 20px;"> List </span></a>

                                        </li>

                                    </ul>

                                </li>



                                <li class="<?php echo e(current_page('hrm/add-employee') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('hrm/add-employee') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('employee.add')); ?>"><i class="icon-check fa-fw"></i> Add
                                        Employee</a> </li>

                                <li class="<?php echo e(current_page('hrm/employee-sheet') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('hrm/employee-sheet') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('employee.sheet')); ?>"><i class="icon-check fa-fw"></i>
                                        Employee List</a> </li>
                                <li>
                                    <a class="<?php echo e(current_page('designation/list-designation') ? 'active' : ''); ?> <?php echo e(current_page('designation/add-designation') ? 'active' : ''); ?> <?php echo e(current_page('follow-up') ? 'active' : ''); ?>  waves-effect"
                                        href="javascript:void(0);" aria-expanded="false"><i
                                            class="icon-calender fa-fw"></i> <span
                                            class="hide-menu">Designation</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('designation/list-designation') ? 'in' : ''); ?>  <?php echo e(current_page('designation/add-designation') ? 'in' : ''); ?> <?php echo e(current_page('follow-up') ? 'in' : ''); ?> ">


                                        <li class="<?php echo e(current_page('designation/add-designation') ? 'active' : ''); ?>">
                                            <a href="<?php echo e(route('designation.add')); ?>"
                                                class="<?php echo e(current_page('designation/add-designation') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false"><i
                                                    class="fa fa-building-o"></i> <span class="hide-menu"
                                                    style="margin-left: 20px;"> Add </span></a>

                                        </li>

                                        <li class="<?php echo e(current_page('designation/list-designation') ? 'active' : ''); ?>">
                                            <a href="<?php echo e(route('designation.list')); ?>"
                                                class="<?php echo e(current_page('designation/list-designation') ? 'active' : ''); ?>  waves-effect"
                                                href="javascript:void(0);" aria-expanded="false"><i
                                                    class="fa fa-building-o"></i> <span class="hide-menu"
                                                    style="margin-left: 20px;"> List </span></a>

                                        </li>

                                    </ul>

                                </li>



                                <li class="<?php echo e(current_page('/hrm/all-employee-salary/list') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('/hrm/all-employee-salary/list') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('all-employee.salary.list')); ?>"><i
                                            class="icon-check fa-fw"></i> Payroll Sheet </a> </li>

                                <li class="<?php echo e(current_page('employees/salary/for/approve') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('employees/salary/for/approve') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('employee.salary.approve')); ?>"><i
                                            class="icon-check fa-fw"></i>Pending Payroll </a>
                                </li>




                                <li class="<?php echo e(current_page('hrm/employee/list-loan') ? 'active' : ''); ?>"> <a
                                        href="<?php echo e(route('list.loan')); ?>"
                                        class="<?php echo e(current_page('hrm/employee/list-loan') ? 'active' : ''); ?>  waves-effect"
                                        href="javascript:void(0);" aria-expanded="false"><i
                                            class="fa fa-building-o"></i> <span class="hide-menu"
                                            style="margin-left: 20px;"> Loan & Advance </span></a></li>


                                <li class="<?php echo e(current_page('hrm/add-attendance') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('hrm/add-attendance') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('add.attendance')); ?>"><i class="icon-check fa-fw"></i>
                                        Attendance</a> </li>

                                <li class="<?php echo e(current_page('hrm/edit/hrm-setting') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('hrm/edit/hrm-setting') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('edit.hrm.setting.attendance')); ?>"><i
                                            class="icon-settings fa-fw"></i> Hrm Setting</a> </li>

                                

                                <li class="<?php echo e(current_page('hrm/list-attendance/schedual-plan') ? 'active' : ''); ?>">
                                    <a class="<?php echo e(current_page('hrm/list-attendance/schedual-plan') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('schedual-plan.list')); ?>"><i
                                            class="icon-check fa-fw"></i>Schedual plan list</a>
                                </li>

                                <li class="<?php echo e(current_page('hrm/texcition/show') ? 'active' : ''); ?>"> <a
                                        class="<?php echo e(current_page('hrm/texcition/show') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('show.texcition')); ?>"><i class="icon-check fa-fw"></i>Tax
                                        Slabs </a>
                                </li>


                            </ul>


                        </li>

                    <?php endif; ?>

                    
                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-recovery-report', 'view-profit-loss-report', 'view-rebate-report',
                        'item-in-out-report', 'item-valuation-report', 'view-balance-sheet', 'view-aging-report',
                        'view-general-ledger', 'view-trial-balance', 'view-cash-flow-statement', 'view-dealer-commission',
                        'view-sold-inventory', 'view-received-amount', 'hrm'])): ?>
                        <li>
                            <a class=" waves-effect <?php echo e(current_page('report/generel-ledger') ? 'active' : ''); ?> <?php echo e(current_page('recovery/due') ? 'active' : ''); ?>  <?php echo e(current_page('report/month-wise-recovery') ? 'active' : ''); ?> <?php echo e(current_page('report/item-valuation') ? 'active' : ''); ?> <?php echo e(current_page('report/inventory') ? 'active' : ''); ?> <?php echo e(current_page('report/item-in-out') ? 'active' : ''); ?> <?php echo e(current_page('hrm/employee/loan/report') ? 'active' : ''); ?>  <?php echo e(current_page('employees/benevolent/fund/report') ? 'active' : ''); ?> <?php echo e(current_page('employees/salary/report') ? 'active' : ''); ?> <?php echo e(current_page('employees/list/report') ? 'active' : ''); ?> <?php echo e(current_page('report/cash-flow-statement') ? 'active' : ''); ?> <?php echo e(current_page('report/profit-loss-statement') ? 'active' : ''); ?> <?php echo e(current_page('report/balance-sheet') ? 'active' : ''); ?> <?php echo e(current_page('report/trial-balance') ? 'active' : ''); ?> <?php echo e(current_page('report/generel-ledger') ? 'active' : ''); ?> <?php echo e(current_page('report/received-amount') ? 'active' : ''); ?> <?php echo e(current_page('report/sold-inventory') ? 'active' : ''); ?> <?php echo e(current_page('report/commission-amount') ? 'active' : ''); ?> <?php echo e(current_page('report/paid-rebate') ? 'active' : ''); ?> <?php echo e(current_page('employees/tax/report') ? 'active' : ''); ?>  <?php echo e(current_page('sales/detail/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('sales/dashboard') ? 'active' : ''); ?>  <?php echo e(current_page('BalanceSheet') ? 'active' : ''); ?> <?php echo e(current_page('/sales/detail/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('/sales/detail/dashboard') ? 'active' : ''); ?>"
                                href="javascript:void(0);" aria-expanded="false">
                                <i class="fa fa-caret-right caret-icon"></i>
                                <i class="icon-book-open fa-fw"></i> <span class="hide-menu">Reports</span></a>
                            <ul aria-expanded="false"
                                class="collapse <?php echo e(current_page('report/generel-ledger') ? 'in' : ''); ?> <?php echo e(current_page('recovery/due') ? 'in' : ''); ?> <?php echo e(current_page('report/month-wise-recovery') ? 'in' : ''); ?> <?php echo e(current_page('report/item-valuation') ? 'in' : ''); ?> <?php echo e(current_page('report/inventory') ? 'in' : ''); ?> <?php echo e(current_page('report/item-in-out') ? 'in' : ''); ?> <?php echo e(current_page('hrm/employee/loan/report') ? 'in' : ''); ?>  <?php echo e(current_page('employees/benevolent/fund/report') ? 'in' : ''); ?> <?php echo e(current_page('employees/salary/report') ? 'in' : ''); ?> <?php echo e(current_page('employees/list/report') ? 'in' : ''); ?> <?php echo e(current_page('report/cash-flow-statement') ? 'in' : ''); ?> <?php echo e(current_page('report/profit-loss-statement') ? 'in' : ''); ?> <?php echo e(current_page('report/balance-sheet') ? 'in' : ''); ?> <?php echo e(current_page('report/trial-balance') ? 'in' : ''); ?> <?php echo e(current_page('report/generel-ledger') ? 'in' : ''); ?> <?php echo e(current_page('report/received-amount') ? 'in' : ''); ?> <?php echo e(current_page('report/sold-inventory') ? 'in' : ''); ?> <?php echo e(current_page('report/commission-amount') ? 'in' : ''); ?> <?php echo e(current_page('report/paid-rebate') ? 'in' : ''); ?> <?php echo e(current_page('employees/tax/report') ? 'in' : ''); ?>  <?php echo e(current_page('sales/detail/dashboard') ? 'in' : ''); ?> <?php echo e(current_page('sales/dashboard') ? 'in' : ''); ?>   <?php echo e(current_page('BalanceSheet') ? 'in' : ''); ?> <?php echo e(current_page('/sales/detail/dashboard') ? 'in' : ''); ?> <?php echo e(current_page('/sales/dashboard') ? 'in' : ''); ?>">
                                <li>
                                    <a class=" waves-effect <?php echo e(current_page('recovery/due') ? 'active' : ''); ?> <?php echo e(current_page('report/received-amount') ? 'active' : ''); ?> <?php echo e(current_page('report/sold-inventory') ? 'active' : ''); ?> <?php echo e(current_page('report/commission-amount') ? 'active' : ''); ?> <?php echo e(current_page('report/paid-rebate') ? 'active' : ''); ?> <?php echo e(current_page('employees/tax/report') ? 'active' : ''); ?> <?php echo e(current_page('sales/detail/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('sales/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('/month-wise-recovery') ? 'active' : ''); ?> <?php echo e(current_page('/month-wise-recovery') ? 'active' : ''); ?> <?php echo e(current_page('/recovery/due') ? 'active' : ''); ?> <?php echo e(current_page('/sales/dashboard') ? 'active' : ''); ?><?php echo e(current_page('/sales/detail/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('employee.tax.report') ? 'active' : ''); ?> <?php echo e(current_page('report/paid-rebate') ? 'active' : ''); ?> <?php echo e(current_page('report/commission-amount') ? 'active' : ''); ?> <?php echo e(current_page('report/sold-inventory') ? 'active' : ''); ?>    <?php echo e(current_page('received-amount') ? 'active' : ''); ?>  <?php echo e(current_page('report/aging') ? 'active' : ''); ?> "
                                        href="javascript:void(0);" aria-expanded="false">
                                        <i class="fa fa-caret-right caret-icon"></i>
                                        <i class="glyphicon glyphicon-th-list fa-fw"></i> <span
                                            class="hide-menu">Sales</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('recovery/due') ? 'in' : ''); ?> <?php echo e(current_page('report/received-amount') ? 'in' : ''); ?> <?php echo e(current_page('report/sold-inventory') ? 'in' : ''); ?>  <?php echo e(current_page('report/commission-amount') ? 'in' : ''); ?> <?php echo e(current_page('report/paid-rebate') ? 'in' : ''); ?> <?php echo e(current_page('employees/tax/report') ? 'in' : ''); ?>  <?php echo e(current_page('sales/detail/dashboard') ? 'in' : ''); ?> <?php echo e(current_page('sales/dashboard') ? 'in' : ''); ?> <?php echo e(current_page('/month-wise-recovery') ? 'in' : ''); ?> <?php echo e(current_page('/month-wise-recovery') ? 'active' : ''); ?> <?php echo e(current_page('/recovery/due') ? 'active' : ''); ?> <?php echo e(current_page('/sales/dashboard') ? 'active' : ''); ?><?php echo e(current_page('/sales/detail/dashboard') ? 'active' : ''); ?> <?php echo e(current_page('employee.tax.report') ? 'active' : ''); ?> <?php echo e(current_page('report/paid-rebate') ? 'active' : ''); ?> <?php echo e(current_page('report/commission-amount') ? 'active' : ''); ?> <?php echo e(current_page('report/sold-inventory') ? 'active' : ''); ?>    <?php echo e(current_page('received-amount') ? 'active' : ''); ?>  <?php echo e(current_page('report/aging') ? 'in' : ''); ?> ">
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-recovery-report')): ?>
                                            <li class="<?php echo e(current_page('report/account-statement') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/account-statement') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.account-statement')); ?>"><i
                                                        class="icon-check fa-fw"></i> OverDue / OutStanding<br>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report</a> </li>


                                            <li class="<?php echo e(current_page('report/month-wise-recovery') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('report/month-wise-recovery') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.month-wise-recovery')); ?>"><i
                                                        class="icon-check fa-fw"></i> Month Wise Recovery </a> </li>


                                            <li class="<?php echo e(current_page('recovery/due') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('recovery/due') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('recovery.due')); ?>"><i class="icon-check fa-fw"></i>
                                                    Installment Dues </a> </li>




                                            <li class="<?php echo e(current_page('sales/detail/dashboard') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('sales/detail/dashboard') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('sales.detail.dashboard')); ?>"><i
                                                        class="icon-check fa-fw"></i> Recovery Breakdown </a> </li>

                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['manage-sales-dashboard'])): ?>
                                            <li class="<?php echo e(current_page('sales/dashboard') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('sales/dashboard') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('sales.dashboard')); ?>"><i class="icon-check fa-fw"></i>
                                                    Sale Dashboard </a> </li>
                                        <?php endif; ?>

                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['hrm'])): ?>

                                            <li class="<?php echo e(current_page('employees/tax/report') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('employees/tax/report') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('employee.tax.report')); ?>"><i
                                                        class="icon-check fa-fw"></i> Tax Deduction</a> </li>


                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-rebate-report')): ?>

                                            <li class="<?php echo e(current_page('report/paid-rebate') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/paid-rebate') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.paid-rebate')); ?>"><i
                                                        class="icon-check fa-fw"></i> Paid Rebate</a> </li>
                                        <?php endif; ?>

                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-dealer-commission')): ?>
                                            <li class="<?php echo e(current_page('report/commission-amount') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/commission-amount') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.commission-amount')); ?>"><i
                                                        class="icon-check fa-fw"></i> Commission Report</a> </li>
                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-sold-inventory')): ?>
                                            <li class="<?php echo e(current_page('report/sold-inventory') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/sold-inventory') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.sold-inventory')); ?>"><i
                                                        class="icon-check fa-fw"></i> Sold Inventory</a> </li>
                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-received-amount')): ?>

                                            <li class="<?php echo e(current_page('report/received-amount') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/received-amount') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.received-amount')); ?>"><i
                                                        class="icon-check fa-fw"></i> Received Amount<br>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Report</a> </li>


                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-aging-report')): ?>
                                            <li class="<?php echo e(current_page('report/aging') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/aging') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.aging')); ?>"><i class="icon-check fa-fw"></i>
                                                    A/R Aging Report</a> </li>
                                        <?php endif; ?>
                                    </ul>
                                </li>

                                <li>

                                    <a class=" waves-effect <?php echo e(current_page('report/generel-ledger') ? 'active' : ''); ?> <?php echo e(current_page('report/cash-flow-statement') ? 'active' : ''); ?> <?php echo e(current_page('report/profit-loss-statement') ? 'active' : ''); ?> <?php echo e(current_page('report/balance-sheet') ? 'active' : ''); ?> <?php echo e(current_page('report/trial-balance') ? 'active' : ''); ?> <?php echo e(current_page('report/generel-ledger') ? 'active' : ''); ?> <?php echo e(current_page('report/trial-balance') ? 'active' : ''); ?> <?php echo e(current_page('report/balance-sheet') ? 'active' : ''); ?> <?php echo e(current_page('report/profit-loss-statement') ? 'active' : ''); ?> <?php echo e(current_page('report/cash-flow-statement') ? 'active' : ''); ?>    "
                                        href="javascript:void(0);" aria-expanded="false">
                                        <i class="fa fa-caret-right caret-icon"></i>
                                        <i class="icon-chart fa-fw"></i> <span class="hide-menu">Accounts</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('report/generel-ledger') ? 'in' : ''); ?> <?php echo e(current_page('report/cash-flow-statement') ? 'in' : ''); ?> <?php echo e(current_page('report/profit-loss-statement') ? 'in' : ''); ?> <?php echo e(current_page('report/balance-sheet') ? 'in' : ''); ?> <?php echo e(current_page('report/trial-balance') ? 'in' : ''); ?> <?php echo e(current_page('report/generel-ledger') ? 'in' : ''); ?> <?php echo e(current_page('report/trial-balance') ? 'active' : ''); ?> <?php echo e(current_page('report/balance-sheet') ? 'active' : ''); ?> <?php echo e(current_page('report/profit-loss-statement') ? 'active' : ''); ?> <?php echo e(current_page('report/cash-flow-statement') ? 'active' : ''); ?>  ">

                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-general-ledger')): ?>
                                            <li class="<?php echo e(current_page('report/generel-ledger') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/general-ledger') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.general-ledger')); ?>"><i
                                                        class="icon-check fa-fw"></i> General Ledger<br></a> </li>
                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-trial-balance')): ?>
                                            <li class="<?php echo e(current_page('report/trial-balance') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/trial-balance') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.trial-balance')); ?>"><i
                                                        class="icon-check fa-fw"></i> Trial Balance<br></a> </li>
                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-balance-sheet')): ?>
                                            <li class="<?php echo e(current_page('report/balance-sheet') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/balance-sheet') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.balance-sheet')); ?>"><i
                                                        class="icon-check fa-fw"></i> Balance Sheet</a> </li>
                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-profit-loss-report')): ?>
                                            <li
                                                class="<?php echo e(current_page('report/profit-loss-statement') ? 'active' : ''); ?> ">
                                                <a class="<?php echo e(current_page('report/profit-loss-statement') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.profit-loss-statement')); ?>"><i
                                                        class="icon-check fa-fw"></i> Profit & Loss <br>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Statement</a>
                                            </li>
                                        <?php endif; ?>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-cash-flow-statement')): ?>
                                            <li class="<?php echo e(current_page('report/cash-flow-statement') ? 'active' : ''); ?> ">
                                                <a class="<?php echo e(current_page('report/cash-flow-statement') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.cash-flow-statement')); ?>"><i
                                                        class="icon-check fa-fw"></i> Cash Flow Statement<br></a>
                                            </li>
                                        <?php endif; ?>
                                    </ul>
                                </li>


                                <li>

                                    <a class=" waves-effect <?php echo e(current_page('employees/list/report') ? 'active' : ''); ?> <?php echo e(current_page('employees/salary/report') ? 'active' : ''); ?> <?php echo e(current_page('employees/benevolent/fund/report') ? 'active' : ''); ?> <?php echo e(current_page('hrm/employee/loan/report') ? 'active' : ''); ?>   <?php echo e(current_page('hrm/employee/loan/report') ? 'active' : ''); ?>  "
                                        href="javascript:void(0);" aria-expanded="false">
                                        <i class="fa fa-caret-right caret-icon"></i>
                                        <i class="icon-people fa-fw"></i> <span class="hide-menu">HRM</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('employees/list/report') ? 'in' : ''); ?> <?php echo e(current_page('employees/salary/report') ? 'in' : ''); ?> <?php echo e(current_page('employees/benevolent/fund/report') ? 'in' : ''); ?> <?php echo e(current_page('hrm/employee/loan/report') ? 'in' : ''); ?>  <?php echo e(current_page('hrm/employee/loan/report') ? 'active' : ''); ?>  ">

                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['hrm'])): ?>
                                            <li class="<?php echo e(current_page('employees/list/report') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('employees/list/report') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('employee.list.report')); ?>"><i
                                                        class="icon-check fa-fw"></i> List of Employees</a> </li>

                                            <li class="<?php echo e(current_page('employees/salary/report') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('employees/salary/report') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('employee.salary.report')); ?>"><i
                                                        class="icon-check fa-fw"></i> Salary Details </a> </li>

                                            <li
                                                class="<?php echo e(current_page('employees/benevolent/fund/report') ? 'active' : ''); ?> ">
                                                <a class="<?php echo e(current_page('employees/benevolent/fund/report') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('employee.benevolent.fund.report')); ?>"><i
                                                        class="icon-check fa-fw"></i>Benevolent Fund </a>
                                            </li>

                                            <li class="<?php echo e(current_page('hrm/employee/loan/report') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('hrm/employee/loan/report') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('loan.report')); ?>"><i
                                                        class="icon-check fa-fw"></i>Loan</a> </li>

                                        <?php endif; ?>
                                    </ul>
                                </li>
                                <li>

                                    <a class=" waves-effect <?php echo e(current_page('report/item-valuation') ? 'active' : ''); ?> <?php echo e(current_page('report/item-valuation') ? 'active' : ''); ?> <?php echo e(current_page('report/inventory') ? 'active' : ''); ?> <?php echo e(current_page('report/item-in-out') ? 'active' : ''); ?> <?php echo e(current_page('report/inventory') ? 'active' : ''); ?> <?php echo e(current_page('report/item-valuation') ? 'active' : ''); ?>    "
                                        href="javascript:void(0);" aria-expanded="false">
                                        <i class="fa fa-caret-right caret-icon"></i>
                                        <i class="icon-people fa-fw"></i> <span class="hide-menu">Procurment</span></a>
                                    <ul aria-expanded="false"
                                        class="collapse <?php echo e(current_page('report/item-valuation') ? 'in' : ''); ?> <?php echo e(current_page('report/item-valuation') ? 'in' : ''); ?> <?php echo e(current_page('report/inventory') ? 'in' : ''); ?> <?php echo e(current_page('report/item-in-out') ? 'in' : ''); ?> <?php echo e(current_page('report/inventory') ? 'active' : ''); ?> <?php echo e(current_page('report/item-valuation') ? 'active' : ''); ?>  ">
                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'item-in-out-report')): ?>
                                            <li class="<?php echo e(current_page('report/item-in-out') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/item-in-out') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.item-in-out')); ?>"><i
                                                        class="icon-check fa-fw"></i> Item In/Out Report</a> </li>

                                        <?php endif; ?>


                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'inventory-report')): ?>
                                            <li class="<?php echo e(current_page('report/inventory') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/inventory') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.inventory')); ?>"><i
                                                        class="icon-check fa-fw"></i> Inventory Report</a> </li>

                                        <?php endif; ?>


                                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'item-valuation-report')): ?>
                                            <li class="<?php echo e(current_page('report/item-valuation') ? 'active' : ''); ?> "> <a
                                                    class="<?php echo e(current_page('report/item-valuation') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('report.item-valuation')); ?>"><i
                                                        class="icon-check fa-fw"></i> Item Valuation Report</a> </li>

                                        <?php endif; ?>

                                    </ul>
                                </li>







                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-general-ledger')): ?>
                                    
                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['hrm'])): ?>
                                    

                                    

                                    

                                    
                                    
                                    

                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-trial-balance')): ?>
                                    
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-balance-sheet')): ?>
                                    
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-profit-loss-report')): ?>
                                    
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-cash-flow-statement')): ?>
                                    
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-aging-report')): ?>
                                    
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-rebate-report')): ?>

                                    
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-dealer-commission')): ?>
                                    
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-sold-inventory')): ?>
                                    
                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-received-amount')): ?>

                                    


                                <?php endif; ?>

                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'item-in-out-report')): ?>
                                    

                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'inventory-report')): ?>
                                    

                                <?php endif; ?>


                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'item-valuation-report')): ?>
                                    

                                <?php endif; ?>

                            </ul>

                        </li>
                    <?php endif; ?>

                    
                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'manage-messages')): ?>
                        <li class="<?php echo e(current_page('message') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('message.history')); ?>"
                                class="<?php echo e(current_page('message') ? 'active' : ''); ?>" aria-expanded="false"><i
                                    class="icon-notebook fa-fw"></i> <span class="hide-menu">Messages</span></a>
                        </li>
                    <?php endif; ?>

                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-activity-log')): ?>

                        <li class="<?php echo e(current_page('activitylog') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('log')); ?>"
                                class="<?php echo e(current_page('activitylog') ? 'active' : ''); ?>" aria-expanded="false"><i
                                    class="icon-notebook fa-fw"></i> <span class="hide-menu">Activity Log</span></a>
                        </li>
                    <?php endif; ?>
                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-activity-download-log')): ?>
                        <li class="<?php echo e(current_page('download-activity') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('download.log')); ?>"
                                class="<?php echo e(current_page('download-activity') ? 'active' : ''); ?>"
                                aria-expanded="false"><i class="icon-notebook fa-fw"></i> <span
                                    class="hide-menu">Download Activity Log</span></a>
                        </li>
                    <?php endif; ?>
                    <?php if (\Illuminate\Support\Facades\Blade::check('role', ['admin', 'otheradmin'])): ?>
                        <?php if (\Illuminate\Support\Facades\Blade::check('permission', ['view-unit-size', 'view-unit-category', 'view-unit-type', 'view-unit-size',
                            'view-unit-floor', 'view-designation'])): ?>
                            <li>
                                <a class=" <?php echo e(current_page('pricelist') ? 'active' : ''); ?> <?php echo e(current_page('setting/multiproject-list') ? 'active' : ''); ?> <?php echo e(current_page('unit-size') ? 'active' : ''); ?>  <?php echo e(current_page('role-management') ? 'active' : ''); ?> <?php echo e(current_page('dealer-type') ? 'active' : ''); ?> <?php echo e(current_page('payment-schedule') ? 'active' : ''); ?> <?php echo e(current_page('unit-category') ? 'active' : ''); ?> <?php echo e(current_page('unit-type') ? 'active' : ''); ?><?php echo e(current_page('unit-floor') ? 'active' : ''); ?> <?php echo e(current_page('unit-block') ? 'active' : ''); ?> <?php echo e(current_page('balloting/setting-map-files') ? 'active' : ''); ?>  <?php echo e(current_page('payment-schedule/all') ? 'active' : ''); ?> <?php echo e(current_page('/email-sms/type') ? 'active' : ''); ?> <?php echo e(current_page('/stmp') ? 'active' : ''); ?> <?php echo e(current_page('voucher-valid-date') ? 'active' : ''); ?> waves-effect"
                                    href="javascript:void(0);" aria-expanded="false"> 
                                    <i class="fa fa-caret-right caret-icon"></i> <i class="icon-settings fa-fw"></i> <span
                                        class="hide-menu"> Master Settings </span></a>
                                <ul aria-expanded="false"
                                    class="collapse <?php echo e(current_page('pricelist') ? 'in' : ''); ?>  <?php echo e(current_page('setting/multiproject-list') ? 'in' : ''); ?> <?php echo e(current_page('unit-size') ? 'in' : ''); ?> <?php echo e(current_page('payment-schedule') ? 'in' : ''); ?> <?php echo e(current_page('role-management') ? 'in' : ''); ?> 
                                <?php echo e(current_page('dealer-type') ? 'in' : ''); ?> <?php echo e(current_page('unit-category') ? 'in' : ''); ?> <?php echo e(current_page('unit-type') ? 'in' : ''); ?> <?php echo e(current_page('balloting/setting-map-files') ? 'in' : ''); ?> <?php echo e(current_page('payment-schedule/all') ? 'in' : ''); ?> <?php echo e(current_page('/email-sms/type') ? 'in' : ''); ?> <?php echo e(current_page('/stmp') ? 'in' : ''); ?> <?php echo e(current_page('voucher-valid-date') ? 'in' : ''); ?>

                               <?php echo e(current_page('unit-floor') ? 'in' : ''); ?> <?php echo e(current_page('unit-block') ? 'in' : ''); ?>


                                             ">

                                    <?php if (\Illuminate\Support\Facades\Blade::check('role', 'admin')): ?>
                                        <li class="<?php echo e(current_page('setting/multiproject-list') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('setting/multiproject-list') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('multi.index')); ?>"><i class="icon-check fa-fw"></i>Create
                                                Project</a> </li>
                                        <li class="<?php echo e(current_page('account/all') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('account/all') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('account.all')); ?>"><i class="icon-check fa-fw"></i> User
                                                Accounts</a> </li>

                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('role', 'admin')): ?>
                                        <li class="<?php echo e(current_page('role-management') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('role-management') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('role.view')); ?>"><i class="icon-check fa-fw"></i>Role
                                                Management</a> </li>




                                    <?php endif; ?>


                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-dealer-type')): ?>
                                        <li class="<?php echo e(current_page('dealer-type') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('dealer-type') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('dealer.type.all')); ?>"><i class="icon-check fa-fw"></i>Dealer
                                                Type</a> </li>
                                    <?php endif; ?>
                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'list-chart-of-account')): ?>
                                        <li class="<?php echo e(current_page('chart-of-account') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('chart-of-account') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('chart-of-account.all')); ?>"><i class="icon-check fa-fw"></i>
                                                Chart of Accounts</a> </li>
                                    <?php endif; ?>
                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-unit-category')): ?>
                                        <li class="<?php echo e(current_page('unit-category') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('unit-category') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('unitCategory.all')); ?>"><i
                                                    class="icon-check fa-fw"></i>Property Category</a> </li>
                                    <?php endif; ?>
                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-unit-type')): ?>
                                        <li class="<?php echo e(current_page('unit-type') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('unit-type') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('unit.type.all')); ?>"><i class="icon-check fa-fw"></i> Property
                                                Type</a> </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-unit-size')): ?>
                                        <li class="<?php echo e(current_page('unit-size') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('unit-size') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('unit.size.all')); ?>"><i class="icon-check fa-fw"></i>Property
                                                Size</a> </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-unit-size')): ?>
                                        <li class="<?php echo e(current_page('unit-block') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('unit-block') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('unit.block.all')); ?>"><i class="icon-check fa-fw"></i>
                                                Property

                                                <?php if($app_society): ?>
                                                    Block
                                                <?php else: ?>
                                                    Block
                                                <?php endif; ?>
                                            </a>
                                         </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-unit-floor')): ?>
                                        
                                            <li class="<?php echo e(current_page('unit-floor') ? 'active' : ''); ?>"> <a
                                                    class="<?php echo e(current_page('unit-floor') ? 'active' : ''); ?>"
                                                    href="<?php echo e(route('unitFloor.all')); ?>"><i class="icon-check fa-fw"></i>
                                                    Block or Floor Mapping</a> </li>
                                        
                                        
                                    <?php endif; ?>



                                 
                                        <?php if($app_society): ?>
                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-balloting')): ?>
                                                <li class="<?php echo e(current_page('balloting/setting-map-files') ? 'active' : ''); ?>">
                                                    <a class="<?php echo e(current_page('balloting/setting-map-files') ? 'active' : ''); ?>"
                                                        href="<?php echo e(route('balloting.setting.files')); ?>"><i
                                                            class="icon-check fa-fw"></i>Balloting Map File</a>
                                                </li>
                                            <?php endif; ?>
                                            <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-package')): ?>
                                                
                                                <!-- <?php echo e(current_page('package') ? 'active' : ''); ?> -->
                                                <li class="<?php echo e(current_page('package') ? 'active' : ''); ?>"> <a class=""
                                                        href="<?php echo e(route('packge.index')); ?>"><i
                                                            class="icon-check fa-fw"></i>Package</a> </li>
                                                
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    
                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-unit-block-criteria')): ?>

                                        <li class="<?php echo e(current_page('unit-blockage') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('unit-blockage') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('unitblockage.index')); ?>"><i class="icon-check fa-fw"></i>Unit Blockage
                                            </a> </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-pricelist')): ?>

                                        <li class="<?php echo e(current_page('pricelist') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('pricelist') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('pricelist.index')); ?>"><i class="icon-check fa-fw"></i>Price
                                                List</a> </li>
                                    <?php endif; ?>


                                    <?php if (\Illuminate\Support\Facades\Blade::check('role', 'admin')): ?>

                                        <li class="<?php echo e(current_page('payment-schedule/all') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('payment-schedule/all') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('schedule.all')); ?>"><i class="icon-check fa-fw"></i>Schedule
                                                Plan</a> </li>
                                    <?php endif; ?>
                                    <?php if (\Illuminate\Support\Facades\Blade::check('role', 'admin')): ?>

                                        <li class="<?php echo e(current_page('/email-sms/type') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('/email-sms/type') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('email-sms.index')); ?>"><i class="icon-check fa-fw"></i>Email /
                                                Sms Template</a> </li>

                                        <li class="<?php echo e(current_page('/stmp') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('/stmp') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('stmp.index')); ?>"><i class="icon-check fa-fw"></i>SMTP
                                                Setting</a> </li>

                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'voucher-valid-date')): ?>
                                        <li class="<?php echo e(current_page('voucher-valid-date') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('voucher-valid-date') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('voucher.valid.date')); ?>"><i
                                                    class="icon-check fa-fw"></i>Voucher Validity</a> </li>
                                    <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'import-data')): ?>
                                    <li class="<?php echo e(current_page('import-data') ? 'active' : ''); ?>"> <a
                                            class="<?php echo e(current_page('import-data') ? 'active' : ''); ?>"
                                            href="<?php echo e(route('importdata.chartofaccount')); ?>"><i
                                                class="icon-check fa-fw"></i>Import Data</a> </li>
                                <?php endif; ?>

                                    <?php if (\Illuminate\Support\Facades\Blade::check('role', 'admin')): ?>

                                        <li class="<?php echo e(current_page('password/confirm') ? 'active' : ''); ?>"> <a
                                                class="<?php echo e(current_page('password/confirm') ? 'active' : ''); ?>"
                                                href="<?php echo e(route('reset.database')); ?>"><i class="icon-check fa-fw"></i>Reset
                                                Database</a> </li>
                                    <?php endif; ?>

                                </ul>
                            </li>
                        <?php endif; ?>
                    <?php endif; ?>

                    <?php if (\Illuminate\Support\Facades\Blade::check('role', 'admin')): ?>

                        <li class="<?php echo e(current_page('trash') ? 'active' : ''); ?>">
                            <a href="<?php echo e(route('trash.all')); ?>" class="<?php echo e(current_page('trash') ? 'active' : ''); ?>"
                                aria-expanded="false"><i class="icon-trash fa-fw"></i> <span class="hide-menu">Trash
                                    Box</span></a>
                        </li>

                        <!--   <li class="<?php echo e(current_page('backup') ? 'active' : ''); ?>">
                        <a href="<?php echo e(route('backup')); ?>" class="<?php echo e(current_page('backup') ? 'active' : ''); ?>" aria-expanded="false"><i class="glyphicon glyphicon-th-list fa-fw"></i> <span class="hide-menu">Backup</span></a>
                        </li> -->

                        <li class="<?php echo e(current_page('dnfbp') ? 'active' : ''); ?>">
                            <a class="<?php echo e(current_page('dnfbp') ? 'active' : ''); ?>" href="<?php echo e(route('dnfbp')); ?>"
                                class="" aria-expanded="false">
                                <i class="glyphicon glyphicon-th-list"></i>
                                <span class="hide-menu">
                                    DNFBP List
                                </span>
                            </a>
                        </li>

                        <li class="">
                            <a href="<?php echo e(route('backup')); ?>" class="" aria-expanded="false">
                                <i class="glyphicon glyphicon-th-list"></i>
                                <span class="hide-menu">
                                    Database Backup
                                </span>
                            </a>
                        </li>


                    <?php endif; ?>



                    </ul>
                </nav>
            </div>
        </aside>
        <!-- ===== Left-Sidebar-End ===== -->
        <!-- Page Content -->

        <!-- First Container -->
        <!-- <div id="myDropdown" class="newdiv">
            <div class="newhas1">


                <?php if(empty($active['project'])): ?>
<i class="fa fa-user halp" aria-hidden="true"></i>
                    
                    <p class="lu" ><?php echo e(Auth::user()->name); ?></p>
<?php else: ?>
<img src="<?php echo e(asset('images/' . $active['project']->image)); ?>" class="has">
                    <p class="lu"><?php echo e($active['project']->name); ?></p>
<?php endif; ?> -->
        <!-- </i><img src="images/img.png"> -->
        <!-- <div class="imghai">
                    
                  
                   
                    <?php if(!empty($active['other_projects'])): ?>
<?php
    $enc = Crypt::encrypt($active['other_projects']->id);
?>
                    <a href='#'  onclick="callFunctionSwitch('<?php echo e($enc); ?>')" >
                    <i class="fa fa-refresh rot" aria-hidden="true"></i>  -->
        <!-- <i class="fa fa-repeat rot" aria-hidden="true"></i> -->
        <!-- </a>
                    <p id="ley"  >  <?php echo e(strtoupper(substr($active['other_projects']->name, 0, 1))); ?></p>
                  
                    <button   class="swhh"  >Switch to <?php echo e($active['other_projects']->name); ?></button>
<?php else: ?>
<i class="fa fa-refresh rot" aria-hidden="true"></i>  -->
        <!-- <i class="fa fa-repeat rot" aria-hidden="true"></i> -->
        <!-- <p id="ley">N</p>
                    <button type="button" class="swhh">Nothing To Switch</button>
<?php endif; ?>
                </div>
            </div>
            <hr style="width: 300px;">
            <div class="nayadiv"onclick="show()">See all Projects</div>
        </div> -->
        <!-- Second Container -->
        <div id="newdrop" class="seconddiv" onclick="showed(event)" style="position: fixed;">
            <!-- <i style='font-size:24px'><i class="fa fa-arrow-left fas" aria-hidden="true"></i></i> -->
            <p class="hastext">PROJECTS</p>
            
            <ul class="optionss">

 
                <?php $__currentLoopData = $data['projects']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $project): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $id = Crypt::encrypt($project->id);
                        
                    ?>
                    <li>
                        <img src="<?php echo e(asset('images/' . $project->image)); ?>" alt="" class="hass">
                        <span><?php echo e($project->name); ?></span>
                        
                        <a href="#">
                            <input style="width:18px; height:18px; margin-top: 10px;
                    "
                                type="radio" name="imgsel" class="radios"
                                onclick="callFunctionSwitch('<?php echo e($id); ?>')" value=""
                                <?php echo e($data['pro_id'] == $project->id ? 'checked' : ''); ?>>
                        </a>
                    </li>
                    <div class="popover confirmation fade top in" id="confirmation9094"
                        style="top: 7.25px; left: 1059.5px; display: block;">
                        <div class="arrow" style="left: 50%;"></div>
                        <h3 class="popover-title">Are you sure to delete?</h3>
                        <div class="popover-content">
                            <p class="confirmation-content" style="display: none;"></p>
                            <div class="confirmation-buttons text-center">
                                <div class="btn-group"><a href="http://127.0.0.1:8000/customer/delete/1"
                                        class="btn btn-xs btn-primary" data-apply="confirmation"><i
                                            class="glyphicon glyphicon-ok"></i> Yes</a><a href="#"
                                        class="btn btn-xs btn-default" data-dismiss="confirmation"><i
                                            class="glyphicon glyphicon-remove"></i> No</a></div>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            </ul>





            <!-- <?php $__currentLoopData = $data['projects']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $project): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
    $id = Crypt::encrypt($project->id);
?>
            <div class="newsecondiv">
                 <i class="fa fa-user hass" aria-hidden="true"></i>
                <img src="<?php echo e(asset('images/' . $project->image)); ?>" class="hass">
                <p class="lui"><?php echo e($project->name); ?>

                    <input style="width:20px; height:20px;
                    " type="radio" name="imgsel" class="radios" onclick="callFunctionSwitch('<?php echo e($id); ?>')" value=""  <?php echo e($data['pro_id'] == $project->id ? 'checked' : ''); ?>>
            </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> -->
        </div>
        <div class="page-wrapper">
            <?php echo $__env->yieldContent('breadcrumb'); ?>
            <div class="clearfix"></div>
            <!-- Scroll Bar -->
            <div id="progress">
                <span id="progress-value">&#x1F815;</span>
            </div>
            <?php echo $__env->yieldContent('content'); ?>
            <!-- ===== Right-Sidebar ===== -->
            <div class="right-sidebar">
                <div class="slimsrcollright">
                    <div class="rpanel-title"> Service Panel <span><i
                                class="icon-close right-side-toggler"></i></span> </div>
                    <div class="r-panel-body">



                    </div>
                </div>
            </div>
            <!-- ===== Right-Sidebar-End ===== -->
        </div>

        <!-- /.container-fluid -->


        <footer class="footer t-a-c no-print">
            <div class="bg-white p-20" style="margin-bottom: -30px" ">            <center> 2021 © <?php echo e(env('APP_NAME')); ?> / Design & Developed By <a href="http://exagic.com/" target="_blank">EXAGIC</a> </center>        </div>
        </footer>
        </div>
        <!-- /#page-wrapper -->
        </div>
        <!-- /#wrapper -->
        <!-- ==============================
        Required JS Files
        =============================== -->
        <!-- ===== jQuery ===== -->
        <script src="<?php echo e(asset('plugins/components/jquery/dist/jquery.min.js')); ?>"></script>

        <!-- ===== Bootstrap Javasrcipt ===== -->
        <script src="<?php echo e(asset('bootstrap/dist/js/bootstrap.min.js')); ?>"></script>

        <script src="<?php echo e(asset('plugins/components/custom-select/custom-select.min.js')); ?>"></script>

        <script src="<?php echo e(asset('plugins/components/bootstrap-datepicker/bootstrap-datepicker.min.js')); ?>"></script>
        <!-- ===== Slimsrcoll Javasrcipt ===== -->
        <script src="<?php echo e(asset('js/jquery.slimscroll.js')); ?>"></script>
        <!-- ===== Wave Effects Javasrcipt ===== -->
        <script src="<?php echo e(asset('js/waves.js')); ?>"></script>
        <!-- ===== Menu Plugin Javasrcipt ===== -->
        <script src="<?php echo e(asset('js/sidebarmenu.js')); ?>"></script>

        <script src="<?php echo e(asset('js/jquery.slimscroll.js')); ?>"></script>
        <!-- ===== Custom Javasrcipt ===== -->
        <script src="<?php echo e(asset('js/custom.js')); ?>"></script>
        <script src="<?php echo e(asset('js/jasny-bootstrap.js')); ?>"></script>
        <script src="<?php echo e(asset('plugins/components/datatables/jquery.dataTables.min.js')); ?>"></script>

        <script src="<?php echo e(asset('js/anychart-base.min.js')); ?>" type="text/JavaScript"></script>

        <script src="<?php echo e(asset('js/jquery.PrintArea.js')); ?>" type="text/JavaScript"></script>
        <!-- ===== Plugin JS ===== -->
        <!-- ===== Style Switcher JS ===== -->
        <!--srcipt src="<?php echo e(asset('plugins/components/styleswitcher/jQuery.style.switcher.js')); ?>"></srcipt-->
        <script src="<?php echo e(asset('js/app-toast.js')); ?>"></script>

        <script src="<?php echo e(asset('js/jQuery.print.min.js')); ?>" type="text/JavaScript"></script>
        <script src="https://bootstrap-confirmation.js.org/assets/js/script.js"></script>
        <script src="https://bootstrap-confirmation.js.org/node_modules/bootstrap-confirmation2/bootstrap-confirmation.min.js">
        </script>

        <script src="<?php echo e(asset('js/d3.min.js')); ?>" type="text/JavaScript"></script>
        <script src="<?php echo e(asset('js/plugin.js')); ?>" type="text/JavaScript"></script>
        <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
        <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
 
 
        <?php echo $__env->yieldContent('js'); ?>
        <script>
            $.fn.select2.amd.define('select2/mytheme', [
                'select2/utils',
                'select2/themes/default'
            ], function(Utils, DefaultTheme) {
                var MyTheme = Utils.Decorate(DefaultTheme, function(decorated) {
                    this.defaults = $.extend({}, decorated.defaults, {
                        // Define your custom styles here
                        searchInputPadding: '4px 6px',
                        searchInputFontSize: '14px',
                        searchInputBorderRadius: '20px',
                        selectionBorderRadius: '20px',
                        selectionBackgroundColor: '#f1f3f4',
                        selectionBorderColor: '#d3d3d3',
                        selectionBorderWidth: '1px',
                        dropdownBorderRadius: '20px',
                        dropdownBackgroundColor: '#fff',
                        dropdownBorderColor: '#d3d3d3',
                        dropdownBorderWidth: '1px'
                    });
                });

                return MyTheme;
            });



            $('.selecttwo').select2({
                // theme: 'mytheme'
                theme: 'classic'
            });



            <?php if(Session::has('message')): ?>
                var type = "<?php echo e(Session::get('alert-type', 'info')); ?>";
                switch (type) {
                    case 'info':
                        toastr.info("<?php echo e(Session::get('message')); ?>");
                        break;

                    case 'warning':
                        toastr.warning("<?php echo e(Session::get('message')); ?>");
                        break;

                    case 'success':
                        toastr.success("<?php echo e(Session::get('message')); ?>");
                        break;

                    case 'error':
                        toastr.error("<?php echo e(Session::get('message')); ?>");
                        break;
                }
                <?php echo e(Session::forget('message')); ?>

            <?php endif; ?>

            //$('.select2').select2();
            $(".mydatepicker").datepicker();
            $('.swhicher-button button').on('click', function() {
                var buttonAttr = $(this).attr('data-att');
                $('link[data-style="color-style"]').attr('href', 'css/' + buttonAttr + '.css');
                $('.logo a img, .footer-logo a img').attr('src', 'images/' + buttonAttr + '-logo.png');
            });
            $('.setting-button-wrapper-1 .setting-button').on('click', function() {
                $('#id12').toggleClass('fa-angle-right');
                $('#id12').toggleClass('fa-calculator');
                $('.color-shicher-wraper').toggleClass('show-color');
                //$('.select2').select2();
            });



            $(document).ready(function() {

                $(".table").each(function() {
                    $(this).addClass("table-hover");
                });


                $(':input[type="number"]').attr({

                    "min": 0
                });

            });


            function numberWithCommas(x) {
                return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
            }
            $('#unit_number_app').change(function() {
                //update the unit information when unit number change
                $('.preloader').fadeIn();
                var data = {
                    'unit_number': $(this).val()
                };

                $.get('/getInformationByUnit', data, function(data) {
                    if (data) {
                        $('#total_amount_app').val(data.info.total_price - data.info.extra_amount);
                        $('#net_amount_app').val(data.info.total_price);
                        $('#extra_charges_app').val(data.info.extra_amount);
                        <?php if (\Illuminate\Support\Facades\Blade::check('role', 'admin')): ?>

                            if (data.info.status == <?php echo e(\App\Inventory::open); ?>)
                                $('#status_app').val('Open');
                            else if (data.info.status == <?php echo e(\App\Inventory::hold_client); ?>)
                                $('#status_app').val('Client Hold');
                            else if (data.info.status == <?php echo e(\App\Inventory::hold_company); ?>)
                                $('#status_app').val('Company Hold');
                            else if (data.info.status == <?php echo e(\App\Inventory::token_hold); ?>)
                                $('#status_app').val('Token Hold');
                            else if (data.info.status == <?php echo e(\App\Inventory::sold); ?>)
                                $('#status_app').val('Sold');
                        <?php else: ?>

                            if (data.info.status == <?php echo e(\App\Inventory::open); ?>)
                                $('#status_app').val('Open');
                            else
                                $('#status_app').val('Sold');
                        <?php endif; ?>


                        if (data.info.status == 1)
                            $('#status_app').val('Open');
                        else
                            $('#status_app').val('Sold');

                        $('#size_app').val(data.info.size.name + " <?php echo e(env('SIZE')); ?>");
                        // $('#inventory-id').val(data.info.id);
                        //  $('#description').val(data.info.description);
                        name = '';
                        for (i = 0; i < data.info.categories.length; i++) {
                            name += '<span class="tag label label-info">' + data.info.categories[i].category
                                .name + '</span>';
                        }


                        //$('#category_app').innerHTML();
                        document.getElementById('category_app').innerHTML = name;
                        //  $('#category').val(data.info.category.name);
                        $('#type_app').val(data.info.type.name);


                        $('#down_payment_app').val(Math.round(parseInt(data.schedule.down_payment) / 100 * data
                            .info.total_price));
                        $('#possession_app').val(Math.round(parseInt(data.schedule.possession) / 100 * data.info
                            .total_price));
                        $('#annual_installment_app').val(Math.round(data.schedule.annual_installment / 100 *
                            data.info.total_price / (data.schedule.total_months / 6)));
                        $('#total_months_app').val(Math.round(data.schedule.total_months));

                        $('#total_annual_installment_app').val(Math.round(data.schedule.annual_installment /
                            100 * data.info.total_price));

                        $('#monthly_installment_app').val(Math.round(data.schedule.monthly_installment / 100 *
                            data.info.total_price / (data.schedule.total_months)));

                        $('#total_monthly_installment_app').val(Math.round(data.schedule.monthly_installment /
                            100 * data.info.total_price));
                        $('#down_payment_app').keyup();
                    }
                });
                $('.preloader').fadeOut();

            });


            $('#down_payment_app').keyup(function() {

                total_price = parseInt($('#net_amount_app').val());
                if (!total_price)
                    total_price = 0;

                possession = parseInt($('#possession_app').val());
                if (!possession)
                    possession = 0;

                down_payment = parseInt($('#down_payment_app').val());
                if (!down_payment)
                    down_payment = 0;

                total_monthly_installment_app = parseInt($('#total_monthly_installment_app').val());
                if (!total_monthly_installment_app)
                    total_monthly_installment_app = 0;

                total_annual_installment_app = parseInt($('#total_annual_installment_app').val());
                if (!total_annual_installment_app)
                    total_annual_installment_app = 0;

                remaining_amount = total_price - possession - down_payment - total_monthly_installment_app -
                    total_annual_installment_app;
                //alert(remaining_amount);

                $('#total_monthly_installment_app').val(parseInt(total_monthly_installment_app + remaining_amount));

                $('#monthly_installment_app').val(parseInt((total_monthly_installment_app + remaining_amount) /
                    parseInt($('#total_months_app').val())));


            });

            $('#possession_app').keyup(function() {

                total_price = parseInt($('#net_amount_app').val());
                if (!total_price)
                    total_price = 0;

                possession = parseInt($('#possession_app').val());
                if (!possession)
                    possession = 0;

                down_payment = parseInt($('#down_payment_app').val());
                if (!down_payment)
                    down_payment = 0;

                total_monthly_installment_app = parseInt($('#total_monthly_installment_app').val());
                if (!total_monthly_installment_app)
                    total_monthly_installment_app = 0;

                total_annual_installment_app = parseInt($('#total_annual_installment_app').val());
                if (!total_annual_installment_app)
                    total_annual_installment_app = 0;

                remaining_amount = total_price - possession - down_payment - total_monthly_installment_app -
                    total_annual_installment_app;
                //alert(remaining_amount);

                $('#total_annual_installment_app').val(parseInt(total_annual_installment_app + remaining_amount));

                val = $('#annual_select').val();

                $('#annual_installment_app').val(parseInt((total_annual_installment_app + remaining_amount) / (parseInt(
                    $('#total_months_app').val()) / val)));


            });


            $('#monthly_installment_app').keyup(function() {

                monthly_installment_app = parseInt($('#monthly_installment_app').val());
                if (!monthly_installment_app)
                    monthly_installment_app = 0;

                $('#total_monthly_installment_app').val(monthly_installment_app * parseInt($('#total_months_app')
                    .val()));
                if (!total_monthly_installment_app)
                    total_monthly_installment_app = 0;

                total_price = parseInt($('#net_amount_app').val());
                if (!total_price)
                    total_price = 0;

                possession = parseInt($('#possession_app').val());
                if (!possession)
                    possession = 0;

                down_payment = parseInt($('#down_payment_app').val());
                if (!down_payment)
                    down_payment = 0;

                total_monthly_installment_app = parseInt($('#total_monthly_installment_app').val());
                if (!total_monthly_installment_app)
                    total_monthly_installment_app = 0;

                total_annual_installment_app = parseInt($('#total_annual_installment_app').val());
                if (!total_annual_installment_app)
                    total_annual_installment_app = 0;

                remaining_amount = total_price - possession - down_payment - total_monthly_installment_app -
                    total_annual_installment_app;
                //alert(remaining_amount);

                $('#total_annual_installment_app').val(parseInt(total_annual_installment_app + remaining_amount));
                val = $('#annual_select').val();

                $('#annual_installment_app').val(parseInt((total_annual_installment_app + remaining_amount) / (parseInt(
                    $('#total_months_app').val()) / val)));


            });


            $('#annual_installment_app').keyup(function() {

                annual_installment_app = parseInt($('#annual_installment_app').val());
                if (!annual_installment_app)
                    annual_installment_app = 0;

                val = $('#annual_select').val();


                $('#total_annual_installment_app').val(annual_installment_app * (parseInt($('#total_months_app')
                    .val()) / val));
                if (!total_annual_installment_app)
                    total_annual_installment_app = 0;

                total_price = parseInt($('#net_amount_app').val());
                if (!total_price)
                    total_price = 0;

                possession = parseInt($('#possession_app').val());
                if (!possession)
                    possession = 0;

                down_payment = parseInt($('#down_payment_app').val());
                if (!down_payment)
                    down_payment = 0;

                total_monthly_installment_app = parseInt($('#total_monthly_installment_app').val());
                if (!total_monthly_installment_app)
                    total_monthly_installment_app = 0;

                total_annual_installment_app = parseInt($('#total_annual_installment_app').val());
                if (!total_annual_installment_app)
                    total_annual_installment_app = 0;

                remaining_amount = total_price - possession - down_payment - total_monthly_installment_app -
                    total_annual_installment_app;
                //alert(remaining_amount);

                // $('#total_monthly_installment_app').val(parseInt(total_monthly_installment_app + remaining_amount));

                // $('#monthly_installment_app').val(parseInt((total_monthly_installment_app + remaining_amount) / 60));

                $('#possession_app').val(parseInt($('#possession_app').val()) + remaining_amount);


            });


            $("#total_months_app").keyup(function() {

                price = parseInt($('#net_amount_app').val());
                schedule = <?php echo json_encode($schedule->toArray()); ?>;

                val = $('#annual_select').val();


                if (price) {

                    $('#possession_app').val(Math.round(parseInt(schedule.possession) / 100 * price));
                    $('#down_payment_app').val(Math.round(parseInt(schedule.down_payment) / 100 * price));
                    $('#annual_installment_app').val(Math.round(schedule.annual_installment / 100 * price / (parseInt($(
                        '#total_months_app').val()) / val)));
                    $('#total_months_app').val(parseInt($('#total_months_app').val()));

                    $('#total_annual_installment_app').val(Math.round(schedule.annual_installment / 100 * price));

                    $('#monthly_installment_app').val(Math.round(schedule.monthly_installment / 100 * price / (parseInt(
                        $('#total_months_app').val()))));

                    $('#total_monthly_installment_app').val(Math.round(schedule.monthly_installment / 100 * price));

                }
            });

            $("#discount_app").keyup(function() {

                discount = parseFloat($('#discount_app').val());

                if (discount >= 0) {

                    price = parseInt($('#total_amount_app').val()) + parseInt($('#extra_charges_app').val());

                    if ($('#per_discount').is(':checked')) {
                        discount = price * (discount / 100);
                    }

                    price = price - discount;

                    $('#net_amount_app').val(price);

                    val = $('#annual_select').val();



                    schedule = <?php echo json_encode($schedule->toArray()); ?>;
                    if (price) {

                        $('#possession_app').val(Math.round(parseInt(schedule.possession) / 100 * price));
                        $('#down_payment_app').val(Math.round(parseInt(schedule.down_payment) / 100 * price));
                        $('#annual_installment_app').val(Math.round(schedule.annual_installment / 100 * price / (
                            parseInt($('#total_months_app').val()) / val)));
                        $('#total_months_app').val(parseInt($('#total_months_app').val()));

                        $('#total_annual_installment_app').val(Math.round(schedule.annual_installment / 100 * price));

                        $('#monthly_installment_app').val(Math.round(schedule.monthly_installment / 100 * price / (
                            parseInt($('#total_months_app').val()))));

                        $('#total_monthly_installment_app').val(Math.round(schedule.monthly_installment / 100 * price));

                    }
                } else {
                    price = parseInt($('#total_amount_app').val()) + parseInt($('#extra_charges_app').val());
                    $('#net_amount_app').val(price)
                }
            });


            $('#annual_select').change(function() {

                val = $('#annual_select').val();

                if (val == 1) {

                    $('#annual_installment_app').val(0);
                    $('#total_annual_installment_app').val(0);

                } else {
                    $('#annual_installment_app').val(parseInt($('#total_annual_installment_app').val() / (parseInt($(
                        '#total_months_app').val()) / val)));


                }

                annual_installment_app = parseInt($('#annual_installment_app').val());
                if (!annual_installment_app)
                    annual_installment_app = 0;

                $('#total_annual_installment_app').val();
                if (!total_annual_installment_app)
                    total_annual_installment_app = 0;

                total_price = parseInt($('#net_amount_app').val());
                if (!total_price)
                    total_price = 0;

                possession = parseInt($('#possession_app').val());
                if (!possession)
                    possession = 0;

                down_payment = parseInt($('#down_payment_app').val());
                if (!down_payment)
                    down_payment = 0;

                total_monthly_installment_app = parseInt($('#total_monthly_installment_app').val());
                if (!total_monthly_installment_app)
                    total_monthly_installment_app = 0;

                total_annual_installment_app = parseInt($('#total_annual_installment_app').val());
                if (!total_annual_installment_app)
                    total_annual_installment_app = 0;

                remaining_amount = total_price - possession - down_payment - total_monthly_installment_app -
                    total_annual_installment_app;

                $('#possession_app').val(parseInt($('#possession_app').val()) + remaining_amount);

            });



            function refresh() {

                $('#total_amount_app').val('');
                $('#discount_app').val('');
                $('#unit_number_app').val('');
                $('#status_app').val('');
                $('#net_amount_app').val('');
                $('#type_app').val('');
                $('#size_app').val('');
                $('#possession_app').val('');
                $('#down_payment_app').val('');
                $('#extra_charges_app').val('');

                document.getElementById('category_app').innerHTML = '';
                $('#annual_installment_app').val('');
                $('#total_months_app').val('');
                $('#total_annual_installment_app').val('');
                $('#monthly_installment_app').val('');
                $('#total_monthly_installment_app').val('');

                return false;

            }

            $(".sidebar-nav ul#side-menu li ").click(function() {
                $(this).find(".caret-icon").toggleClass('fa fa-caret-right fa fa-caret-down');
            });


            setTimeout(function() {
                $('#successMessage').hide('slow');
            }, 3000);
            $("#printableSection").find('#print').on('click', function() {
                //Print printableSection with custom options
                $("#printableSection").print({
                    //Use Global styles
                    globalStyles: true,
                    //Add link with attrbute media=print
                    mediaPrint: false,
                    iframe: false,
                    //Don't print this
                    noPrintSelector: ".avoid-this",
                    //Add this on bottom

                    // prepend : "<b>Print By </b> <?php echo e(Ucfirst(Auth::user()->name)); ?> <br/> <b>Date </b> <?php echo e(date('d-F-Y')); ?> <br/>  ",

                    // append : "<span><br/>GOOD LUCK!</span>",
                    //Log to console when printing is done via a deffered callback
                    deferred: $.Deferred().done(function() {
                        console.log('Printing done', arguments);
                    })
                });
            });


            //     const allStories = [
            //     {
            //         id: 0,
            //         socities_name: "Metro City",
            //         imageUrl: "images/test1.png",

            //     },
            //     {
            //         id: 1,
            //         socities_name: "Prism City",
            //         imageUrl: "images/test1.png",

            //     },
            //     {
            //         id: 2,
            //         socities_name: "BlueArc City",
            //         imageUrl: "images/newmetro.jpeg",

            //     },
            //     {
            //         id: 3,
            //         socities_name: "Roenclave Society",
            //         imageUrl: "images/test1.png",

            //     },
            //     {
            //         id: 4,
            //         socities_name: "Metro City",
            //         imageUrl: "images/metrocity.jpg",

            //     },

            // ];
            // const stories = document.querySelector(".stories");
            // const nextBtn = document.querySelector(".stories-container .next-btn");
            // const previousBtn = document.querySelector(".stories-container .previous-btn");
            // const storiesContent = document.querySelector(".stories-container .inside_content");
            // const createStories = () =>{
            //     allStories.forEach((s) => {
            //         const story = document.createElement("div");
            //         story.classList.add("story");
            //         const img = document.createElement("img");
            //         img.src = s.imageUrl;
            //         const socities_name = document.createElement("div");
            //         socities_name.classList.add("socities_name");
            //         socities_name.innerHTML = s.socities_name;

            //         story.appendChild(img);
            //         story.appendChild(socities_name);

            //         stories.appendChild(story);
            //     });
            // };
            // createStories();
            // nextBtn.addEventListener("click", () => {
            //     storiesContent.scrollLeft += 300;
            // });
            // previousBtn.addEventListener("click", () => {
            //     storiesContent.scrollLeft -= 300;
            // });
            // storiesContent.addEventListener("scroll", () =>{
            //     if(storiesContent.scrollLeft <= 24) {
            //         previousBtn.classList.remove("active");
            //     }
            //     else{
            //         previousBtn.classList.add("active");
            //     }


            //     let maxScrollValue = storiesContent.scrollWidth - storiesContent.clientWidth -24;
            //     if(storiesContent.scrollLeft >= maxScrollValue){
            //         nextBtn.classList.remove("active");
            //     }
            //     else{
            //         nextBtn.classList.add("active");
            //     }
            // });
        </script>
        <script type="text/javascript">
            var config = {
                '.chosen-select': {},
                '.chosen-select-deselect': {
                    allow_single_deselect: true
                },
                '.chosen-select-no-single': {
                    disable_search_threshold: 10
                },
                '.chosen-select-no-results': {
                    no_results_text: 'Oops, nothing found!'
                },
                '.chosen-select-rtl': {
                    rtl: true
                },
                '.chosen-select-width': {
                    width: '95%'
                }
            }
            for (var selector in config) {
                $(selector).chosen(config[selector]);
            }
       
            $('[data-toggle=confirmation]').confirmation({
                rootSelector: '[data-toggle=confirmation]',
               
            });

            function myFunction() {

                $('#myDropdown').show();

            }
            $(document).on('click', function(event) {
                if (!$(event.target).closest('.circle-btn, #myDropdown').length) {
                    $('#myDropdown').hide();
                }
            });
            // window.onclick = function(event) {
            // $('#myDropdown').hide();
            //    if (!event.target.matches('.newha .fa-user')) {
            //     var dropdowning = document.getElementsByClassName("newdiv");
            //     var i;
            //     for (i = 0; i < dropdowning.length; i++) {
            //       var openDropdown = dropdowning[i];
            //       if (openDropdown.classList.contains('show')) {
            //         openDropdown.classList.remove('show');
            //       }
            //     }
            //   }
            // }

            function show() {
                $('#newdrop').show();
                // $('#myDropdown').hide();
                //   document.getElementById("newdrop").classList.toggle("shows");
            }
            $(document).on('click', function(event) {
                if (!$(event.target).closest('.circle-btn, #newdrop').length) {
                    $('#newdrop').hide();
                }
            });

            function showed(event) {
                event.stopPropagation();
                var x = document.getElementById("newdrop");

                $('#newdrop').hide();
                $('#myDropdown').show();

                //   if (x.style.display === "none") {
                //     $('#newdrop').hide();
                //     // x.style.display = "block";
                //   } else {
                //     x.style.display = "none";
                //     myFunction();
                //   }
            }
            // Remove Container
            const sboxnew = document.querySelector(".sboxnew"),
                SelectBtn = sboxnew.querySelector(".select-btn"),
                searchInp = sboxnew.querySelector("input"),
                options = sboxnew.querySelector(".options");



            // Get the select element
            const selectElement = document.getElementById('multipro');

            // Get the options of the select element and create an array of objects
            const opt = Array.from(selectElement.options).map(option => ({
                value: option.value,
                text: option.text
            }));

            function addSocities(selectedSociety) {

                options.innerHTML = "";

                opt.forEach(({
                    value,
                    text
                }) => {
                    let isSelected = text === selectedSociety ? "selected" : "";
                    let li = `<li onclick="updateName(this)" class="${isSelected}"  value="${value}">${text}</li>`;
                    options.insertAdjacentHTML("beforeend", li);
                });
            }
            addSocities();

            function updateName(selectedLi) {

                searchInp.value = "";
                addSocities(selectedLi.innerText);
                sboxnew.classList.remove("active");
                SelectBtn.firstElementChild.innerText = selectedLi.innerText;
                const selectedValue = selectedLi.getAttribute('value');

                // Do something with the selected value

                updateStatus(selectedValue);
            }

            searchInp.addEventListener("keyup", () => {
                console.log(opt);

                let arr = [];
                let searchedVal = searchInp.value.toLowerCase();


                arr = opt.filter(data => {
                    return data.text.toLowerCase().startsWith(searchedVal);
                }).map(data => ` <li onclick="updateName(this)"    value="${data.value}">${data.text}</li>`).join(
                    "");
                options.innerHTML = arr ? arr : `<p>Project Not Found</p>`;

            });
            SelectBtn.addEventListener("click", () => {

                sboxnew.classList.toggle("active");
            });

            // Scroll
            let calcScrollValue = () => {
                let scrollProgess = document.getElementById("progress");
                let progressValue = document.getElementById("progress-value");
                let pos = document.documentElement.scrollTop;
                let calcHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight;
                let scrollvalue = Math.round((pos * 100) / calcHeight);

                if (pos > 100) {
                    scrollProgess.style.display = "grid";
                } else {
                    scrollProgess.style.display = "none";
                }
                scrollProgess.addEventListener("click", () => {
                    document.documentElement.scrollTop = 0;
                })
                scrollProgess.style.background = `conic-gradient(#0283cc ${scrollvalue}%, #d7d7d7 ${scrollvalue}%)`;
            };
            window.onscroll = calcScrollValue;
            window.onload = calcScrollValue
        </script>
        
          <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
          <script>
              var CSRF_TOKEN = $('meta[name="csrf-token"]').attr('content');
              // $("#postbutton").click(function() {

              function callFunctionSwitch(val) {
                  $('.preloader').fadeIn();
                  $.ajax({
                      /* the route pointing to the post function */
                      url: '<?php echo e(route('projectswitch.create')); ?>',
                      type: 'POST',
                      /* send the csrf-token and the input to the controller */
                      data: {
                          _token: CSRF_TOKEN,
                          project: val
                      },
                      dataType: 'JSON',
                      /* remind that 'data' is the response of the AjaxController */
                      success: function(data) {

                          $('.preloader').fadeOut();
                          //  localStorage.setItem('project_id', data.session);
                          Swal.fire({

                                  icon: 'success',
                                  title: 'Your Project Switched Successfully!',
                                  confirmButtonColor: '#3085d6',

                                  confirmButtonText: 'ok!',
                                  showCancelButton: false,
                                  allowOutsideClick: false
                              })
                              .then((result) => {
                                  if (result.isConfirmed) {

                                      location.href = "<?php echo e(route('home')); ?>";
                                  }
                              });


                      },
                      error: function(xhr, status, error) {
                          // handle error response here
                          if (xhr.status == 422) {
                              var errors = xhr.responseJSON.errors;
                              //   console.log(errors);
                              $('.preloader').fadeOut();
                              Swal.fire({
                                  icon: 'error',
                                  title: 'Oops...',
                                  text: 'Something went wrong!',

                              })

                          } else {
                              $('.preloader').fadeOut();
                              //   console.log(xhr.responseText);
                              Swal.fire({
                                  icon: 'error',
                                  title: 'Oops...',
                                  text: 'Something went wrong!',

                              })

                          }
                      }
                  });

                  //             var radioBtn = $(this);
                  //             Swal.fire({
                  //   title: 'Are you sure?',
                  //   text: 'You are about to switch the project.',
                  //   icon: 'warning',
                  //   showCancelButton: true,
                  //   confirmButtonText: 'Yes, switch it!',
                  //   cancelButtonText: 'No, cancel!',
                  // }).then(function(result) {
                  //   if (result.value) {
                  //     radioBtn.prop('checked', true);

                  //   }
                  //   else {

                  //     radioBtn.prop('checked', false);
                  //     }
                  //   });


                  //   Script Here Search Box

              }
          </script>
        </body>



        </html>
<?php /**PATH C:\xampp\htdocs\erpv7\resources\views/layouts/app.blade.php ENDPATH**/ ?>