<?php  use Cake\Network\Session;
$user = $this->request->session()->read('Auth.User'); ?>
<div id="menu-wrap">
    <ul class="menu">
	    <?php if($user['group_id'] == '2' || $user['group_id'] == '3' || $user['group_id'] == '4' || $user['group_id'] == '9' || $user['group_id'] == '10'){ ?>  
             <li>
				<?php echo $this->Html->link(__('Client Reports'),'#'); ?>
				   <ul class="submenu">
				      <!--<li><?//=$this->Html->link(__('Client PortFolio'), ['controller' => 'Reports', 'action' => 'fdcprofile']); ?></li>-->
				      
    				      <!--<li><?=$this->Html->link(__('Client PortFolio'), ['controller' => 'Reports', 'action' => 'clientwisemf']); ?></li>-->
    				   <?php if($user['group_id'] == '2' || $user['group_id'] == '3' || $user['group_id'] == '10'){ ?> 
    				      <li><?=$this->Html->link(__('Client PortFolio'), ['controller' => 'Reports', 'action' => 'clientwisefd']); ?></li>
    				   <?php } ?> 
    				   <?php if($user['group_id'] == '2' || $user['group_id'] == '3' ||$user['group_id'] == '4' || $user['group_id'] == '10'){ ?> 
    					<li><?=$this->Html->link(__('Date Range wise FD Maturity'), ['controller' => 'Fds', 'action' => 'fdmaturity']); ?></li>
    					 <?php } ?>
    					<?php if($user['group_id'] == '2' || $user['group_id'] == '10'){ ?>
    					<!--<li><?=$this->Html->link(__('Email Confirmation Report'), ['controller' => 'Fds', 'action' => 'emailreport']); ?></li>-->
    				    <li><?=$this->Html->link(__('Brokerage Reconciliation'), ['controller' => 'Fds', 'action' => 'brkreconciliation']); ?></li>
    				   <?php } ?> 
    				   
    				   <?php if($user['group_id'] == '2' || $user['group_id'] == '3'  ||  $user['group_id'] == '10'){ ?> 
    					  <li><?=$this->Html->link(__('Dispatch Report'), ['controller' => 'Reports', 'action' => 'todaydespatch']); ?></li>
    					 <?php if($user['group_id'] == '2') {?> 
    					  <li><?= $this->Html->link(__('User Wise FD Report'), ['controller' => 'fds', 'action' => 'fduserlist']) ?>
    					 <?php } ?> 
    				   <?php } ?> 
    				<?php // if($user['group_id'] == '9'){ ?>
					<!--	<li><?=$this->Html->link(__('Client PortFolio'), ['controller' => 'Reports', 'action' => 'clientwisefd']); ?></li>
						<li><?=$this->Html->link(__('Despatch Report'), ['controller' => 'Reports', 'action' => 'todaydespatch']); ?></li>-->
					 <?php //} ?> 
					  
					    <li><?= $this->Html->link(__('FIXED DEPOSIT'), ['controller' => 'fds', 'action' => 'index']) ?>
					    <li><?= $this->Html->link(__('Sub-Brokrage Payments Report'), ['controller' => 'Reports', 'action' => 'subbrokerage']) ?>

                   </ul>
			 </li>
	  <?php } ?> 
	  
	  <?php if($user['group_id'] == '2' ){ ?>  
			<li>
			<?php echo $this->Html->link(__('Mobilization'),'#'); ?>
			<ul class="submenu">
				<!--<li><?=$this->Html->link(__('Consolidated'), ['controller' => 'Reports', 'action' => 'companywisemf']); ?></li>-->
				<li><?=$this->Html->link(__('Consolidated'), ['controller' => 'Reports', 'action' => 'csltdmoblztionfd']); ?></li>
				<li><?=$this->Html->link(__('RM Report'), ['controller' => 'Reports', 'action' => 'csltdmoblztionrm']); ?></li>
				<!--<li><?=$this->Html->link(__('Branch Wise'), ['controller' => 'Reports', 'action' => 'csltdmoblztion']); ?></li>-->
				<!--<li><?=$this->Html->link(__('Company Wise'), ['controller' => 'Reports', 'action' => 'ourcompanywisemfrcd']); ?></li>-->
				<!--<li><?=$this->Html->link(__('Company Wise'), ['controller' => 'Reports', 'action' => 'ourcompanywisefdrcd']); ?></li>-->
				<!--<li><?//=$this->Html->link(__('Client Wise'), ['controller' => 'Reports', 'action' => 'clientwisemf']); ?></li>-->
			</ul>
		</li>
	  <?php } ?> 
	  
	 <?php if($user['group_id'] == '2' || $user['group_id'] == '3'){ ?>  
             <!--<li>
				<?php echo $this->Html->link(__('Office Reports'),'#') ?>
				   <ul class="submenu">
				      <li><?= $this->Html->link(__('FD PortFolio'), ['controller' => 'Reports', 'action' => 'fdcprofile']) ?></li>
					  <li><?= $this->Html->link(__('Date Range wise FD Maturity'), ['controller' => 'Fds', 'action' => 'fdmaturity']) ?></li>
                   </ul>
			 </li>-->
	  <?php } ?> 
	  
	    <?php if(!empty($user['group_id']) && $user['group_id'] == '2'){ ?>
    	    <li>
                   <?=$this->Html->link(__('Merged Data'), ['controller' => 'Fds', 'action' => 'fdverifieddata']); ?>
            </li>
    		<li>
                   <?=$this->Html->link(__('Upload Data File'), ['controller' => 'Fds', 'action' => 'fdupload']); ?>
            </li> 
    		<li>
                    <?=$this->Html->link(__('Uploaded Format List'), ['controller' => 'Fds', 'action' => 'fdformatlist']); ?>
            </li>
    	    <li>
                    <?= $this->Html->link(__('Raw Uploaded Data'), ['controller' => 'Fds', 'action' => 'fdimportdata']); ?>
            </li> 
        
        <?php } ?>
        
        
        
		<?php if($user['group_id'] == '2'){ ?>
            <li>    
                <?php echo $this->Html->link(__('Administration'),'#') ?>
                <ul class="submenu">
                    <!--<li><?= $this->Html->link(__('Customers'), ['controller' => 'Customers', 'action' => 'index'], ['enclose'=>'li']) ?></li>
                    <li><?= $this->Html->link(__('Brokers'), ['controller' => 'Brokers', 'action' => 'index']) ?> </li>
                    <li><?= $this->Html->link(__('Companies'), ['controller' => 'Companies', 'action' => 'index']) ?></li>-->				
                    <li><?= $this->Html->link(__('Banks'), ['controller' => 'Banks', 'action' => 'index']) ?></li>
                    <li><?= $this->Html->link(__('Users'), ['controller' => 'Users', 'action' => 'index'], ['enclose'=>'li']) ?></li>
                   <!-- <li><?= $this->Html->link(__('Scheme Master'), ['controller' => 'Mffunds', 'action' => 'index']) ?> </li> 
                    <li><?= $this->Html->link(__('FD Plan Master'), ['controller' => 'Plans', 'action' => 'index']) ?> </li>                                    
                    <li><?= $this->Html->link(__('EUNI Master'), ['controller' => 'Eunis', 'action' => 'index']) ?> </li>-->
                    <li><?= $this->Html->link(__('FD Import SetUp'), ['controller' => 'Fds', 'action' => 'importsetup']) ?> </li>
                    <!-- <li><?= $this->Html->link(__('FD Import SetUp'), ['controller' => 'Fds', 'action' => 'importsetup']) ?> </li>-->
                    <!--<li><?= $this->Html->link(__('Add Fixed Deposit'), ['controller' => 'Fds', 'action' => 'addfixeddeposit']) ?>-->
					<!--<li><?= $this->Html->link(__('Add HDFC'), ['controller' => 'Fds', 'action' => 'addhdfc']) ?> </li>
					<li><?= $this->Html->link(__('Add IFAN'), ['controller' => 'Fds', 'action' => 'addifan']) ?> </li>
					<li><?= $this->Html->link(__('Add SMC'), ['controller' => 'Fds', 'action' => 'addsmc']) ?> </li>
					<li><?= $this->Html->link(__('Add KARVY'), ['controller' => 'Fds', 'action' => 'addkarvy']) ?> </li>
					<li><?= $this->Html->link(__('Add PNB'), ['controller' => 'Fds', 'action' => 'addpnb']) ?> </li>
					<li><?= $this->Html->link(__('Add BAJAJ'), ['controller' => 'Fds', 'action' => 'addbajaj']) ?> </li>
					<li><?= $this->Html->link(__('Add JM'), ['controller' => 'Fds', 'action' => 'addjm']) ?> </li>
					<li><?= $this->Html->link(__('Add Shriram'), ['controller' => 'Fds', 'action' => 'addshriram']) ?> </li>-->
					<li><?= $this->Html->link(__('CUSTOMERS'), ['controller' => 'customers', 'action' => 'index']) ?>
					<li><?= $this->Html->link(__('BROKERS'), ['controller' => 'brokers', 'action' => 'index']) ?>
					<li><?= $this->Html->link(__('Add RM'),['controller' => 'Regionalmanagers','action' => 'index'])?>
					<li><?= $this->Html->link(__('COMPANIES'), ['controller' => 'companies', 'action' => 'index']) ?>
					<li><?= $this->Html->link(__('PLANS'), ['controller' => 'plans', 'action' => 'index']) ?>
					<li><?= $this->Html->link(__('FIXED DEPOSIT'), ['controller' => 'fds', 'action' => 'index']) ?>
					<!--<li><?= $this->Html->link(__('Mutual Fund'), ['controller' => 'fds', 'action' => 'mutualfnd']) ?>-->
					<li><?= $this->Html->link(__('Merge Investors'), ['controller' => 'fds', 'action' => 'mergeinvestors']) ?>
                </ul>
            </li>
        <?php } ?> 
    </ul>
</div>
