<?php
use Zend\Session\Container;
$sessionUser = new Container('userlogin');
$userData = $sessionUser->userData;
//$userData['user_type_id']=3;
?>
<ul class="nav nav-tabs nav-tabs1 tab_ul col-sm-2 paddig-right0 margin-top15px">
   <li class="<?php if($tab=='personal-details') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'index'));?>"><?php echo $this->translate('Personal Detail'); ?></a></li>
   <li class="<?php if($tab=='change-password') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'change-password'));?>"><?php echo $this->translate('Change Password'); ?></a></li>
   <li class="<?php if($tab=='security') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'security'));?>"><?php echo $this->translate('Security'); ?></a></li>
   <?php if($userData['user_type_id']==3 || $userData['user_type_id']==4 || $userData['user_type_id']==5 || $userData['user_type_id']==6 || $userData['user_type_id']==7){ ?>
   <li class="<?php if($tab=='company-details') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'company-detail'));?>"><?php echo $this->translate('Company Detail'); ?></a></li>
   <?php } if($userData['user_type_id']==3 || $userData['user_type_id']==4 || $userData['user_type_id']==5) { ?>
    <li class="<?php if($tab=='vehicle-detail') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'vehicle-detail'));?>"><?php echo $this->translate('Vehicle Detail'); ?></a></li>
    <li class="<?php if($tab=='bank-detail') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'bank-detail'));?>"><?php echo $this->translate('Bank Detail'); ?></a></li>
    <li class="<?php if($tab=='credit-request') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'credit-request'));?>"><?php echo $this->translate('Payment Upload'); ?></a></li>
    <li class="<?php if($tab=='duty-detail') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'duty-detail'));?>"><?php echo $this->translate('Duty/Payment Details'); ?></a></li>
    <li class="<?php if($tab=='license-detail') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'license-detail'));?>"><?php echo $this->translate('License Details'); ?></a></li>
    <li class="<?php if($tab=='other-detail') echo "active"; ?>"><a href="<?php echo $this->url('profile', array('action'=>'other-detail'));?>"><?php echo $this->translate('Other Details'); ?></a></li>
   <?php } ?>
</ul>