 <?php $RArray = explode(',', $_SESSION['rights']);   ?>

<aside id="layout-menu" class="layout-menu menu-vertical menu bg-menu-theme">

  
  <div class="app-brand demo ">
    <a href="index.php" class="app-brand-link">
      <span class="app-brand-logo demo">
<svg width="26px" height="26px" viewBox="0 0 26 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title>icon</title>
  <defs>
    <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
      <stop stop-color="#5A8DEE" offset="0%"></stop>
      <stop stop-color="#699AF9" offset="100%"></stop>
    </linearGradient>
    <linearGradient x1="0%" y1="0%" x2="100%" y2="100%" id="linearGradient-2">
      <stop stop-color="#FDAC41" offset="0%"></stop>
      <stop stop-color="#E38100" offset="100%"></stop>
    </linearGradient>
  </defs>
  <g id="Pages" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
    <g id="Login---V2" transform="translate(-667.000000, -290.000000)">
      <g id="Login" transform="translate(519.000000, 244.000000)">
        <g id="Logo" transform="translate(148.000000, 42.000000)">
          <g id="icon" transform="translate(0.000000, 4.000000)">
            <path d="M13.8863636,4.72727273 C18.9447899,4.72727273 23.0454545,8.82793741 23.0454545,13.8863636 C23.0454545,18.9447899 18.9447899,23.0454545 13.8863636,23.0454545 C8.82793741,23.0454545 4.72727273,18.9447899 4.72727273,13.8863636 C4.72727273,13.5423509 4.74623858,13.2027679 4.78318172,12.8686032 L8.54810407,12.8689442 C8.48567157,13.19852 8.45300462,13.5386269 8.45300462,13.8863636 C8.45300462,16.887125 10.8856023,19.3197227 13.8863636,19.3197227 C16.887125,19.3197227 19.3197227,16.887125 19.3197227,13.8863636 C19.3197227,10.8856023 16.887125,8.45300462 13.8863636,8.45300462 C13.5386269,8.45300462 13.19852,8.48567157 12.8689442,8.54810407 L12.8686032,4.78318172 C13.2027679,4.74623858 13.5423509,4.72727273 13.8863636,4.72727273 Z" id="Combined-Shape" fill="#4880EA"></path>
            <path d="M13.5909091,1.77272727 C20.4442608,1.77272727 26,7.19618701 26,13.8863636 C26,20.5765403 20.4442608,26 13.5909091,26 C6.73755742,26 1.18181818,20.5765403 1.18181818,13.8863636 C1.18181818,13.540626 1.19665566,13.1982714 1.22574292,12.8598734 L6.30410592,12.859962 C6.25499466,13.1951893 6.22958398,13.5378796 6.22958398,13.8863636 C6.22958398,17.8551125 9.52536149,21.0724191 13.5909091,21.0724191 C17.6564567,21.0724191 20.9522342,17.8551125 20.9522342,13.8863636 C20.9522342,9.91761479 17.6564567,6.70030817 13.5909091,6.70030817 C13.2336969,6.70030817 12.8824272,6.72514561 12.5388136,6.77314791 L12.5392575,1.81561642 C12.8859498,1.78721495 13.2366963,1.77272727 13.5909091,1.77272727 Z" id="Combined-Shape2" fill="url(#linearGradient-1)"></path>
            <rect id="Rectangle" fill="url(#linearGradient-2)" x="0" y="0" width="7.68181818" height="7.68181818"></rect>
          </g>
        </g>
      </g>
    </g>
  </g>
</svg>

</span>
      <span class="app-brand-text demo menu-text fw-bold ms-2">Finman</span>
    </a>

    <a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large ms-auto">
      <i class="bx menu-toggle-icon d-none d-xl-block fs-4 align-middle"></i>
      <i class="bx bx-x d-block d-xl-none bx-sm align-middle"></i>
    </a>
  </div>

  
  <div class="menu-divider mt-0  ">
  </div>

  <div class="menu-inner-shadow"></div>

  
  
  <ul class="menu-inner py-1">
    <!-- Dashboards -->
	
		<li class="menu-item  <?php if(strpos($_SERVER['REQUEST_URI'],'index.php')!=FALSE) { echo "active"; } ?> ">
		<a href="index.php" class="menu-link">
        <i class="menu-icon tf-icons bx bx-home-circle"></i>
        <div data-i18n="Dashboard">Dashboard</div>
		</a>
		</li>
		
		
		
		<?php if (in_array("Masters", $RArray) || $_SESSION['role']=='super') { ?>
		
	  <li class="menu-item  <?php if(strpos($_SERVER['REQUEST_URI'],'master.php')!=FALSE) { echo "active open"; } ?> ">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class='menu-icon tf-icons bx bx-food-menu'></i>
        <div data-i18n="Masters">Masters</div>
      </a>
      <ul class="menu-sub">
	  
	  
        <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=advisors')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=advisors" class="menu-link">
            <div data-i18n="Advisors">Advisors</div>
          </a>
        </li>
		
		  <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'admin_user_master.php?page=admin')!=FALSE) { echo "active"; } ?>  ">
          <a href="admin_user_master.php?page=admin" class="menu-link">
            <div data-i18n="Admin Users">Admin Users</div>
          </a>
        </li>
		
		 <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=customer_type')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=customer_type" class="menu-link">
            <div data-i18n="Customer Type">Customer Type</div>
          </a>
        </li>
		
		
		
		
	
		
		
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=attempt_type')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=attempt_type" class="menu-link">
            <div data-i18n="Attempt Type">Attempt Type</div>
          </a>
        </li>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=attempt_status')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=attempt_status" class="menu-link">
            <div data-i18n="Attempt Status">Attempt Status</div>
          </a>
        </li>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=disposition')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=disposition" class="menu-link">
            <div data-i18n="Disposition">Disposition</div>
          </a>
        </li>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=sub_disposition')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=sub_disposition" class="menu-link">
            <div data-i18n="Sub-Disposition">Sub-Disposition</div>
          </a>
        </li>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=reason_for_default')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=reason_for_default" class="menu-link">
            <div data-i18n="RFD">RFD</div>
          </a>
        </li>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=payment_modes')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=payment_modes" class="menu-link">
            <div data-i18n="Payment Modes">Payment Modes</div>
          </a>
        </li>
		
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=no_of_emi')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=no_of_emi" class="menu-link">
            <div data-i18n="No.Of Emi">No.Of Emi</div>
          </a>
        </li>
		
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=dpd_bucket')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=dpd_bucket" class="menu-link">
            <div data-i18n="DPD Bucket">DPD Bucket</div>
          </a>
        </li>
		
		
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=auto_dial_type')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=auto_dial_type" class="menu-link">
            <div data-i18n="Auto Dial Type">Auto Dial Type</div>
          </a>
        </li>
		
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=case_forward_type')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=case_forward_type" class="menu-link">
            <div data-i18n="Case Forward Type">Case Forward Type</div>
          </a>
        </li>
		
		
		
		
			<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=crm_modules')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=crm_modules" class="menu-link">
            <div data-i18n="CRM Modules">CRM Modules</div>
          </a>
        </li>
		
		
		
		
		
       
      </ul>
     </li>
	
		<?php } ?>
		
		
		
		
			<?php if (in_array("Evaluation Masters", $RArray) || $_SESSION['role']=='super') { ?>
		
	  <li class="menu-item  <?php if(strpos($_SERVER['REQUEST_URI'],'master.php')!=FALSE) { echo "active open"; } ?> ">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class='menu-icon tf-icons bx bx-food-menu'></i>
        <div data-i18n="Evaluation Masters">Evaluation Masters</div>
      </a>
      <ul class="menu-sub">
	  
	  
      <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=evaluator')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=evaluator" class="menu-link">
            <div data-i18n="Evaluator">Evaluator</div>
          </a>
        </li>
		
		
			<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=channel_partner')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=channel_partner" class="menu-link">
            <div data-i18n="Channel Partner">Channel Partner</div>
          </a>
        </li>
		
		
			<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=evaluator_type')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=evaluator_type" class="menu-link">
            <div data-i18n="Evaluator Type">Evaluator Type</div>
          </a>
        </li>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=portfolio')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=portfolio" class="menu-link">
            <div data-i18n="Portfolio">Portfolio</div>
          </a>
        </li>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=product')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=product" class="menu-link">
            <div data-i18n="Product">Product</div>
          </a>
        </li>
		
		
			<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=score_band')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=score_band" class="menu-link">
            <div data-i18n="Score Band">Score Band</div>
          </a>
        </li>
		
		
		
		</ul>
		
		</li>
		
			<?php } ?>
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	<?php if (in_array("Leads Management", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
	  	<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'leads.php')!=FALSE) { echo "active"; } ?>">
		<a href="leads.php" class="menu-link">
        <i class="menu-icon tf-icons bx bx-spreadsheet"></i>
        <div data-i18n="Leads Management">Leads Management</div>
		</a>
	    </li>
	<?php } ?>
 	
	<?php if (in_array("Account Holder", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
	
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'account_holder.php')!=FALSE) { echo "active"; } ?>">
		<a href="account_holder.php" class="menu-link">
        <i class="menu-icon tf-icons bx bx-user"></i>
        <div data-i18n="Account Holder">Account Holder</div>
		</a>
	    </li>
	<?php } ?>	
		
		
		
		
		 <?php if (in_array("Payments", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
	
	 	<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'payments.php')!=FALSE) { echo "active"; } ?>">
		<a href="payments.php" class="menu-link">
        <i class="menu-icon tf-icons bx bx-spreadsheet"></i>
        <div data-i18n="Payments">Payments</div>
		</a>
	    </li>
 
		<?php } ?>	
		
		
			 <?php if (in_array("Commitment", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
	
	 	<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'commitments.php')!=FALSE) { echo "active"; } ?>">
		<a href="commitments.php" class="menu-link">
        <i class="menu-icon tf-icons bx bx-spreadsheet"></i>
        <div data-i18n="Commitments">Commitments</div>
		</a>
	    </li>
 
		<?php } ?>	
		
		
		
		
		
			<?php if (in_array("Call Evaluation", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
	 
	 	<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'call_evaluation.php')!=FALSE) { echo "active"; } ?>">
		<a target="_BLANK" href="call_evaluation.php" class="menu-link">
        <i class="menu-icon tf-icons bx bx-spreadsheet"></i>
        <div data-i18n="Call Evaluation">Call Evaluation</div>
		</a>
	    </li>
	
 <?php } ?>	
		
		
	 <?php if (in_array("Chat", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
	
		  <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'chat.php')!=FALSE) { echo "active"; } ?>  ">
          <a href="chat.php" class="menu-link">
		   <i class="menu-icon tf-icons bx bx-spreadsheet"></i>
            <div data-i18n="Chat">Chat</div>
          </a>
        </li>
	 <?php } ?>	
		 
		
		
		<?php if (in_array("Evaluation Submission", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
	
	 	<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'evalution_data.php')!=FALSE) { echo "active"; } ?>">
		<a href="evalution_data.php" class="menu-link">
        <i class="menu-icon tf-icons bx bx-spreadsheet"></i>
        <div data-i18n="Evaluation Submission">Evaluation Submission</div>
		</a>
	    </li>
		
			<?php } ?>	
			
			<?php if (in_array("Settlement Submission", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
	
	
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'settlement_data.php')!=FALSE) { echo "active"; } ?>">
		<a href="settlement_data.php" class="menu-link">
        <i class="menu-icon tf-icons bx bx-spreadsheet"></i>
        <div data-i18n="Settlement Submission">Settlement Submission</div>
		</a>
	    </li>
		
		
	
	<?php } ?>	
		
		
	
		
		
			<?php if (in_array("Reports", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
		 
	  <li class="menu-item  <?php if(strpos($_SERVER['REQUEST_URI'],'report')!=FALSE) { echo "active open"; } ?> ">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class='menu-icon tf-icons bx bx-food-menu'></i>
        <div data-i18n="Reports">Reports</div>
      </a>
      <ul class="menu-sub">
	   
	   
	    <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'report.php?type=apr')!=FALSE) { echo "active"; } ?>  ">
          <a href="report.php?type=apr" class="menu-link">
            <div data-i18n="APR Report">APR Report</div>
          </a>
        </li>
		
	 
		
		
		 <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'report.php?type=acp')!=FALSE) { echo "active"; } ?>  ">
          <a href="report.php?type=acp" class="menu-link">
            <div data-i18n="ACP Report">ACP Report</div>
          </a>
        </li>
		
		
		 <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'report.php?type=acr')!=FALSE) { echo "active"; } ?>  ">
          <a href="report.php?type=acr" class="menu-link">
            <div data-i18n="ACR Report">ACR Report</div>
          </a>
        </li>
		
		    <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'report.php?type=commitment')!=FALSE) { echo "active"; } ?>  ">
          <a href="report.php?type=commitment" class="menu-link">
            <div data-i18n="Commitment Report">Commitment Report</div>
          </a>
        </li>
		
		
		
		    <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'report.php?type=average_login')!=FALSE) { echo "active"; } ?>  ">
          <a href="report.php?type=average_login" class="menu-link">
            <div data-i18n="Average Login">Average Login</div>
          </a>
        </li>
		
		 
		
		
       
      </ul>
     </li>
	
	
			<?php } ?>
	 
		
			<?php if (in_array("Attendance", $RArray) || $_SESSION['role']=='super' || $_SESSION['role'] == 'advisor' ) { ?>
		 
			 
		
	  <li class="menu-item  <?php if(strpos($_SERVER['REQUEST_URI'],'attendance')!=FALSE) { echo "active open"; } ?> ">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class='menu-icon tf-icons bx bx-food-menu'></i>
        <div data-i18n="Attendance">Attendance</div>
      </a>
      <ul class="menu-sub">
	   
	   
	     <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'report.php?type=attendance')!=FALSE) { echo "active"; } ?>  ">
          <a href="report.php?type=attendance" class="menu-link">
            <div data-i18n="Attendance Sheet">Attendance Sheet</div>
          </a>
        </li>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'report.php?type=attendance&sub_type=login')!=FALSE) { echo "active"; } ?>  ">
          <a href="report.php?type=attendance&sub_type=login" class="menu-link">
            <div data-i18n="Attendance Login">Attendance Login</div>
          </a>
        </li>
		
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'report.php?type=attendance&sub_type=logout')!=FALSE) { echo "active"; } ?>  ">
          <a href="report.php?type=attendance&sub_type=logout" class="menu-link">
            <div data-i18n="Attendance Logout">Attendance Logout</div>
          </a>
        </li>
		
		
		
		  
			<?php if($_SESSION['login_as'] == 'admin') { ?>
		
		<li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'master.php?page=holidays')!=FALSE) { echo "active"; } ?>  ">
          <a href="master.php?page=holidays" class="menu-link">
            <div data-i18n="Holidays">Holidays</div>
          </a>
        </li>
		 
		 <?php } ?>
		
       
      </ul>
     </li>
	
	
			<?php } ?>
	
	
	
		<?php if (in_array("Website", $RArray) || $_SESSION['role']=='super'  ) { ?>
		 
			 
		
	  <li class="menu-item  <?php if(strpos($_SERVER['REQUEST_URI'],'website')!=FALSE) { echo "active open"; } ?> ">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class='menu-icon tf-icons bx bx-food-menu'></i>
        <div data-i18n="Website">Website</div>
      </a>
      <ul class="menu-sub">
	  
	  
	    <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'content_master.php?page=website_info')!=FALSE) { echo "active"; } ?>  ">
          <a href="content_master.php?page=website_info" class="menu-link">
            <div data-i18n="Website Info">Website Info</div>
          </a>
        </li>
		
		
	  
      <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'content_master.php?page=website_pages')!=FALSE) { echo "active"; } ?>  ">
          <a href="content_master.php?page=website_pages" class="menu-link">
            <div data-i18n="Website Pages">Website Pages</div>
          </a>
        </li>
		
		 
		
		</ul>
		
		</li>
		
			<?php } ?>
		
		
	
		
		
			<?php if (in_array("Bulk Compaign", $RArray) || $_SESSION['role']=='super'  ) { ?>
		 
		
	  <li class="menu-item  <?php if(strpos($_SERVER['REQUEST_URI'],'compaign')!=FALSE) { echo "active open"; } ?> ">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class='menu-icon tf-icons bx bx-food-menu'></i>
        <div data-i18n="Bulk Compaign">Bulk Compaign</div>
      </a>
      <ul class="menu-sub">
	  
	  
	    <li class="menu-item <?php if(strpos($_SERVER['REQUEST_URI'],'content_master.php?page=compaign_templates')!=FALSE) { echo "active"; } ?>  ">
          <a href="content_master.php?page=compaign_templates" class="menu-link">
            <div data-i18n="Compaign Templates">Compaign Templates</div>
          </a>
        </li>
		
		 
		 
		
		</ul>
		
		</li>
		
			<?php } ?>
		
		
 
	   
	  
	 
    
  </ul>
  
  

</aside>
