<div id="customernav" class="navbar">
	<ul class="nav navbar-nav main_menu" id="customer_menu_top">
<?php if ($active) { ?>
        <li class="nav-item d-block d-md-none">
            <a class="nav-link active"
               href="<?php echo $account; ?>">
                <?php echo $text_welcome.' '.$name; ?>
            </a>
        </li>
        <li class="nav-item dropdown dropend d-none d-md-block">
            <a class="nav-link active dropdown-toggle"
               href="<?php echo $account; ?>" id="customerMenuDropdown"
               role="button" data-bs-toggle="dropdown" aria-expanded="false" data-bs-autoClose="true">
                <?php echo $text_welcome.' '.$name; ?>
            </a>
            <ul class="dropdown-menu " aria-labelledby="customerMenuDropdown">
                <?php if ($login) { ?>
                    <li class="dropdown">
                        <a class="dropdown-item" href="<?php echo $login; ?>">
                            <i class="fa fa-unlock fa-fw me-2"></i> <?php echo $text_login; ?></a>
                    </li>
                <?php } ?>
                <li class="dropdown <?php if ( $account == $current) echo 'current'; ?>">
                    <a class="dropdown-item" href="<?php echo $account; ?>">
                        <i class="fa fa-gauge-high fa-fw me-2"></i> <?php echo $text_account_dashboard; ?></a>
                </li>
                <li class="dropdown <?php if ( $wishlist == $current) echo 'current'; ?>">
                    <a class="dropdown-item"  href="<?php echo $wishlist; ?>">
                        <i class="fa fa-heart-pulse fa-fw me-2"></i> <?php echo $text_account_wishlist; ?>
                    </a>
                </li>
                <li class="dropdown <?php if ( $information == $current) echo 'current'; ?>">
                    <a class="dropdown-item"  href="<?php echo $information; ?>">
                        <i class="fa fa-edit fa-fw me-2"></i> <?php echo $text_information; ?>
                    </a>
                </li>
                <li class="dropdown <?php if ( $password == $current) echo 'current'; ?>">
                    <a class="dropdown-item"  href="<?php echo $password; ?>">
                        <i class="fa fa-key fa-fw me-2"></i> <?php echo $text_password; ?>
                    </a>
                </li>
                <li class="dropdown <?php if ( $address == $current) echo 'current'; ?>">
                    <a class="dropdown-item"  href="<?php echo $address; ?>">
                        <i class="fa fa-address-book fa-fw me-2"></i> <?php echo $text_address; ?>
                    </a>
                </li>

                <?php echo $this->getHookVar('customer_address_links'); ?>

                <li class="dropdown <?php if ( $history == $current) echo 'current'; ?>">
                    <a class="dropdown-item"  href="<?php echo $history; ?>"><i class="fa fa-clock-rotate-left fa-fw me-2"></i> <?php echo $text_history; ?></a>
                </li>
                <li class="dropdown <?php if ( $transactions == $current) echo 'current'; ?>">
                    <a class="dropdown-item" href="<?php echo $transactions; ?>"><i class="fa-solid fa-money-bill-transfer me-2"></i> <?php echo $text_transactions; ?></a>
                </li>

            <?php if ($this->config->get('config_download')) { ?>
                <li class="dropdown <?php if ( $download == $current) echo 'current'; ?>">
                  <a class="dropdown-item" href="<?php echo $download; ?>"><i class="fa fa-download fa-fw me-2"></i> <?php echo $text_download; ?></a>
                </li>
            <?php } ?>

            <?php echo $this->getHookVar('customer_download_links'); ?>

            <li class="dropdown <?php if ( $notification == $current) echo 'current'; ?>">
              <a class="dropdown-item" href="<?php echo $notification; ?>"><i class="fa fa-bell fa-fw me-2"></i> <?php echo $text_my_notifications; ?></a>
            </li>

            <?php echo $this->getHookVar('customer_account_links'); ?>

            <li class="dropdown <?php if ( $logout == $current) echo 'current'; ?>">
              <a class="dropdown-item" href="<?php echo $logout; ?>">
                  <i class="fa fa-arrow-right-from-bracket fa-fw me-2"></i>
                <?php echo $text_not.' '.$name.'? '.$text_logout; ?></a>
            </li>
        </ul>
    </li>
<?php } else { ?>
        <li><a class="nav-link active" href="<?php echo $login; ?>"><?php echo $text_login_or_register; ?></a></li>
<?php } ?>
    </ul>
</div>