<?php $__env->startSection('adminlte_css'); ?>
    <link rel="stylesheet"
          href="<?php echo e(asset('vendor/adminlte/dist/css/skins/skin-' . config('adminlte.skin', 'blue') . '.min.css')); ?> ">
    <link rel="stylesheet" href="<?php echo e(asset('vendor/adminlte/css/layout_style.css')); ?> ">
    <link rel="stylesheet" href="<?php echo e(asset('assets/layouts/loading-style.css')); ?> ">
    <link rel="stylesheet" href="<?php echo e(asset('assets/layouts/small-style.css')); ?> ">
    <link rel="stylesheet" href="<?php echo e(asset('assets/layouts/admin-style.css')); ?>">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/scripts/timepicker/bootstrap-timepicker.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/scripts/timepicker/jquery.timepicker.css')); ?>">
    <!-- comment -->
    <?php echo $__env->yieldPushContent('css'); ?>
    <?php echo $__env->yieldContent('css'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('body_class', 'skin-' . config('adminlte.skin', 'blue') . ' sidebar-mini ' . (config('adminlte.layout') ? [
'boxed' => 'layout-boxed',
'fixed' => 'fixed',
'top-nav' => 'layout-top-nav'
][config('adminlte.layout')] : '') . (config('adminlte.collapse_sidebar') ? ' sidebar-collapse ' : '')); ?>

<?php $__env->startSection('body'); ?>
    <?php if($message = Session::get('success')): ?>

        <div class="alert-message alert-success">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <i class="fa fa-check"></i>
            <h3>Success</h3>
            <p><?php echo e($message); ?></p>
        </div>
    <?php endif; ?>
    <?php if($message = Session::get('danger')): ?>
        <div class="alert-message alert-danger">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <i class="fa fa-exclamation-triangle"></i>
            <h3>Errors</h3>
            <p><?php echo e($message); ?></p>
        </div>
    <?php endif; ?>

    <?php if($message = Session::get('warning')): ?>
        <div class="alert-message alert-warning">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <i class="fa fa-exclamation-triangle"></i>
            <h3>Warning</h3>
            <p><?php echo e($message); ?></p>
        </div>
    <?php endif; ?>

    <?php if(count($errors) > 0): ?>
        <div class="alert-message  alert-danger">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <i class="fa fa-exclamation-triangle"></i>
            <h3>Whoops!</h3>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <p><?php echo e($error); ?></p>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    <?php endif; ?>

    <!--Main Spinner-->
    <!-- <div class="container">
       <div class="row mt">
          <div width="100%" height="100%">
             <div class="panel panel-default"  style="background-color:rgba(204,204,204,1);">
                <div class="adjust">
                   <div class="loader"></div>
                </div>
             </div>
          </div>
       </div>
    </div> -->
    <div id="main-spinner" class="modal"
         style="background-color: black;opacity: 0.3;color:white;z-index: 10000000000000;">
        <div class="text-center" style="margin-top: 25%;">
            <div class="adjust">
                <div class="loader3"></div>
            </div>
        </div>
    </div>
    <!--End-->

    <div class="wrapper">

        <!-- Main Header -->
        <header class="main-header">
            <?php if(config('adminlte.layout') == 'top-nav'): ?>
                <nav class="navbar navbar-static-top">
                    <div class="container">
                        <div class="navbar-header">
                            <a href="<?php echo e(url(config('adminlte.dashboard_url', 'home'))); ?>" class="navbar-brand">
                                <?php echo config('adminlte.logo', '<b>Admin</b>LTE'); ?>

                            </a>
                            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                                    data-target="#navbar-collapse">
                                <i class="fa fa-bars"></i>
                            </button>
                        </div>

                        <!-- Collect the nav links, forms, and other content for toggling -->
                        <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
                            <ul class="nav navbar-nav">
                                <?php echo $__env->renderEach('adminlte::partials.menu-item-top-nav', $adminlte->menu(), 'item'); ?>
                            </ul>
                        </div>
                        <!-- /.navbar-collapse -->
                    <?php else: ?>
                        <!-- Logo -->
                            <a href="<?php echo e(url(config('adminlte.dashboard_url', 'home'))); ?>" class="logo">
                                <!-- mini logo for sidebar mini 50x50 pixels -->
                                
                                <!-- logo for regular state and mobile devices -->
                                
                                <span class="logo-mini">TCK</span>
                                <span class="logo-lg">TCK</span>
                            </a>

                            <!-- Header Navbar -->
                            <nav class="navbar navbar-static-top" role="navigation">
                                <!-- Sidebar toggle button-->
                                <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                                    <span class="sr-only"><?php echo e(trans('adminlte::adminlte.toggle_navigation')); ?></span>
                                </a>
                                <?php endif; ?>


                                <div class="navbar-custom-menu pull-left">
                                    <ul class="nav navbar-nav">
                                        <li>
                                            <a href="<?php echo e(route('dashboard.super-admin')); ?>">
                                                <i class="fa fa-dashboard"></i> Dashboard
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            <?php if(config('adminlte.layout') == 'top-nav'): ?>
                    </div>
                <?php endif; ?>



                <!-- Navbar Right Menu -->
                    <div class="navbar-custom-menu">

                        <ul class="nav navbar-nav">
                            <li>
                                <a href="">Your IP: <?php echo e(Request::getClientIp(true)); ?></a>
                            </li>
                            <li class="dropdown notifications-menu">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                    <i class="fa fa-bell-o"></i>
                                    <span class="label label-warning">
                                        <?php echo e($count_register 
                                            + 
                                            (Gate::check('Deposit-List')?$count_deposit:0) 
                                            + 
                                            $count_withdrawal
                                            + 
                                            (Gate::check('Deposit-Make-Installment')?$count_client_contract:0)); ?>

                                    </span>
                                </a>
                                <ul class="dropdown-menu animated littleFadeInDown" style="width: 430px !important;">
                                    <li class="header">You
                                        have 
                                        <?php echo e($count_register 
                                            + 
                                            (Gate::check('Deposit-List')?$count_deposit:0) 
                                            + 
                                            $count_withdrawal
                                            + 
                                            (Gate::check('Deposit-Make-Installment')?$count_client_contract:0)); ?>

                                        notifications
                                    </li>
                                    <li>
                                        <!-- inner menu: contains the actual data -->
                                        <ul class="menu">
                                            

                                            <?php if(!empty($count_register)): ?>
                                                <li class="list-group-item">
                                                    <a href="<?php echo e(route('register.funds',0)); ?>" class="media">
                                            <span class="media-object media-icon">
                                                <i class="fa fa-user text-yellow"></i> You have <?php echo e($count_register); ?> for Register
                                            </span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>
                                            
                                            <?php if(!empty($count_deposit)): ?>
                                                <li class="list-group-item">
                                                    <a href="<?php echo e(route('account-funds-requested.deposite',0)); ?>"
                                                       class="media">
                                            <span class="media-object media-icon">
                                                <i class="fa fa-user text-yellow"></i> You have <?php echo e((Gate::check('Deposit-List')?$count_deposit:0)); ?> for Deposite</span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>

                                            <?php if(!empty($count_withdrawal)): ?>
                                                <li class="list-group-item">
                                                    <a href="<?php echo e(route('funds.request_withdraw_view',0)); ?>"
                                                       class="media">
                                            <span class="media-object media-icon">
                                                <i class="fa fa-user text-yellow"></i> You have <?php echo e($count_withdrawal); ?> for withdrawal</span>
                                                    </a>
                                                </li>
                                            <?php endif; ?>

                                            

                                            <?php if(!empty($count_client_contract)): ?>

                                                <li class="list-group-item">
                                                    <a href="<?php echo e(route('items-deposit.index',0)); ?>" class="media">
                                            <span class="media-object media-icon">
                                                <i class="fa fa-user text-yellow"></i> You have <?php echo e((Gate::check('Deposit-Make-Installment')?$count_client_contract:0)); ?> for Client Contract</span>
                                                    </a>
                                                </li>

                                            <?php endif; ?>

                                        </ul>
                                    </li>
                                    <!--                              <li class="footer"><a href="#">View all</a></li>-->
                                </ul>
                            </li>

                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">My Account <span
                                            class="caret"></span></a>
                                <ul class="dropdown-menu animated littleFadeInDown" role="menu">

                                    <li><a href="<?php echo e(route('account.super-admin')); ?>"><i class="fa fa-user"></i>
                                            Account</a></li>
                                    <li><a href="#"><i class="fa fa-cog"></i> Setting</a></li>
                                    <li><a href="#"><i class="fa fa-sign-out"></i> Log Out</a></li>
                                </ul>
                            </li>
                            <li>
                                <?php if(config('adminlte.logout_method') == 'GET' || !config('adminlte.logout_method') && version_compare(\Illuminate\Foundation\Application::VERSION, '5.3.0', '<')): ?>
                                    <a href="<?php echo e(url(config('adminlte.logout_url', 'auth/logout'))); ?>">
                                        <i class="fa fa-fw fa-power-off"></i> <?php echo e(trans('adminlte::adminlte.log_out')); ?>

                                    </a>
                                <?php else: ?>
                                    <a href="#"
                                       onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                                        <i class="fa fa-fw fa-power-off"></i> <?php echo e(trans('adminlte::adminlte.log_out')); ?>

                                    </a>
                                    <form id="logout-form"
                                          action="<?php echo e(url(config('adminlte.logout_url', 'auth/logout'))); ?>" method="POST"
                                          style="display: none;">
                                        <?php if(config('adminlte.logout_method')): ?>
                                            <?php echo e(method_field(config('adminlte.logout_method'))); ?>

                                        <?php endif; ?>
                                        <?php echo e(csrf_field()); ?>

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

                        </ul>
                    </div>
        <?php if(config('adminlte.layout') == 'top-nav'): ?>
    </div>
    <?php endif; ?>
    </nav>
    </header>

    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">

            <!-- Sidebar Menu -->
            <!-- <ul class="sidebar-menu" data-widget="tree"> -->
        <!-- <?php echo $__env->renderEach('adminlte::partials.menu-item', $adminlte->menu(), 'item'); ?> -->
            <ul class="sidebar-menu tree" data-widget="tree">
                
                <li class="treeview">
                    <?php if(Gate::check('User-List')||Gate::check('Position-List')||Gate::check('Roles-List')||Gate::check('Branch-Role-List')||Gate::check('Branch-List')): ?>
                        <a href="#">
                            <i class="fa fa-fw fa-circle-o"></i><span>Manage User</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                    <?php endif; ?>
                    <ul class="treeview-menu" style="">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('User-List')): ?>
                            <li>
                                <a href="<?php echo e(route('users.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Users</span></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Position-List')): ?>
                            <li>
                                <a href="<?php echo e(route('positions.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Position</span></a>
                            </li>
                        <?php endif; ?>
                        <?php if(Gate::check('Roles-List')): ?>
                        <li>
                            <a href="<?php echo e(route('roles.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Roles</span></a>
                        </li>
                        <?php endif; ?>
                        
                        <?php if(\Branch::branch_key()): ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Branch-Role-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('branch-role.edit',Crypt::encrypt(2))); ?>"><i
                                    class="fa fa-fw fa-circle-o "></i><span>Branch Role</span></a>
                                </li>
                            <?php endif; ?>
                        <?php endif; ?>
                        <?php if(Gate::check('Branch-List')): ?>
                            <?php if(!is_null(\Branch::branch_key())): ?>
                                <li><a href="<?php echo e(route('branches.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Branches</span></a>
                                </li>
                            <?php endif; ?>
                        <?php endif; ?>
                    </ul>
                </li>
                <li class="treeview">
                    <?php if(Gate::check('Client-List')||Gate::check('Relationship-List')||Gate::check('Project-List')||Gate::check('Category-List')||Gate::check('Items-List')||Gate::check('Item-Zone-List')||Gate::check('Item-Group-List')||Gate::check('Item-List')||Gate::check('Sub-Category-List')||Gate::check('Ceremony-List')||Gate::check('Product-Promotion-List')||Gate::check('Promotion-Setup-List')||Gate::check('POS-Create') || Gate::check('POS-Blocked-Item-List')||Gate::check('Deposit-List')||Gate::check('Client-Payment-List')||Gate::check('Client-Maintenance-House-List')||Gate::check('Client-Loan-Bank-Follow-up-List')||Gate::check('Client-Cancellation-List')||Gate::check('Approval-Payment-List')||Gate::check('Cash-Payment-Collection-List')||Gate::check('Payment-Reject-Report-List')||Gate::check('Lead-Add')||Gate::check('Lead-List')||Gate::check('CRM-Report')||Gate::check('Accounting-Journal-Create')||Gate::check('Accounting-Journal-List')): ?>
                    <a href="#">
                        <i class="fa fa-fw fa-circle-o"></i><span>OPERATION</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <?php endif; ?>
                    <ul class="treeview-menu" style="">
                        <li class="treeview">
                            <?php if(Gate::check('Client-List') || Gate::check('Relationship-List')||Gate::check('Lead-Add')||Gate::check('Lead-List')||Gate::check('CRM-Report')): ?>
                                <a href="#">
                                    <i class="fa fa-fw fa-circle-o"></i><span>Manage Client</span>
                                    <span class="pull-right-container">
                                        <i class="fa fa-angle-left pull-right"></i>
                                    </span>
                                </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <li class="treeview">
                                    <?php if(Gate::check('Lead-Add')||Gate::check('Lead-List')||Gate::check('CRM-Report')): ?>
                                    <a href="#">
                                        <i class="fa fa-fw fa-circle-o"></i><span>Manage CRM</span>
                                        <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                    </a>
                                    <?php endif; ?>
                                    <ul class="treeview-menu">
                                        <?php if(Gate::check('Lead-Add')): ?>
                                        <li><a href="<?php echo e(route('lead.create')); ?>"><i
                                                        class="fa fa-fw fa-circle-o "></i><span>Add Lead</span></a></li>
                                        <?php endif; ?>
                                        <?php if(Gate::check('Lead-List')): ?>
                                        <li><a href="<?php echo e(route('lead.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Lead</span></a>
                                        </li>
                                        <?php endif; ?>
                                        <?php if(Gate::check('CRM-Report')): ?>
                                        <li class="treeview">
                                            <a href="#">
                                                <i class="fa fa-fw fa-plus-circle"></i><span>CRM Report</span>
                                                <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                            </a>
                                            <ul class="treeview-menu">
                                                <li><a href="<?php echo e(route('lead.lead-report')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Lead</span></a>
                                                </li>
                                                <li><a href="<?php echo e(route('lead.task-report')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Task</span></a>
                                                </li>
                                            </ul>
                                        </li>
                                        <?php endif; ?>
                                    </ul>
                
                                </li>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Client-List')): ?>
                                    <li><a href="<?php echo e(route('clients.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Client Profile</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Relationship-List')): ?>
                                    <li><a href="<?php echo e(route('clients-relationship.index')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Client Relationship List</span></a>
                                    </li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <?php if(!is_null(\Branch::branch_key())): ?>
                            
                                    <?php if(Gate::check('Agency-Create')): ?>
                                        
                                    <?php endif; ?>
        
                                    <?php if(Gate::check('Agency-List')): ?>
                                        
                                    <?php endif; ?>
                                    
                                    
                                    
                                    
                                    
                                
                            
                            
                        <?php endif; ?>
                        <li class="treeview">
                            <?php if(Gate::check('Project-List')||Gate::check('Category-List')||Gate::check('Items-List')||Gate::check('Item-Zone-List')||Gate::check('Item-Group-List')||Gate::check('Item-List')||Gate::check('Sub-Category-List')): ?>
                                <a href="#">
                                    <i class="fa fa-fw fa-circle-o"></i>Manage Product</span>
                                    <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                                </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Project-List')): ?>
                                    <li>
                                        <a href="<?php echo e(route('projects.index')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Project</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Category-List')): ?>
                                    <li>
                                        <a href="<?php echo e(route('categories.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Category</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Sub-Category-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('sub-categories.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Sub Category</span></a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Item-Group-List')): ?>
                                    <li><a href="<?php echo e(route('item-group.index')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Group</span></a></li>
                                <?php endif; ?>
                                <?php if(Gate::check('Item-Zone-List')): ?>
                                    <li><a href="<?php echo e(route('item-zone.index')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Zone</span></a></li>
                                <?php endif; ?>
                                <?php if(Gate::check('Item-List')): ?>
                                    <li><a href="<?php echo e(route('items.index')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Item</span></a></li>
                                <?php endif; ?>
                            <!-- <li><a href="<?php echo e(route('updated-price-item-list')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Updated Price List</span></a></li>
                            <li><a href="<?php echo e(route('updated-commission-item-list')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Updated Commission List</span></a></li> -->
                                
                                
                                
                            </ul>
                        </li>
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                            
                        <li class="treeview">
                            <?php if(Gate::check('Ceremony-List')||Gate::check('Product-Promotion-List')||Gate::check('Promotion-Setup-List')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i>Manage Promotion
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Ceremony-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('promotion.ceremony_list')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i><span>Ceremony</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Product-Promotion-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('promotion.product_promotion_list')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i><span>Product for promotion</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Promotion-Setup-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('promotion.promotion_list')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i><span>Promotion Set-up</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                            </ul>
                        </li>
        
                        <li class="treeview">
                            <?php if(Gate::check('POS-Create') || Gate::check('POS-Blocked-Item-List')): ?>
                                <a href="#">
                                    <i class="fa fa-fw fa-circle-o"></i><span>POS</span>
                                    <span class="pull-right-container">
                                        <i class="fa fa-angle-left pull-right"></i>
                                    </span>
                                </a>
                            <?php endif; ?>
                            <ul class="treeview-menu" style="display: none;">
                                <?php if(Gate::check('POS-Create')): ?>
                                    <li class="">
                                        <a href="<?php echo e(route('create-pos')); ?>">
                                            <i class="fa fa-fw fa-circle-o"></i><span>POS</span>
                                            <span class="pull-right-container"></span>
                                        </a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('POS-Blocked-Item-List')): ?>
                                    <?php if(Auth::user()->block_permission==1): ?>
                                        <li class="">
                                            <a href="<?php echo e(route('blocked-item-list')); ?>">
                                                <i class="fa fa-fw fa-circle-o "></i><span>Blocked Items</span>
                                                <span class="pull-right-container"></span>
                                            </a>
                                        </li>
                                    <?php endif; ?>
                                <?php endif; ?>
                            </ul>
                        </li>
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        <li class="treeview">
                            <?php if(Gate::check('Deposit-List')||Gate::check('Client-Payment-List')||Gate::check('Client-Maintenance-House-List')||Gate::check('Client-Loan-Bank-Follow-up-List')||Gate::check('Client-Cancellation-List')): ?>
                                <a href="#">
                                    <i class="fa fa-fw fa-circle-o"></i><span>Manage Operation</span>
                                    <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                                </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Deposit-List')): ?>
                                    <li><a href="<?php echo e(route('items-deposit.index',1)); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Deposit</span><span
                                                    class="pull-right-container"><span class="label label-success pull-right">New</span></span></a>
                                    </li>
                                    <li>
                                        <a href="<?php echo e(route('sale_promotion_list')); ?>">
                                            <i class="fa fa-fw fa-circle-o "></i><span>Sale Promotion List</span>
                                        </a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Client-Payment-List')): ?>
                                    <li><a href="<?php echo e(route('sale-list.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Client Payment</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Client-Maintenance-House-List')): ?>
                                    <li><a href="<?php echo e(route('maintenance-list.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Client Maintenance House</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Client-Loan-Bank-Follow-up-List')): ?>
                                    <li><a href="<?php echo e(route('get_data_client_loan_bank')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Client Loan Bank</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Add-Commission')): ?>
                                    
                                <?php endif; ?>
                                <?php if(Gate::check('Commission-Group-List')): ?>
                                    
                                <?php endif; ?>
                                <?php if(Gate::check('Commission-Network-List')): ?>
                                    
                                <?php endif; ?>
                                <?php if(Gate::check('Client-Cancellation-List')): ?>
                                    <li><a href="<?php echo e(route('cancel-deposit.index_cancellation')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Cancellation</span></a></li>
                                <?php endif; ?>
                                
                                
                            </ul>
                        </li>
                        
                        
                        <li class="treeview">
                            <?php if(Gate::check('Approval-Payment-List')||Gate::check('Cash-Payment-Collection-List')||Gate::check('Payment-Reject-Report-List')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>Manage Approve Payment</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Approval-Payment-List')): ?>
                                    <li><a href="<?php echo e(route('client_payment_pending')); ?>"><i class="fa fa-fw fa-circle-o"></i><span>Approval Payment</span></a>
                                    </li>
                                <?php endif; ?>









                                <?php if(Gate::check('Cash-Payment-Collection-List')): ?>
                                    <li><a href="<?php echo e(route('report_approve_payment')); ?>"><i class="fa fa-fw fa-circle-o"></i><span>Cash Payment Collection</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Payment-Reject-Report-List')): ?>
                                    <li><a href="<?php echo e(route('report_reject_payment')); ?>"><i class="fa fa-fw fa-circle-o"></i><span>Payment Reject Report</span></a>
                                    </li>
                                <?php endif; ?>
                            </ul>
                        </li>
        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
        
                        <?php if(!is_null(\Branch::branch_key())): ?>
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
        
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
        
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
        
                            
                        <?php endif; ?>
                        <li class="treeview">
                            <?php if(Gate::check('Accounting-Journal-Create')||Gate::check('Accounting-Journal-List')): ?>
                                <a href="#">
                                    <i class="fa fa-fw fa-circle-o"></i><span>Accounting</span>
                                    <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                                </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Accounting-Journal-Create')): ?>
                                    <li><a href="<?php echo e(route('journal.create')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Add Journal</span></a></li>
                                <?php endif; ?>
                                <?php if(Gate::check('Accounting-Journal-List')): ?>
                                    <li><a href="<?php echo e(route('journal.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Journal List</span></a></li>
                                <?php endif; ?>
                            <!-- <li><a href="<?php echo e(route('accouting-withdrawal.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Withdrawal</span></a></li>--}} -->
                            <!--<li><a href="<?php echo e(route('accounting-payable.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Account Payable</span></a></li>
                            <li><a href="<?php echo e(route('libility.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Liability</span></a></li>
                            <li><a href="<?php echo e(route('accouting-capital.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Capital</span></a></li>
                            <li><a href="<?php echo e(route('accouting-income.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Income</span></a></li>
                            <li><a href="<?php echo e(route('accouting-expense.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Expense</span></a></li>-->
        
                                
                            </ul>
                        </li>
                    </ul>
                </li>
                <!--End Operation-->
                <li class="treeview">
                    <?php if(Gate::check('Edit-House-Create')||Gate::check('Edit-House-List')): ?>
                    <a href="#">
                        <i class="fa fa-fw fa-circle-o"></i><span>MANAGE EDIT HOUSE</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <?php endif; ?>
                    <ul class="treeview-menu" style="">
                        <?php if(Gate::check('Edit-House-Create')): ?>
                        <li>
                            <a href="<?php echo e(route('edit_house.create')); ?>">
                                <i class="fa fa-fw fa-circle-o "></i><span>Create</span>
                            </a>
                        </li>
                        <?php endif; ?>
                        <?php if(Gate::check('Edit-House-List')): ?>
                        <li>
                            <a href="<?php echo e(route('edit_house.index')); ?>">
                                <i class="fa fa-fw fa-circle-o "></i><span>Show</span>
                            </a>
                        </li>
                        <?php endif; ?>
                    </ul>
                </li>
                
                <li class="treeview">
                    <?php if(Gate::check('Construction-Project-List')||Gate::check('Construction-Zone-List')||Gate::check('Construction-Supplier-List')||Gate::check('Construction-Product-Category-List')||Gate::check('Construction-Product-Sub-Category-List')||Gate::check('Construction-Unit-Type-List')||Gate::check('Construction-Product-List')||Gate::check('Construction-Warehouse-List')||Gate::check('Construction-Contractor-List')||Gate::check('Construction-Work-Group-Type-List')||Gate::check('Construction-CEO-Approval-BOQ-List')||Gate::check('Construction-CEO-Approval-Purchase-Order-List')||Gate::check('Construction-CEO-Approval-Ajustment-Purchase-List')||Gate::check('Construction-CEO-Approval-Cash-Advance-List')||Gate::check('Construction-Financial-Approval-BOQ-List')||Gate::check('Construction-Financial-Approval-Purchase-Order-List')||Gate::check('Construction-Financial-Approval-Ajustment-Purchase-List')||Gate::check('Construction-Financial-Approval-Cash-Advance-List')||Gate::check('Construction-Financial-Approval-Cash-Advance-List')||Gate::check('Construction-Request-BOQ-List')||Gate::check('Construction-Purchase-Order-List')||Gate::check("Construction-Assign-Product-To-Warehouse-List")||Gate::check('Construction-Origin-Stock-List')||Gate::check('Construction-Ajust-Stock-List')||Gate::check('Construction-Manage-Using-List')||Gate::check('Construction-Origin-Stock-Out-List')||Gate::check('Construction-Ajust-Stock-Out-List')||Gate::check('Construction-Return-To-Ajust-Stock-List')||Gate::check('Construction-Contractor-Task&Responsibilities-List')||Gate::check('Construction-Contractor-Check-Task-Working-List')||Gate::check('Construction-Contractor-Payment-List')||Gate::check('Construction-Contractor-Cash-Advance-List')||Gate::check('Category-Task-List')||Gate::check('Work-Task-List')||Gate::check('Category-Responsibilities-List')||Gate::check('Work-Responsibilities-List')||Gate::check('Purchase-Payment-List')): ?>
                    <a href="#">
                        <i class="fa fa-fw fa-circle-o"></i><span>CONSTRUCTION</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <?php endif; ?>
                    <ul class="treeview-menu" style="">
                        <li class="treeview">
                            <?php if(Gate::check('Construction-Project-List')||Gate::check('Construction-Zone-List')||Gate::check('Construction-Supplier-List')||Gate::check('Construction-Product-Category-List')||Gate::check('Construction-Product-Sub-Category-List')||Gate::check('Construction-Unit-Type-List')||Gate::check('Construction-Product-List')||Gate::check('Construction-Warehouse-List')||Gate::check('Construction-Contractor-List')||Gate::check('Construction-Work-Group-Type-List')||Gate::check('Category-Task-List')||Gate::check('Work-Task-List')||Gate::check('Category-Responsibilities-List')||Gate::check('Work-Responsibilities-List')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>Set Up Information</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu" style="">
                                <?php if(Gate::check('Construction-Project-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('project_construction.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Project</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Zone-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction_zone_controller.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Zone</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                
                                <?php if(Gate::check('Construction-Supplier-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-suppliers.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Suppliers</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Product-Category-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-categories.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Category Product</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Product-Sub-Category-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-brand.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Sub Category Product</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Unit-Type-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction_unit.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Unit Type</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Product-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-product.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Product List</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Warehouse-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('warehouse-construction.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Warehouse</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Contractor-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-constructor.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Contractor</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Work-Group-Type-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('task-working-construction.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Work Group Type</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Category-Task-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('task-working-construction.index_sub_task')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Category Task</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Work-Task-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('task-working-construction.list_task_contractor')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Work Task</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Category-Responsibilities-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('task-working-construction.index_category_responsibilities')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Category Responsibilities</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Work-Responsibilities-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('task-working-construction.list_responsibilities_contractor')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Work Responsibilities</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Construction-CEO-Approval-BOQ-List')||Gate::check('Construction-CEO-Approval-Purchase-Order-List')||Gate::check('Construction-CEO-Approval-Ajustment-Purchase-List')||Gate::check('Construction-CEO-Approval-Cash-Advance-List')): ?>
                            <?php
                             $total_ceo_budget = (Gate::check('Construction-CEO-Approval-Budget')?(!empty($budget_count_ceo)?count($budget_count_ceo):0):0);
                             $total_ceo = 
                                //(Gate::check('Construction-CEO-Approval-BOQ-List')?count($ceo_approval_boq):0)+
                                //(Gate::check('Construction-CEO-Approval-Purchase-Order-List')?count($ceo_approval_purchase_order):0)+ 
                                //(Gate::check('Construction-CEO-Approval-Ajustment-Purchase-List')?count($ceo_approval_ajust_purchase):0)+ 
                                (Gate::check('Construction-CEO-Approval-Cash-Advance-List')?count($ceo_approval_cash_advance):0) + $total_ceo_budget;
                            ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>CEO Approvals</span> 
                                <?php if($total_ceo>0): ?>
                                <span class="badge badge-sm bg-green">
                                    <?php echo e($total_ceo); ?>

                                </span>
                                <?php endif; ?>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Construction-CEO-Approval-BOQ-List')): ?>
                                <li style="display: none;">
                                    <a href="<?php echo e(route('construction-ceo-approval-boq.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Request BOQ</span> 
                                        <?php $boq_ceo = (Gate::check('Construction-CEO-Approval-BOQ-List')?count($ceo_approval_boq):0); ?>
                                        <?php if($boq_ceo>0): ?>
                                        <span class="badge bg-aqua">
                                            <?php echo e($boq_ceo); ?>

                                        </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-CEO-Approval-Purchase-Order-List')): ?>
                                <li style="display: none;">
                                    <a href="<?php echo e(route('construction-purchase.ceo_approval_index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Purchase Order</span> 
                                        <?php $po_ceo = (Gate::check('Construction-CEO-Approval-Purchase-Order-List')?count($ceo_approval_purchase_order):0); ?>
                                        <?php if($po_ceo>0): ?>
                                        <span class="badge bg-aqua">
                                            <?php echo e($po_ceo); ?>

                                        </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-CEO-Approval-Ajustment-Purchase-List')): ?>
                                <li style="display: none;">
                                    <a href="<?php echo e(route('construction-purchase.ceo_approval_ajust_purchase_index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Ajustment Purchase</span> 
                                        <?php $ajust_po_ceo = (Gate::check('Construction-CEO-Approval-Ajustment-Purchase-List')?count($ceo_approval_ajust_purchase):0); ?>
                                        <?php if($ajust_po_ceo>0): ?>
                                        <span class="badge bg-aqua">
                                            <?php echo e($ajust_po_ceo); ?>

                                        </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-CEO-Approval-Cash-Advance-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-ceo-approval-cash_advance_index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Cash Advance</span> 
                                        <?php $cash_advance_ceo = (Gate::check('Construction-CEO-Approval-Cash-Advance-List')?count($ceo_approval_cash_advance):0); ?>
                                        <?php if($cash_advance_ceo>0): ?>
                                        <span class="badge bg-aqua">
                                            <?php echo e($cash_advance_ceo); ?>

                                        </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-CEO-Approval-Budget')): ?>
                                <li>
                                    <a href="<?php echo e(route('budget_construction_ceo_approval')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Budget Construction</span>
                                        <?php if($total_ceo_budget>0): ?>
                                        <span class="badge bg-aqua">
                                            <?php echo e($total_ceo_budget); ?>

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

                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Construction-Financial-Approval-BOQ-List')||Gate::check('Construction-Financial-Approval-Purchase-Order-List')||Gate::check('Construction-Financial-Approval-Ajustment-Purchase-List')||Gate::check('Construction-Financial-Approval-Cash-Advance-List')||Gate::check('Construction-Financial-Approval-Cash-Advance-List')): ?>
                            <?php 
                                $boq_financial = 0;$po_financial = 0;$ajust_po_financial = 0;
                                //$boq_financial = (Gate::check('Construction-Financial-Approval-BOQ-List')?count($financial_approval_boq):0);
                                //$po_financial = (Gate::check('Construction-Financial-Approval-Purchase-Order-List')?count($financial_approval_purchase_order):0);

                                //$ajust_po_financial = (Gate::check('Construction-Financial-Approval-Ajustment-Purchase-List')?count($financial_approval_ajust_purchase):0);
                                $cash_advance = (Gate::check('Construction-Financial-Approval-Cash-Advance-List')?count($financial_approval_cash_advance):0);
                                $total_financial_budget = (Gate::check('Construction-Financial-Approval-Budget')?(!empty($budget_count_financial)?count($budget_count_financial):0):0);
                                $total_financial = $boq_financial + $po_financial + $ajust_po_financial + $cash_advance + $total_financial_budget;
                            ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>Financial Approvals</span>
                                <?php if($total_financial>0): ?>
                                    <span class="badge badge-sm bg-green">
                                        <?php echo e($total_financial); ?>

                                    </span>
                                <?php endif; ?>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Construction-Financial-Approval-BOQ-List')): ?>
                                <li style="display: none;">
                                    <a href="<?php echo e(route('construction-financial-approval-boq.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Request BOQ</span>
                                        <?php if($boq_financial>0): ?>
                                            <span class="badge bg-aqua">
                                                <?php echo e($boq_financial); ?>

                                            </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Financial-Approval-Purchase-Order-List')): ?>
                                <li style="display: none;">
                                    <a href="<?php echo e(route('construction-purchase.financial_approval_index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Purchase Order</span>
                                        <?php if($po_financial>0): ?>
                                            <span class="badge bg-aqua">
                                                <?php echo e($po_financial); ?>

                                            </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Financial-Approval-Ajustment-Purchase-List')): ?>
                                <li style="display: none;">
                                    <a href="<?php echo e(route('construction-purchase.financial_approval_ajust_purchase_index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Ajustment Purchase</span>
                                        <?php if($ajust_po_financial>0): ?>
                                            <span class="badge bg-aqua">
                                                <?php echo e($ajust_po_financial); ?>

                                            </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Financial-Approval-Cash-Advance-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction.approval_cash_advance_index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Cash Advance</span>
                                        <?php if($cash_advance>0): ?>
                                            <span class="badge bg-aqua">
                                                <?php echo e($cash_advance); ?>

                                            </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Financial-Approval-Budget')): ?>
                                <li>
                                    <a href="<?php echo e(route('budget_construction_approval')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>budget construction</span>
                                        <?php if($total_financial_budget>0): ?>
                                            <span class="badge bg-aqua">
                                                <?php echo e($total_financial_budget); ?>

                                            </span>
                                        <?php endif; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Construction-Purchase-Budget-List')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>Budget</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Construction-Purchase-Budget-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('budget-construction.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Budget Construction</span>
                                    </a>
                                </li>
                                <?php endif; ?>

                                <li>
                                    <a href="<?php echo e(route('budget_construction.list_other_expense')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Other Expense</span>
                                    </a>
                                </li>

                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Construction-Request-BOQ-List')||Gate::check('Construction-Purchase-Order-List')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>BOQ & Purchase Order</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Construction-Request-BOQ-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-boq.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Request BOQ</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Purchase-Order-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-make-purchase-order.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Purchase Order</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <?php if(Gate::check('Purchase-Payment-List')): ?>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>Purchase Payment</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <ul class="treeview-menu">
                                <li>
                                    <a href="<?php echo e(route('purchase-payment.purchase_list')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Supplier Payment</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo e(route('purchase-payment.payment_history_list')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Payment History</span>
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <?php endif; ?>
                        <li class="treeview">
                            <?php if(Gate::check("Construction-Assign-Product-To-Warehouse-List")||Gate::check('Construction-Origin-Stock-List')||Gate::check('Construction-Ajust-Stock-List')||Gate::check('Construction-Manage-Using-List')||Gate::check('Construction-Origin-Stock-Out-List')||Gate::check('Construction-Ajust-Stock-Out-List')||Gate::check('Construction-Return-To-Ajust-Stock-List')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>Manage Construction Stock</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check("Construction-Assign-Product-To-Warehouse-List")): ?>
                                <li style="display: none;">
                                    <a href="<?php echo e(route('construction-purchase.verified_product_list')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Assign to warehouse</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <li class="treeview">
                                    <?php if(Gate::check('Construction-Origin-Stock-List')||Gate::check('Construction-Ajust-Stock-List')): ?>
                                    <a href="#">
                                        <i class="fa fa-fw fa-plus-circle"></i><span>Product Stock List</span>
                                        <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                    </a>
                                    <?php endif; ?>
                                    <ul class="treeview-menu">
                                        <?php if(Gate::check('Construction-Origin-Stock-List')): ?>
                                        <li>
                                            <a href="<?php echo e(route('construction.origin_stock_list')); ?>"><i class="fa fa-fw fa-circle-o "></i>Origin Stock</a>
                                        </li>
                                        <?php endif; ?>
                                        <?php if(Gate::check('Construction-Ajust-Stock-List')): ?>
                                        <li>
                                            <a href="<?php echo e(route('construction.ajust_stock_list')); ?>"><i class="fa fa-fw fa-circle-o "></i>Ajust Stock</a>
                                        </li>
                                        <?php endif; ?>
                                    </ul>
                                </li>
                                <li class="treeview">
                                    <?php if(Gate::check('Construction-Manage-Using-List')||Gate::check('Construction-Origin-Stock-Out-List')||Gate::check('Construction-Ajust-Stock-Out-List')||Gate::check('Construction-Return-To-Ajust-Stock-List')): ?>
                                    <a href="#">
                                        <i class="fa fa-fw fa-plus-circle"></i><span>Manage Stock</span>
                                        <span class="pull-right-container">
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </span>
                                    </a>
                                    <?php endif; ?>
                                    <ul class="treeview-menu">
                                        <?php if(Gate::check('Construction-Manage-Using-List')): ?>
                                        
                                        <?php endif; ?>
                                        <?php if(Gate::check('Construction-Origin-Stock-Out-List')): ?>
                                        <li>
                                            <a href="<?php echo e(route('construction.request_stock_out')); ?>">
                                                <i class="fa fa-fw fa-circle-o "></i><span>Origin Stock Out</span>
                                            </a>
                                        </li>
                                        <?php endif; ?>
                                        <?php if(Gate::check('Construction-Ajust-Stock-Out-List')): ?>
                                        <li>
                                            <a href="<?php echo e(route('construction.ajustment_stock_out_index')); ?>">
                                                <i class="fa fa-fw fa-circle-o "></i><span>Ajust Stock Out</span>
                                            </a>
                                        </li>
                                        <?php endif; ?>
                                        <?php if(Gate::check('Construction-Return-To-Ajust-Stock-List')): ?>
                                        <li>
                                            <a href="<?php echo e(route('construction.ajust_stock_index')); ?>">
                                                <i class="fa fa-fw fa-circle-o "></i><span>Return To Ajust Stock</span>
                                            </a>
                                        </li>
                                        <?php endif; ?>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Construction-Contractor-Task&Responsibilities-List')||Gate::check('Construction-Contractor-Check-Task-Working-List')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-plus-circle"></i><span>Manage Contractor</span>
                                <span class="pull-right-container">
                                    <?php if($count_deadline>0): ?>
                                        <span class="badge badge-sm bg-green">
                                            <?php echo e($count_deadline); ?>

                                        </span>
                                    <?php endif; ?>
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Construction-Contractor-Task&Responsibilities-List')): ?>
                                <li><a href="<?php echo e(route('task_responsibilities_contractor.index')); ?>"><i class="fa fa-fw fa-circle-o "></i>Task&Responsibility</a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Contractor-Check-Task-Working-List')): ?>
                                <li><a href="<?php echo e(route('task_contractor.check_task_index')); ?>"><i class="fa fa-fw fa-circle-o "></i>Check Task Working <?php if($count_deadline>0): ?>
                                    <span class="badge badge-sm bg-green">
                                        <?php echo e($count_deadline); ?>

                                    </span>
                                <?php endif; ?></a>
                                </li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Construction-Contractor-Payment-List')||Gate::check('Construction-Contractor-Cash-Advance-List')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>Contractor Payment</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Construction-Contractor-Payment-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction_constructor_payment.index')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Contractor Payment List</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Construction-Contractor-Cash-Advance-List')): ?>
                                <li>
                                    <a href="<?php echo e(route('payment.request_cash_advance_list')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Cash Advance List</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                            </ul>
                        </li>
                    </ul>
                </li>

                
                <li class="treeview">
                    <?php if(Gate::check('Ledger-Report')||Gate::check('TrialBalance-Report')||Gate::check('BalanceSheet-Report')||Gate::check('IncomeStatement-Report')||Gate::check('Payment-Due-List')||Gate::check('Arrear-List')||Gate::check('PaymentCollectied-List')||Gate::check('PaymentCompleted-List')||Gate::check('Sale-Payment-Summary-List')||Gate::check('All-Payment-List')||Gate::check('Canceled-Installment-List')||Gate::check('InstallmentCompleted-List')||Gate::check('PaymentCollected-List')||Gate::check('Report-Promotion')||Gate::check('Report-Promotion')||Gate::check('Item-Stock-List')||Gate::check('Sold-Item-List')||Gate::check('Purchase-Order-Report')||Gate::check('Origin-Stock-Product-Report')||Gate::check('Origin-Stock-Out-Report')||Gate::check('To-Ajustment-Stock-Report')||Gate::check('Ajustment-Stock-Out-Report')||Gate::check('Summary-Payment-Report')||Gate::check('Payment-History-Report')||Gate::check('Report-Purchase-Payment')): ?>
                    <a href="#">
                        <i class="fa fa-fw fa-circle-o"></i><span>REPORTS</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <?php endif; ?>
                    <ul class="treeview-menu" style="">
                        
                        

                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        

                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        

                        <li class="treeview">
                            <?php if(Gate::check('Ledger-Report')||Gate::check('TrialBalance-Report')||Gate::check('BalanceSheet-Report')||Gate::check('IncomeStatement-Report')): ?>
                                <a href="#">
                                    <i class="fa fa-fw fa-circle-o"></i><span>Report Accounting</span>
                                    <span class="pull-right-container">
                                        <i class="fa fa-angle-left pull-right"></i>
                                    </span>
                                </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">

                                <?php if(Gate::check('Ledger-Report')): ?>
                                    <li><a href="<?php echo e(route('accounting-report.ledger')); ?>"><i
                                                    class="fa fa-fw fa-circle-o"></i><span>Ledger</span></a></li>
                                <?php endif; ?>
                                <?php if(Gate::check('TrialBalance-Report')): ?>
                                    <li><a href="<?php echo e(route('accounting-report.trail-balance')); ?>"><i
                                                    class="fa fa-fw fa-circle-o"></i><span>Trial Balance</span></a></li>
                                <?php endif; ?>




                                <?php if(Gate::check('BalanceSheet-Report')): ?>
                                    <li><a href="<?php echo e(route('accounting-report.balance-sheet')); ?>"><i
                                                    class="fa fa-fw fa-circle-o"></i><span>Balance Sheet </span></a></li>
                                <?php endif; ?>
                                <?php if(Gate::check('IncomeStatements-Report')): ?>
                                    <li><a href="<?php echo e(route('accounting-report.income-statement')); ?>"><i
                                                    class="fa fa-fw fa-circle-o"></i><span>Income Statement</span></a></li>
                                <?php endif; ?>
                                
                                
                                

                                
                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Payment-Due-List')||Gate::check('Arrear-List')||Gate::check('PaymentCollectied-List')||Gate::check('PaymentCompleted-List')||Gate::check('Sale-Payment-Summary-List')||Gate::check('All-Payment-List')||Gate::check('Canceled-Installment-List')||Gate::check('InstallmentCompleted-List')||Gate::check('PaymentCollected-List')||Gate::check('Report-Promotion')||Gate::check('Report-Promotion')): ?>
                                <a href="#">
                                    <i class="fa fa-fw fa-circle-o"></i><span>Report Operation</span>
                                    <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                                </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                
                                <?php if(Gate::check('Report-Deposit')): ?>
                                    <li>
                                        <a href="<?php echo e(route('deposit_report.report_deposit')); ?>">
                                            <i class="fa fa-fw fa-circle-o "></i><span>Report Deposit</span>
                                        </a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('All-Payment-List')): ?>
                                    <li><a href="<?php echo e(route('all_payment_to_collection')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>All Schedule Payment</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('PaymentCollected-List')): ?>
                                    <li><a href="<?php echo e(route('payment_operation_collected')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Payment Collected</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Payment-Due-List')): ?>
                                    <li><a href="<?php echo e(route('payment_operation_collection')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Payment Due</span></a></li>
                                <?php endif; ?>
                                <?php if(Gate::check('InstallmentCompleted-List')): ?>
                                    <li><a href="<?php echo e(route('payment_operation_completed')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Installment Completed</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Sale-Payment-Summary-List')): ?>
                                    <li><a href="<?php echo e(route('payment_operation_client')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Sale & Payment Summary</span></a>
                                    </li>
                                <?php endif; ?>
                                <li>
                                    <a href="<?php echo e(route('payment_client_transfer_ownership')); ?>">
                                        <i class="fa fa-fw fa-circle-o "></i><span>Sale Transfer ownership</span>
                                    </a>
                                </li>
                                
                                <?php if(Gate::check('Arrear-List')): ?>
                                    <li><a href="<?php echo e(route('report_arrear_index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Report Arrears</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Canceled-Installment-List')): ?>
                                    <li><a href="<?php echo e(route('payment_operation_cancellation')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Canceled Installment</span></a></li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Item-Stock-List')||Gate::check('Sold-Item-List')): ?>
                                <a href="#">
                                    <i class="fa fa-fw fa-circle-o"></i><span>Report Stock</span>
                                    <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                                </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Item-Stock-List')): ?>
                                    <li><a href="<?php echo e(route('report.stockin')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Item Stock</span></a>
                                    </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Sold-Item-List')): ?>
                                    <li><a href="<?php echo e(route('report.sale')); ?>"><i
                                                    class="fa fa-fw fa-circle-o "></i><span>Item Sold</span></a></li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <li class="treeview">
                            <?php if(Gate::check('Purchase-Order-Report')||Gate::check('Origin-Stock-Product-Report')||Gate::check('Origin-Stock-Out-Report')||Gate::check('To-Ajustment-Stock-Report')||Gate::check('Ajustment-Stock-Out-Report')||Gate::check('Summary-Payment-Report')||Gate::check('Payment-History-Report')||Gate::check('Report-Purchase-Payment')): ?>
                            <a href="#">
                                <i class="fa fa-fw fa-circle-o"></i><span>Report Construction</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <?php endif; ?>
                            <ul class="treeview-menu">
                                <?php if(Gate::check('Purchase-Order-Report')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-report.PurchaseOrderReport')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>Purchase Order</span>
                                    </a>
                                </li>
                                <?php endif; ?>

                                <?php if(Gate::check('Budget-Actual-Use')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-report.budget_actual_use')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>Budget & Actual Use</span>
                                    </a>
                                </li>
                                <?php endif; ?>

                                <?php if(Gate::check('Report-Purchase-Payment')): ?>
                                <li>
                                    <a href="<?php echo e(route('report.report_purchase_payment')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>Purchase Payment</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                
                                
                                <?php if(Gate::check('Origin-Stock-Product-Report')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-report.OriginStockReport')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>Stock Product</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Origin-Stock-Out-Report')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-report.OriginStockOutReport')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>Origin Stock Out</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('To-Ajustment-Stock-Report')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-report.AjustmentStockReport')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>To Ajustment Stock</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Ajustment-Stock-Out-Report')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-report.AjustmentStockOutReport')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>Ajustment Stock Out</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Summary-Payment-Report')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-report.ConstructorPayment')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>Summary Payment</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                                <?php if(Gate::check('Payment-History-Report')): ?>
                                <li>
                                    <a href="<?php echo e(route('construction-report.ConstructorPaymentHistory')); ?>">
                                        <i class="fa fa-fw fa-circle-o"></i>
                                        <span>Payment History</span>
                                    </a>
                                </li>
                                <?php endif; ?>
                            </ul>
                        </li>
                    </ul>
                </li>
                <li class="treeview">
                    <?php if(Gate::check('AccountType-List')||Gate::check('AccountChart-List')): ?>
                        <a href="#">
                            <i class="fa fa-fw fa-circle-o"></i><span>Accounting Setup</span>
                            <span class="pull-right-container">
                    <i class="fa fa-angle-left pull-right"></i>
                </span>
                        </a>
                    <?php endif; ?>
                    <ul class="treeview-menu">
                        <?php if(Gate::check('AccountType-List')): ?>
                            <li><a href="<?php echo e(route('account.type')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Account Type</span></a>
                            </li>
                        <?php endif; ?>
                        <?php if(Gate::check('AccountChart-List')): ?>
                            <li><a href="<?php echo e(route('account-chart.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Account Chart</span></a>
                            </li>
                        <?php endif; ?>
                    </ul>
                </li>
                <li class="treeview">
                    <?php if(Gate::check('Log-Activity-List')||Gate::check('Lead-Source-List')||Gate::check('Purchase-Order-Setting')||Gate::check('Setting-Payment-Policy')||Gate::check('Loan-Back-Procedure')): ?>
                        <a href="#">
                            <i class="fa fa-fw fa-cogs "></i><span>Setting</span>
                            <span class="pull-right-container">
                    <i class="fa fa-angle-left pull-right"></i>
                </span>
                        </a>
                    <?php endif; ?>
                    <ul class="treeview-menu">
                        
                        
                        
                        
                        
                        
                        <?php if(Gate::check('Purchase-Order-Setting')): ?>
                        <li><a href="<?php echo e(route('construction-purchase-order-setting.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Purchase Order Setting</span></a></li>
                        <?php endif; ?>
                        <?php if(Gate::check('Log-Activity-List')): ?>
                            <li><a href="<?php echo e(route('log.activity')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Log Activity</span></a>
                            </li>
                        <?php endif; ?>
                        <?php if(Gate::check('Setting-Payment-Policy')): ?>
                        <li><a href="<?php echo e(route('payment-policy.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Payment Policy</span></a>
                        </li>
                        <li><a href="<?php echo e(route('payment-policy-detail.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Payment Policy Detail</span></a>
                        </li>
                        <?php endif; ?>
                        
                        
                        <?php if(Gate::check('Loan-Back-Procedure')): ?>
                        <li><a href="<?php echo e(route('bank-loan-procedure.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Bank Loan Procedures</span></a>
                        </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Lead-Source-List')): ?>
                            <li><a href="<?php echo e(route('lead-source.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Lead Source</span></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Bank-List')): ?>
                        <li><a href="<?php echo e(route('bank-info.index')); ?>"><i class="fa fa-fw fa-circle-o "></i><span>Bank</span></a></li> 
                        <?php endif; ?>
                        
                        <?php if(!is_null(\Branch::branch_key())): ?>
                            
                        <?php endif; ?>

                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        

                        
                        
                        
                        
                        
                        

                        
                        
                        
                        
                        
                    </ul>
                </li>
            </ul>
            <!-- </ul> -->
            <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <?php if(config('adminlte.layout') == 'top-nav'): ?>
            <div class="container">
            <?php endif; ?>

            <!-- Content Header (Page header) -->
                <section class="content-header">
                    <?php echo $__env->yieldContent('content_header'); ?>
                </section>

                <!-- Main content -->
                <section class="content">

                    <?php echo $__env->yieldContent('content'); ?>

                </section>
                <!-- /.content -->
                <?php if(config('adminlte.layout') == 'top-nav'): ?>
            </div>
            <!-- /.container -->
        <?php endif; ?>
    </div>
    <!-- /.content-wrapper -->

    </div>
    <!-- ./wrapper -->
    <footer class="main-footer">
        <!-- To the right -->
        <div class="pull-right hidden-xs">
            Version 1.2
        </div>
        <!-- Default to the left -->
        <strong>Copyright © 2019 <a href="https://netsolution.online/" target="blank">netsolution.online</a>.</strong>
        All rights reserved.
    </footer>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('adminlte_js'); ?>

    <script type="text/javascript" src="<?php echo e(asset('vendor/adminlte/dist/js/adminlte.min.js')); ?>"></script>
    <link href="<?php echo e(asset('assets/scripts/datepicker/bootstrap-datepicker.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('assets/scripts/image-upload/bootstrap-imageupload.css')); ?>" rel="stylesheet">
    <script type="text/javascript" src="<?php echo e(asset('assets/scripts/image-upload/bootstrap-imageupload.js')); ?>"></script>
    <script type="text/javascript" src="<?php echo e(asset('assets/scripts/datepicker/bootstrap-datepicker.min.js')); ?>"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>

    <script type="text/javascript" src="<?php echo e(asset('assets/scripts/timepicker/bootstrap-timepicker.min.js')); ?>"></script>
    <script type="text/javascript" src="<?php echo e(asset('assets/scripts/timepicker/jquery.timepicker.js')); ?>"></script>

    <script src="<?php echo e(asset('assets/scripts/printThis.js')); ?>"></script>

    <!-- InputMask -->
    <script type="text/javascript" src="<?php echo e(asset('assets/scripts/input-mask/jquery.inputmask.js')); ?>"></script>
    <script type="text/javascript"
            src="<?php echo e(asset('assets/scripts/input-mask/jquery.inputmask.date.extensions.js')); ?>"></script>
    <script type="text/javascript" src="<?php echo e(asset('assets/scripts/input-mask/jquery.inputmask.extensions.js')); ?>"></script>

    <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css"/>
    <script src="//cdn.ckeditor.com/4.15.1/standard/ckeditor.js"></script>
    <?php echo $__env->yieldPushContent('js'); ?>
    <?php echo $__env->yieldContent('js'); ?>
    <script type="text/javascript">

        /*Disable Button Submit*/
        $('form').on('submit', function() {
            $(this).find('input[type="submit"],button[type="submit"],.btn_submit').attr('disabled', 'disabled');
        });

        $(document).on("click",".btn_submit",function(){
            $(this).attr('disabled', 'disabled');
        });

        /*Enable Button Submit*/
        $(document).ajaxComplete(function(){
            $('form').find('input[type="submit"],button[type="submit"],.edit-submit,.submit').removeAttr('disabled');
        });

        $(document).ready(function(){
            $("#toggle-seaching").hide();
            $("#filter-toggle-search").click(function(){
                $("#toggle-seaching").toggle();
            });
        });
        $('.timepicker').timepicker({
            showInputs: false
        });

        $('[data-mask]').inputmask();
        $(".date_picker").datepicker({
            dateFormat: "dd-mm-yy",
            changeMonth: true,
            changeYear: true,
        });

        $('.month_year').datepicker({
            changeMonth: true,
            changeYear: true,
            showButtonPanel: false,
            dateFormat: 'mm-yy',
            onClose: function (dateText, inst) {
                $(this).datepicker('setDate', new Date(inst.selectedYear, inst.selectedMonth, 1));
                $(this).focus();
            }
        }).focus(function () {
            $('.ui-datepicker-calendar').css("display", "none");
        });


        $(function () {
            $(".create_date_picker").datepicker({
                dateFormat: "dd-mm-yy"
            }).datepicker("setDate", "0");
        });
        $('form').submit(function () {
            $(this).find("input[type='submit']").prop('disabled', true);
            $(this).find("button[type='submit']").prop('disabled', true);
        });

        $('.select2').select2();


        $(".file-upload-image").change(function () {
            readURLs(this, $(this).attr('id'));
        });

        function readURLs(input, BlockImage) {
            if (input.files && input.files[0]) {
                var reader = new FileReader();
                reader.onload = function (e) {
                    $('img#' + BlockImage).attr('src', e.target.result);
                };
                reader.readAsDataURL(input.files[0]);
            }
        }

        var url = window.location;
        $('ul.sidebar-menu a').filter(function () {
            return this.href == url;
        }).parent().addClass('active');
        $('ul.treeview-menu a').filter(function () {
            return this.href == url;
        }).parentsUntil(".sidebar-menu > .treeview-menu").addClass('active');
        window.setTimeout(function () {
            $(".alert-message").fadeOut({
                opacity: 0
            }, 15000).hide('slow');
        }, 4000);

        $("div.alert-message").on("click", "button.close", function () {
            $(this).parent().fadeOut({
                opacity: 0
            }, 15000).hide('slow');
        });

        function readURL(input) {
            if (input.files && input.files[0]) {

                var reader = new FileReader();

                reader.onload = function (e) {
                    $('.image-upload-wrap').hide();

                    $('.file-upload-image').attr('src', e.target.result);
                    $('.file-upload-content').show();

                    $('.image-title').html(input.files[0].name);
                };

                reader.readAsDataURL(input.files[0]);

            } else {
                removeUpload();
            }
        }

        $(document).on("keypress keyup blur", ".allownumericwithdecimal", function (event) {
            $(this).val($(this).val().replace(/[^0-9\.]/g, ''));
            if ((event.which != 46 || $(this).val().indexOf('.') != -1) && (event.which < 48 || event.which > 57)) {
                event.preventDefault();
            }
        });

        function removeUpload() {
            $('.file-upload-input').replaceWith($('.file-upload-input').clone());
            $('.file-upload-content').hide();
            $('.image-upload-wrap').show();
        }

        $('.image-upload-wrap').bind('dragover', function () {
            $('.image-upload-wrap').addClass('image-dropping');
        });
        $('.image-upload-wrap').bind('dragleave', function () {
            $('.image-upload-wrap').removeClass('image-dropping');
        });


        $(document).on('keypress', '.number-only', function (e) {
            if (isNaN(this.value + "" + String.fromCharCode(e.charCode))) return false;
        });
        $('#datatable').DataTable({
            "paging": false,
            'ordering': false
        });

        function re_formatdate(date) {
            var newDate = [];
            newDate[0] = date.substring(0, 10);
            newDate[1] = date.substring(11);
            var strDate = newDate[0].split('-');
            strDate = strDate[2] + '-' + strDate[1] + '-' + strDate[0];
            return strDate + ' ' + newDate[1];
        }

        $(window).on('hashchange', function () {
            if (window.location.hash) {
                var page = window.location.hash.replace('#', '');
                if (page == Number.NaN || page <= 0) {
                    return false;
                } else {
                    getData(page);
                }
            }
        });

        $(document).ready(function () {
            $(document).on('click', '.pagination a', function (event) {
                event.preventDefault();

                $('li').removeClass('active');
                $(this).parent('li').addClass('active');

                var myurl = $(this).attr('href');
                var page = $(this).attr('href').split('page=')[1];

                getData(page);
            });

        });


        var $imageupload = $('.imageupload');
        $imageupload.imageupload();

        $('#imageupload-disable').on('click', function () {
            $imageupload.imageupload('disable');
            $(this).blur();
        });

        $('#imageupload-enable').on('click', function () {
            $imageupload.imageupload('enable');
            $(this).blur();
        });

        $('#imageupload-reset').on('click', function () {
            $imageupload.imageupload('reset');
            $(this).blur();
        });

        function disable_datatable_features() {
            $('.dataTables_length').hide();
            $('.dataTables_filter').hide();
            $('.dataTables_info').hide();
            $('.dataTables_paginate').hide();
        }
    </script>
    <style>
        div.wrapper.active {
            height: auto !important;
            min-height: none !important;
        }

        .main-footer {
            position: fixed;
            bottom: 0;
            width: 100%;
        }

        .loader,
        .loader:before,
        .loader:after {
            background: #FFF;
            -webkit-animation: load1 1s infinite ease-in-out;
            animation: load1 1s infinite ease-in-out;
            width: 1em;
            height: 4em;
        }

        .loader:before,
        .loader:after {
            position: absolute;
            top: 0;
            content: "";
        }

        .loader:before {
            left: -1.5em;
        }

        .loader {
            text-indent: -9999em;
            margin: 8em auto;
            position: relative;
            font-size: 12px;
            -webkit-animation-delay: -0.16s;
            animation-delay: -0.16s;
        }

        .loader3 {
            margin: 4em auto;
            font-size: 24px;
            width: 1em;
            height: 1em;
            border-radius: 50%;
            position: relative;
            text-indent: -9999em;
            -webkit-animation: load3 1.1s infinite ease;
            animation: load3 1.1s infinite ease;
        }

        @-webkit-keyframes load3 {
            0%,
            100% {
                box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
            }
            12.5% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
            }
            25% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            37.5% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            50% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            62.5% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            75% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            87.5% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
            }
        }

        @keyframes  load3 {
            0%,
            100% {
                box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
            }
            12.5% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
            }
            25% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            37.5% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            50% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            62.5% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            75% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
            }
            87.5% {
                box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
            }
        }

        .adjust {
            min-height: 60px;
            height: auto;
        }

        .mt {
            margin-top: 50px;
        }
    </style>
    <?php

        session::put('success','');

        session::put('danger','');

        session::put('warning','');

    ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>