<?php
    /**
     * Magetop Store
     *
     * @category  Magetop Extensions
     * @package   Magetop_Quotesystem
     * @author    Magetop Developer
     * @copyright Copyright (c) Magetop (https://www.magetop.com)
     * @license   https://www.magetop.com/license.html
     */
?>
<?php
$magentoCurrentUrl = $block->getCurrentUrl();
?>
    <li class="nav item quote-nav ">
        <a onClick="javascript:void(0)">
            <?= /* @noEscape */ __("My Quotes"); ?>
        </a>
        <ul
        class="quote-sub-nav quote-child-menu" 
        <?= (strpos(
            $magentoCurrentUrl,
            'quotesystem/buyerquote/index'
        ) !== false) ? "style=\"display:block\"" : '';?>>
            <li class="nav item
                <?= /* @noEscape */
                strpos(
                    $magentoCurrentUrl,
                    'quotesystem/buyerquote/index'
                ) !== false ? "current":"";?>">
                <?php
                if (strpos(
                    $magentoCurrentUrl,
                    'quotesystem/buyerquote/index'
                ) !== false
                ) {
                    ?>
                    <strong>
                    <?= /* @noEscape */ __('Requested Quotes'); ?>
                    </strong>
                    <?php
                } else {
                    ?>
                    <a href="
                    <?= /* @noEscape */ $block->getUrl(
                        'quotesystem/buyerquote/index',
                        ['_secure' => $block->getRequest()->isSecure()]
                    );
                    ?>"
                    >
                    <?= /* @noEscape */ __('Requested Quotes'); ?>
                    </a>
                    <?php
                }
                ?>
            </li>
        
            <li
                class="nav item
                <?= /* @noEscape */
                    strpos(
                        $magentoCurrentUrl,
                        'quotesystem/buyerquote/viewquotes'
                    ) !== false ? "current":"";?>">
                <?php
                if (strpos(
                    $magentoCurrentUrl,
                    'quotesystem/buyerquote/viewquotes'
                ) !== false
                ) {
                    ?>
                    <strong>
                    <?= /* @noEscape */ __('Cart Quotes'); ?>
                    </strong>
                    <?php
                } else {
                    ?>
                    <a href="
                    <?= /* @noEscape */ $block->getUrl(
                        'quotesystem/buyerquote/viewquotes',
                        ['_secure' => $block->getRequest()->isSecure()]
                    );
                    ?>"
                    >
                    <?= /* @noEscape */ __('Cart Quotes'); ?>
                    </a>
                    <?php
                }
                ?>
            </li>  
        </ul>
    </li> 
    </script>
<?php // phpcs:disable ?>
<script type="text/x-magento-init">
{
    "*" : {
            "quoteLink": ""
    }
}
</script>
<?php // phpcs:enable ?>