<?php
    $_helper = $this->helper('Magetop\Agency\Helper\Data');
    $isAgency= $_helper->isAgency();
    $magentoCurrentUrl = $block->getCurrentUrl();
?>
<nav class="account-nav">
    <ul class="nav items">
        <?php if ($isAgency): ?>
             <li class="nav item <?php echo strpos($magentoCurrentUrl,'agency/assignproduct/view')? "current":"";?>">
                 <a href="<?php echo $block->getUrl('agency/assignproduct/view', ['_secure' => $this->getRequest()->isSecure()]); ?>">
                    <?php /* @escapeNotVerified */ echo __('Assign Product') ?>
                 </a>
            </li>
            <li class="nav item <?php echo strpos($magentoCurrentUrl,'agency/assignproduct/productlist')? "current":"";?>">
                <a href="<?php echo $block->getUrl('agency/assignproduct/productlist', ['_secure' => $this->getRequest()->isSecure()]); ?>">
                   <?php /* @escapeNotVerified */ echo __('Assign Product List') ?>
                </a>
            </li>
        <?php endif; ?>
    </ul>
</nav>