 <!-- Main Sidebar Container -->
 <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="#" class="brand-link">
      <img src = "dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
      <span class="brand-text font-weight-light">
        <b>Bankbriz CRM</b></span>
    </a>
    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block"> <?php echo session('name') ;?></a>
        </div>
      </div>
      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-item menu-open">
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
          Start Lead Generation
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
          <ul class="nav nav-treeview">
            
            <li class = "nav-item">
                
                <?php if(Request::path()=='AddNewLead'): ?>
                
                <a href = "<?php echo e(url('AddNewLead')); ?>" class="nav-link active" >
                
                <?php else: ?>
                
                <a href = "<?php echo e(url('AddNewLead')); ?>" class="nav-link" >
            
                <?php endif; ?>

                <i class  = "far fa-circle nav-icon"></i>
                
                  <p>New Lead Generation</p>
                
                </a>
                
        <?php if(session('userType') !='dpe'){?>
        <?php if(session('userType') !='cs'){?>
                <?php if(Request::path()=='ChannelSourceLead'): ?>
                <a href = "<?php echo e(route('ChannelSourceLead')); ?>" class="nav-link active" >
                
                <?php else: ?>
                
                <a href    = "<?php echo e(route('ChannelSourceLead')); ?>" class="nav-link" >
            
                  <?php endif; ?>

                  <i class  = "far fa-circle nav-icon"></i>
                  
                    <p>Channel Sourcer Leads</p>
                
                </a>
        <?php }}?>
           
            </li>
            
          </ul>
        
        </li>
        <?php if(Session::get('userType') !='cs'): ?>
        
        <li class="nav-item menu-open">
          
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
             Digital Marketing Leads
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
          <ul class="nav nav-treeview">
            
            <li class="nav-item">
              
              <?php if(Request::path()=='digitalAdsLeads'): ?>
              
              <a href="<?php echo e(route('digitalAdsLeads')); ?>" class="nav-link active">
              
                <?php else: ?>
              
              <a href="<?php echo e(url('digitalAdsLeads')); ?>" class="nav-link">
              
                <?php endif; ?>
            
              <i class="far fa-circle nav-icon"></i>
            
                  <p>Digital Ads Leads</p>
            
              </a>
            
            </li>
            
            <li class="nav-item">
            <?php if(Request::path()=='DigitalOrganicLeads'): ?>
              <a href="<?php echo e(url('DigitalOrganicLeads')); ?>" class="nav-link active">
            <?php else: ?>
              <a href="<?php echo e(url('DigitalOrganicLeads')); ?>" class="nav-link">
              <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Digital Organic Leads</p>
              </a>
          </li>
        
          </ul>
        
        </li>

        <?php endif; ?>
        
        <li class="nav-item menu-open">
          
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
             All Follow-Up Leads
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
          <ul class="nav nav-treeview">
            
            <li class="nav-item">
            <?php if(Request::path()=='NextPickUp'): ?>
              <a href="<?php echo e(route('NextPickUp')); ?>" class="nav-link active">
            <?php else: ?>
              <a href="<?php echo e(route('NextPickUp')); ?>" class="nav-link">

              <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Next Pick-Up</p>
              </a>
            </li>
            <li class="nav-item">

            <?php if(Request::path()=='TodayFollowup'): ?>

                <a href="<?php echo e(route('TodayFollowup')); ?>" class="nav-link active">

            <?php else: ?>

                <a href="<?php echo e(route('TodayFollowup')); ?>" class="nav-link">

            <?php endif; ?>

              <i class="far fa-circle nav-icon"></i>
                  <p>Today Follow-Up</p>
              </a>
            </li>

            <li class="nav-item">
              
            <?php if(Request::path()=='UpComingFollow-up'): ?>
              <a href="<?php echo e(route('UpComingFollow-up')); ?>" class="nav-link active">
              <?php else: ?>
              <a href="<?php echo e(route('UpComingFollow-up')); ?>" class="nav-link">

              <?php endif; ?>

                <i class="far fa-circle nav-icon"></i>
                  <p>Upcoming Follow-Up</p>
              </a>
            </li>

            <li class="nav-item">
              <?php if(Request::path()=='OldPendingFollow-up'): ?>
              <a href="<?php echo e(route('OldPendingFollow-up')); ?>" class="nav-link active">
              <?php else: ?>
              <a href="<?php echo e(route('OldPendingFollow-up')); ?>" class="nav-link">
              <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Old Pending Follow-Up</p>
              </a>
            </li>
          </ul>
        </li>
        <li class="nav-item menu-open">
          
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
            Final Disbursement Cases
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
          <ul class="nav nav-treeview">
           
          <li class="nav-item">
          <?php if(Request::path()=='FinalDisbursed'): ?>
          
          <a href="<?php echo e(route('FinalDisbursed')); ?>" class="nav-link active">
          <?php else: ?>
          <a href="<?php echo e(route('FinalDisbursed')); ?>" class="nav-link">

          <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Final Disbursed (End)</p>
              </a>
            </li>

            
            <li class="nav-item">
            <?php if(Request::path()=='PostdoxSubmited'): ?>
            
            <a href="<?php echo e(route('PostdoxSubmited')); ?>" class="nav-link active">

               <?php else: ?>
     
               <a href="<?php echo e(route('PostdoxSubmited')); ?>" class="nav-link">
     
                <?php endif; ?>
     
              <i class="far fa-circle nav-icon"></i>
                  <p>Postdocs Submitted</p>
              </a>
     
            </li>

        
          </ul>
        
        </li>

        <li class="nav-item menu-open">
          
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
          Approval Cases
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
          <ul class="nav nav-treeview">
           
          <li class="nav-item">
          <?php if(Request::path()=='ApprovedCases'): ?>
              <a href="<?php echo e(url('ApprovedCases')); ?>" class="nav-link active">
            <?php else: ?>
              <a href="<?php echo e(url('ApprovedCases')); ?>" class="nav-link">
                <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Approved Cases</p>
              </a>
            </li>

            
            <li class="nav-item">
            
            <?php if(Request::path()=='RecommendCases'): ?>

              <a href="<?php echo e(url('RecommendCases')); ?>" class="nav-link active">
            <?php else: ?>
              <a href="<?php echo e(url('RecommendCases')); ?>" class="nav-link">

              <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Recommend Cases</p>
              </a>
        </li>   
          </ul>
        
        </li>
        <li class="nav-item menu-open">
          
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
         On-Process (Login) Cases
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
          <ul class="nav nav-treeview">
           
          <li class="nav-item">
          
              <?php if(Request::path()=='detailDataEntry'): ?>
                  <a href="<?php echo e(route('detailDataEntry')); ?>" class="nav-link active">
              <?php else: ?>
                <a href="<?php echo e(route('detailDataEntry')); ?>" class="nav-link">
                  <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Detail Data Entry</p>
              </a>
            </li>

            <li class="nav-item">
               <?php if(Request::path()=='UnderwritingCases'): ?>
               <a href="<?php echo e(url('UnderwritingCases')); ?>" class="nav-link active">
               <?php else: ?>
               <a href="<?php echo e(url('UnderwritingCases')); ?>" class="nav-link">
               <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Underwriting Cases </p>
              </a>
            </li>
            
            <li class="nav-item">
            <?php if(Request::path()=='RelookCases'): ?>
              <a href="<?php echo e(url('RelookCases')); ?>" class="nav-link active">
              <?php else: ?>
              <a href="<?php echo e(url('RelookCases')); ?>" class="nav-link">
                <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Relook Cases</p>
              </a>
        </li>   
        <li class="nav-item">
              <?php if(Request::path()=='HoldFtnrCases'): ?>
              <a href="<?php echo e(url('HoldFtnrCases')); ?>" class="nav-link active">
              <?php else: ?>
              <a href="<?php echo e(url('HoldFtnrCases')); ?>" class="nav-link">
                <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Hold\FTNR Cases</p>
              </a>
        </li>   
          </ul>
        
        </li>

        <li class="nav-item menu-open">
          
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
         Loan Cancel \ Reject Cases
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
          <ul class="nav nav-treeview">
           
            <li class="nav-item">
            
                <?php if(Request::path()=='LoanCancelCases'): ?>
                  <a href="<?php echo e(url('LoanCancelCases')); ?>" class="nav-link active" >
                <?php else: ?>
                  <a href = "<?php echo e(url('LoanCancelCases')); ?>" class="nav-link">
                <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Loan Cancel Cases</p>
              </a>

            </li>
            
            <li class="nav-item">
            <?php if(Request::path()=='Rejectases'): ?>
              <a href="<?php echo e(url('Rejectases')); ?>" class="nav-link active">
          <?php else: ?>
              <a href="<?php echo e(url('Rejectases')); ?>" class="nav-link">
                <?php endif; ?>
                  <i class="far fa-circle nav-icon"></i>
                  <p>Reject Cases</p>
              </a>

            </li> 

            <li class="nav-item">
            <?php if(Request::path()=='NICases'): ?>

              <a href="<?php echo e(url('NICases')); ?>" class="nav-link active ">
              <?php else: ?>
              <a href="<?php echo e(url('NICases')); ?>" class="nav-link">
                <?php endif; ?>

                <i class="far fa-circle nav-icon"></i>
                  <p>NI\NA Cases</p>
              </a>
            </li>   
          </ul>
        
        </li>
        
 <?php if(session('userType') =='admin'){?>
 
      <li class="nav-item menu-open">
          
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
                All Master Modules
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
          <ul class = "nav nav-treeview">
           
          
            <li class    = "nav-item">
            <?php if(Request::path()=='BankNbfc'): ?>

              <a href    = "<?php echo e(url('BankNbfc')); ?>" class="nav-link active ">

            <?php else: ?>

              <a href    = "<?php echo e(url('BankNbfc')); ?>" class="nav-link">
                <?php endif; ?>
                <i class = "far fa-circle nav-icon"></i>
                  <p>BANK\NBFC Master</p>
              </a>
        </li>   
        
        <li class        = "nav-item">
        <?php if(Request::path()=='ChannelSourcer'): ?>

              <a href    = "<?php echo e(url('ChannelSourcer')); ?>" class="nav-link active">
              <?php else: ?>
              <a href    = "<?php echo e(url('ChannelSourcer')); ?>" class="nav-link">
                <?php endif; ?>
                <i class = "far fa-circle nav-icon"></i>
                  <p>Channel Sourcer Master</p>
              </a>
        </li>   

        <li class="nav-item">
             <?php if(Request::path()=='employee'): ?>

              <a href="<?php echo e(url('employee')); ?>" class="nav-link active">

             <?php else: ?>

             <a href="<?php echo e(url('employee')); ?>" class="nav-link">

              <?php endif; ?>


                <i class="far fa-circle nav-icon"></i>
                  <p>Employee Master</p>
              </a>
        </li>   
        
        <li class="nav-item">
        <?php if(Request::path()=='SalesManager'): ?>

              <a href="<?php echo e(url('SalesManager')); ?>" class="nav-link active ">
            <?php else: ?>
              <a href="<?php echo e(url('SalesManager')); ?>" class="nav-link">
                <?php endif; ?>
                <i class="far fa-circle nav-icon"></i>
                  <p>Sales Manager Master</p>
              </a>
        
            </li>  

            <li class="nav-item">
            <?php if(Request::path()=='LoanProd'): ?>

              <a href="<?php echo e(url('LoanProd')); ?>" class="nav-link active ">
            
              <?php else: ?>
            
              <a href = "<?php echo e(url('LoanProd')); ?>" class="nav-link">
                    <?php endif; ?>
                <i class = "far fa-circle nav-icon"></i>
                  <p>Loan Product Master</p>
              </a>
        
            </li> 
            
            <li class="nav-item">
              
              <?php if(Request::path()=='dsaMaster'): ?>

              <a href="<?php echo e(url('dsaMaster')); ?>" class="nav-link active ">
            
              <?php else: ?>
            
              <a href = "<?php echo e(url('dsaMaster')); ?>" class="nav-link">
                    <?php endif; ?>
                <i class = "far fa-circle nav-icon"></i>
                  <p>DSA Channel Master</p>
              </a>
        
            </li>  
            
            <li class="nav-item">
              
              <?php if(Request::path()=='industrytype'): ?>

              <a href="<?php echo e(url('industrytype')); ?>" class="nav-link active ">
            
              <?php else: ?>
            
              <a href = "<?php echo e(url('industrytype')); ?>" class="nav-link">
                    <?php endif; ?>
                <i class = "far fa-circle nav-icon"></i>
                  <p>Industry Master</p>
              </a>
        
            </li> 
    <!--
            <li class="nav-item">
            <?php if(Request::path()=='CommisionMaster'): ?>

              <a href="<?php echo e(url('CommisionMaster')); ?>" class="nav-link active ">
            
              <?php else: ?>
            
              <a href = "<?php echo e(url('CommisionMaster')); ?>" class="nav-link">
                    <?php endif; ?>
                <i class = "far fa-circle nav-icon"></i>
                  <p>Commision Master</p>
              </a>
        
            </li> 
    -->
          </ul>
        
        </li>
<?php }?>


            <?php //if(session('userType') =='admin'){?>
 
      <li class="nav-item menu-open">
          
          <a href="#" class="nav-link ">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
                All Reports
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
        
                <ul class = "nav nav-treeview">
           
                        <li class="nav-item">
                      
                              <?php if(Request::path()=='industrytype'): ?>
                
                              <a href="<?php echo e(url('Payout')); ?>" class="nav-link active ">
                            
                              <?php else: ?>
                    
                              <a href = "<?php echo e(url('Payout')); ?>" class="nav-link">
                                    <?php endif; ?>
                                <i class = "far fa-circle nav-icon"></i>
                                  <p> Payout
                                  
                                  </p>
                              </a>
                
                        </li> 
   
              </ul>
        
            </li>

        </ul>
            <li class="nav-item">
        
            <?php if(session('userType')=='admin'){?>
            
                    <a href = "<?php echo e(url('adminlogout')); ?>" class="nav-link">
                    
                    <i class = "far fa-circle nav-icon"></i>
                    <p>Logout</p>
                    </a>
                    
            <?php }elseif(session('userType')=='cs'){?>
            
            <a href = "<?php echo e(url('chlogout')); ?>" class="nav-link">
            
            <i class = "far fa-circle nav-icon"></i>
            <p>Logout</p>
            </a>
            
            <?php }else{?>
            
            <a href = "<?php echo e(url('emplogout')); ?>" class="nav-link">
            
            <i class = "far fa-circle nav-icon"></i>
                <p>Logout</p>
            </a>
            
            <?php }?>
            
            
            </li> 
      </nav>

      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside><?php /**PATH /home/bankbriz/public_html/crm/resources/views/layouts/sidebar.blade.php ENDPATH**/ ?>