<?php  use Cake\Network\Session;
$user = $this->request->session()->read('Auth.User'); ?>
<div id="css-sidemenu">
    <ul>
        <li class="<?= $this->Html->link(__('Dashboard'),['controller'=>'Users','action'=>'dashboard'] )?'active' :'' ?>"><?= $this->Html->link(__('Dashboard'),['controller'=>'Users','action'=>'dashboard']) ?></li>
        <li class="has-submenu">
                <a href="#" class="ancr-menu">Products</a>
                <ul>
                     <li><?= $this->Html->link(__('Mutual Fund'), ['controller' => 'Mutualfunds', 'action' => 'index']) ?> </li>                                    
                     <li><?= $this->Html->link(__('Fixed Deposit'), ['controller' => 'Fds', 'action' => 'index']) ?> </li>
                     <li><?= $this->Html->link(__('NCD'), ['controller' => 'ncds', 'action' => 'index']) ?></li>
                     <li><?= $this->Html->link(__('IPO'), ['controller' => 'Ipos', 'action' => 'index']) ?></li>
               </ul>
        </li>  
      <?php if($user['group_id'] == '2' || $user['group_id'] == '3'){ ?>  
        <li class="has-submenu">
                <a href="#" class="ancr-menu">Reports</a>
                <ul>
                    <li><?= $this->Html->link(__('MF SIP Maturity'), ['controller' => 'Reports', 'action' => 'mf']) ?></li>
                    <li><?= $this->Html->link(__('MF Client  Portfolio'), ['controller' => 'Reports', 'action' => 'mfcprofile']) ?></li>
                    
                    <li><?= $this->Html->link(__('FD Maturity'), ['controller' => 'Reports', 'action' => 'fds']) ?></li>
                    <li><?= $this->Html->link(__('FD Client Portfolio'), ['controller' => 'Reports', 'action' => 'fdcprofile']) ?></li>
                    
                     <li><?= $this->Html->link(__('Client Portfolio'), ['controller' => 'Reports', 'action' => 'userreport']) ?></li>
                    <li><?= $this->Html->link(__('Mobilization'), ['controller' => 'Reports', 'action' => 'companywiseproduct']) ?></li>
                    </ul>
					</li>
                  <!--   <li><?= $this->Html->link(__('Daily Report'), ['controller' => 'Reports', 'action' => 'dailyreport']) ?></li> -->
                    
                   <!-- <li><?= $this->Html->link(__('Ncds'), ['controller' => 'Reports', 'action' => 'ncd']) ?></li>
                    <li><?= $this->Html->link(__('Ipos'), ['controller' => 'Reports', 'action' => 'ipo']) ?></li>
                     <li><?= $this->Html->link(__('Customers'), ['controller' => 'Reports', 'action' => 'customerdetail']) ?></li>
                   -->
				    <li class="has-submenu">
                <a href="#" class="ancr-menu">Daily Reports</a>
				   <ul>
                        <li><?= $this->Html->link(__('MutualFund'), ['controller' => 'Reports', 'action' => 'dailymf']) ?></li>
                        <li><?= $this->Html->link(__('FixedDeposit'), ['controller' => 'Reports', 'action' => 'dailyfd']) ?></li>
                        <li><?= $this->Html->link(__('NCD'), ['controller' => 'Reports', 'action' => 'dailyncd']) ?></li>
                        <li><?= $this->Html->link(__('IPO'), ['controller' => 'Reports', 'action' => 'dailyipo']) ?></li>
                    </ul>
                
        </li>
      <?php } ?>   
        <li class="has-submenu">
                <a href="#" class="ancr-menu">Administration</a>
                <ul>
                    <li><?= $this->Html->link(__('Customers'), ['controller' => 'Customers', 'action' => 'index'], ['enclose'=>'li']) ?></li>
                <?php if($user['group_id'] == '2'|| $user['group_id'] == '3'){ ?>   
                    <li><?= $this->Html->link(__('Brokers'), ['controller' => 'Brokers', 'action' => 'index']) ?> </li> 
                    <!--<li><?= $this->Html->link(__('Bank Details'), ['controller' => 'Bankdetails', 'action' => 'index']) ?></li> -->
                    <li><?= $this->Html->link(__('Companies'), ['controller' => 'Companies', 'action' => 'index']) ?></li> 
                    <li><?= $this->Html->link(__('Company Branches'), ['controller' => 'Branches', 'action' => 'index']) ?></li>				
                    <li><?= $this->Html->link(__('Banks'), ['controller' => 'Banks', 'action' => 'index']) ?></li>	
                    <li><?= $this->Html->link(__('Bank Branches'), ['controller' => 'Bankbranches', 'action' => 'index']) ?></li> 
                    <li><?= $this->Html->link(__('Users'), ['controller' => 'Users', 'action' => 'index'], ['enclose'=>'li']) ?></li>
                    <li><?= $this->Html->link(__('Products'), ['controller' => 'Products', 'action' => 'index']) ?></li>
                    <li><?= $this->Html->link(__('Groups'), ['controller' => 'Groups', 'action' => 'index'], ['enclose'=>'li']) ?></li>
                    <li><?= $this->Html->link(__('Scheme Master'), ['controller' => 'Mffunds', 'action' => 'index']) ?> </li> 
                    <li><?= $this->Html->link(__('FD/IPO/NCD Plan Master'), ['controller' => 'Plans', 'action' => 'index']) ?> </li>                                    
                    <li><?= $this->Html->link(__('EUNI Master'), ['controller' => 'Eunis', 'action' => 'index']) ?> </li>                                    
                <?php } 
                ?> 
                </ul>
        </li>
        <!--<li><h5>Post Management</h5></li>
        <ul>
                <li><?= $this->Html->link(__('Posts'), ['controller' => 'Posts', 'action' => 'index']) ?></li>
                <li><?= $this->Html->link(__('New Post'), ['controller' => 'Posts', 'action' => 'add']) ?></li>
        </ul>-->
    </ul>
</div>
