{*
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
{if isset($warnings) AND !empty($warnings)}
	{foreach from=$warnings item=warning}
		<div class="alert alert-danger">
			{$warning|escape:'html':'UTF-8'}<br>
		</div>
	{/foreach}
{/if}

{if isset($cfmmsg_flag) && $cfmmsg_flag == 1}
	<div class="alert alert-success">
		{l s='Update successful.' d='Modules.Agilemultisellerpro.Tabs'}
	</div>
{/if}

{if !$sellerinfo->getIdSellerinfo()}
	<div class="alert alert-info">
		{l s='You do not yet have a seller account!' d='Modules.Agilemultisellerpro.Tabs'}
	</div>
{elseif !$isSeller}
	<div class="alert alert-info">
		{l s='Your account is under approval or pending. Some functions are not available to you.' d='Modules.Agilemultisellerpro.Tabs'}
	</div>
{/if}

{if isset($pay_options_link) && !empty($pay_options_link)}{$pay_options_link|escape:'htmlall':'UTF-8'}{/if}

<div class="tabs mt-0">
	<ul class="nav nav-tabs">
		<li class="nav-item" {if $seller_tab_id==1}aria-selected="true" {/if} aria-controls="idTab1">
			<a class="nav-link {if $seller_tab_id==1}js-product-nav-active active{/if}"
				href="{if $seller_tab_id==1}#idTab1{else}{$link->getModuleLink('agilemultisellerpro', 'sellersummary', [],true)|escape:'htmlall':'UTF-8'}{/if}">{l s='Summary' d='Modules.Agilemultisellerpro.Tabs'}</a>
		</li>

		{if $isSeller}
			<li class="nav-item" {if $seller_tab_id==2}aria-selected="true" {/if} aria-controls="idTab2">
				<a class="nav-link {if $seller_tab_id==2}js-product-nav-active active{/if}"
					href="{$link->getModuleLink('agilemultisellerpro', 'sellerbusiness', [],true)|escape:'htmlall':'UTF-8'}">{l s='Business Info' d='Modules.Agilemultisellerpro.Tabs'}</a>
			</li>

			<li class="nav-item" {if $seller_tab_id==3}aria-selected="true" {/if} aria-controls="idTab3">
				<a class="nav-link {if $seller_tab_id==3}js-product-nav-active active{/if}"
					href="{$link->getModuleLink('agilemultisellerpro', 'sellerproducts', [],true)|escape:'htmlall':'UTF-8'}">{l s='Products' d='Modules.Agilemultisellerpro.Tabs'}</a>
			</li>

			<li class="nav-item" {if $seller_tab_id==4}aria-selected="true" {/if} aria-controls="idTab4">
				<a class="nav-link {if $seller_tab_id==4}js-product-nav-active active{/if}"
					href="{$link->getModuleLink('agilemultisellerpro', 'sellerorders', [],true)|escape:'htmlall':'UTF-8'}">{l s='Orders' d='Modules.Agilemultisellerpro.Tabs'}</a>
			</li>

			<li class="nav-item" {if $seller_tab_id==6}aria-selected="true" {/if} aria-controls="idTab6">
				<a class="nav-link {if $seller_tab_id==6}js-product-nav-active active{/if}"
					href="{$link->getModuleLink('agilemultisellerpro', 'sellershipping', [],true)|escape:'htmlall':'UTF-8'}">{l s='Shipping' d='Modules.Agilemultisellerpro.Tabs'}</a>
			</li>

			<li class="nav-item" {if $seller_tab_id==11}aria-selected="true" {/if} aria-controls="idTab11">
				<a class="nav-link {if $seller_tab_id==11}js-product-nav-active active{/if}"
					href="{$link->getModuleLink('agilemultisellerpro', 'productimport', [],true)|escape:'htmlall':'UTF-8'}">{l s='Import' d='Modules.Agilemultisellerpro.Tabs'}</a>
			</li>

			<li class="nav-item" {if $seller_tab_id==9}aria-selected="true"{/if} aria-controls="idTab9">
				<a class="nav-link {if $seller_tab_id==9}js-product-nav-active active{/if}" href="{$link->getModuleLink('agilemultisellerpro', 'myreviews', [],true)|escape:'htmlall':'UTF-8'}">{l s='Feedback' d='Modules.Agilemultisellerpro.Tabs'}</a>
			</li>
		{/if}
	</ul>
</div>
<nav id="nav-mobile"></nav>
