{assign var="brandName" value="Nebulix"}
{assign var="brandTagline" value="Cloud Hosting Platform"}
{assign var="titleAction" value=$smarty.get.action|default:''}
{assign var="titleRp" value=$smarty.get.rp|default:''}
{assign var="pageTitleBase" value=$pagetitle|strip_tags|trim}
{if $templatefile == 'homepage' || ($filename == 'index' && !$titleRp && !$titleAction)}
    {assign var="pageTitleBase" value="Cloud Hosting, Billing & Client Management"}
{elseif !$pageTitleBase}
    {assign var="pageTitleBase" value=$brandTagline}
{/if}
<!doctype html>
<html lang="{if $language|lower == 'arabic'}ar{else}en{/if}" dir="ltr">
<head>
    <meta charset="{$charset}" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>{$brandName}{if $pageTitleBase} | {$pageTitleBase}{/if}</title>
    {include file="$template/includes/head.tpl"}
    {$headoutput}
    
</head>
{assign var="currentAction" value=$smarty.get.action|default:''}
{assign var="currentRp" value=$smarty.get.rp|default:''}
{assign var="isOverviewPage" value=($filename == 'clientarea' && !$currentAction)}
{assign var="isServicesPage" value=($filename == 'clientarea' && ($currentAction == 'services' || $currentAction == 'productdetails' || $currentAction == 'upgrade'))}
{assign var="isDomainsPage" value=(($filename == 'clientarea' && $currentAction == 'domains') || ($filename == 'cart' && ($smarty.get.domain == 'register' || $smarty.get.domain == 'transfer')))}
{assign var="isInvoicesPage" value=($filename == 'clientarea' && ($currentAction == 'invoices' || $currentAction == 'quotes' || $currentAction == 'masspay' || $currentAction == 'addfunds' || $currentAction == 'paymentmethods'))}
{assign var="isSupportPage" value=($filename == 'supporttickets' || $filename == 'submitticket' || $filename == 'viewticket')}
{assign var="isUserProfilePage" value=($filename == 'index' && $currentRp == '/user/profile')}
{assign var="isUserPasswordPage" value=($filename == 'index' && $currentRp == '/user/password')}
{assign var="isUserSecurityPage" value=($filename == 'index' && $currentRp == '/user/security')}
{assign var="isAccountUsersPage" value=($filename == 'index' && $currentRp == '/account/users')}
{assign var="isAccountContactsPage" value=($filename == 'index' && $currentRp == '/account/contacts')}
{assign var="isPaymentMethodsPage" value=(($filename == 'clientarea' && $currentAction == 'paymentmethods') || ($filename == 'index' && $currentRp|substr:0:23 == '/account/paymentmethods'))}
{assign var="isAccountPage" value=(($filename == 'clientarea' && ($currentAction == 'details' || $currentAction == 'emails')) || $isUserProfilePage || $isUserPasswordPage || $isUserSecurityPage || $isAccountUsersPage || $isAccountContactsPage || $isPaymentMethodsPage)}
{assign var="isAuthPage" value=($templatefile == 'login' || $templatefile == 'clientregister' || $templatefile == 'password-reset-container' || $templatefile == 'password-reset-email-prompt' || $templatefile == 'password-reset-security-prompt' || $templatefile == 'password-reset-change-prompt')}
{assign var="isStandaloneContactPage" value=($filename == 'contact')}
{assign var="isStoreRoute" value=($currentRp|substr:0:7 == '/store/')}
{assign var="isOrderFocusPage" value=($filename == 'cart' || $isStoreRoute)}
{assign var="isDashboardHome" value=($templatefile == 'clientareahome')}
{assign var="hasCustomPageHero" value=in_array($templatefile, [
    'clientareaproducts',
    'clientareadomains',
    'clientareadomaindetails',
    'clientareainvoices',
    'clientareaemails',
    'supportticketslist',
    'supportticketsubmit-steptwo',
    'viewticket',
    'clientareadetails',
    'clientareaaddfunds',
    'viewinvoice',
    'knowledgebase',
    'knowledgebasearticle',
    'announcements',
    'viewannouncement'
])}
{assign var="notificationInvoices" value=$clientsstats.numunpaidinvoices|default:$clientsstats.numdueinvoices|default:0}
{assign var="notificationTickets" value=$clientsstats.numactivetickets|default:0}
{assign var="notificationServices" value=$clientsstats.productsactive|default:$clientsstats.productsnumactive|default:0}
{assign var="notificationDomains" value=$clientsstats.numdomains|default:$clientsstats.numactivedomains|default:0}
{assign var="notificationTotal" value=$notificationInvoices+$notificationTickets}
{assign var="dashboardUserInitial" value='U'}
{assign var="dashboardUserName" value=$brandName}
{if $clientsdetails.firstname}
    {assign var="dashboardUserInitial" value=$clientsdetails.firstname|substr:0:1|upper}
    {assign var="dashboardUserName" value=$clientsdetails.firstname|cat:' '|cat:$clientsdetails.lastname}
{elseif $loggedinuser.firstname}
    {assign var="dashboardUserInitial" value=$loggedinuser.firstname|substr:0:1|upper}
    {assign var="dashboardUserName" value=$loggedinuser.firstname|cat:' '|cat:$loggedinuser.lastname}
{/if}
<body class="whmcs-dashboard-body dashboard-preload-pending{if $isAuthPage} is-auth-page is-clean-page{/if}{if $isStandaloneContactPage} is-contact-page is-clean-page{/if}{if $isOrderFocusPage} is-order-focus-page{/if}" data-theme="blue" data-page-template="{$templatefile}">
    {if $captcha}{$captcha->getMarkup()}{/if}
    {$headeroutput}
    {include file="$template/includes/network-issues-notifications.tpl"}
    <div class="dashboard-preloader" id="dashboardPreloader" aria-hidden="true">
        <div class="dashboard-preloader__glow dashboard-preloader__glow--one"></div>
        <div class="dashboard-preloader__glow dashboard-preloader__glow--two"></div>
        <div class="dashboard-preloader__inner">
            <div class="dashboard-preloader__brand">
                <span class="dashboard-preloader__lockup" aria-hidden="true">
                    {include file="$template/includes/hostique-logo-lockup.tpl" hostiqueLogoClass="hostique-logo-lockup--preloader" hostiqueLogoAlt=$brandName|cat:' Logo'}
                </span>
            </div>
            <div class="dashboard-preloader__caption">{$brandName|upper} CLOUD</div>
            <div class="dashboard-preloader__bar" aria-hidden="true">
                <span class="dashboard-preloader__bar-track">
                    <span class="dashboard-preloader__bar-fill" data-preloader-progress></span>
                </span>
            </div>
            <div class="dashboard-preloader__percent" data-preloader-percent>0%</div>
        </div>
    </div>

    {if !$isAuthPage && !$isStandaloneContactPage && !$isOrderFocusPage}
    <div class="dashboard-shell">
        <aside class="dashboard-sidebar" id="dashboardSidebar">
            <div class="dashboard-sidebar__brand">
                <div class="dashboard-sidebar__brand-lockup">
                    <a class="navbar-brand-lockup hostique-brand" href="{$WEB_ROOT}/clientarea.php" aria-label="{$brandName}">
                        {include file="$template/includes/hostique-logo-lockup.tpl" hostiqueLogoClass="hostique-logo-lockup--sidebar" hostiqueLogoAlt=$brandName|cat:' Control Panel'}
                    </a>
                </div>
                <button class="dashboard-sidebar__close d-xl-none" type="button" data-dashboard-sidebar-close aria-label="{lang key='close'}">
                    <i class="fas fa-times"></i>
                </button>
            </div>

                <nav class="dashboard-nav">
                    {if $loggedin}
                    <a class="dashboard-nav__link dashboard-nav__link--solo{if $isOverviewPage} active{/if}" href="{$WEB_ROOT}/clientarea.php" aria-label="{lang key='clientareatitle'}">
                        <span class="dashboard-nav__link-main">
                            <svg viewBox="0 0 24 24"><path d="M4 11.5 12 5l8 6.5"></path><path d="M6.5 10.5V19h11v-8.5"></path></svg>
                            <span>{lang key='clientareatitle'}</span>
                        </span>
                        <span class="dashboard-nav__chevron dashboard-nav__chevron--ghost" aria-hidden="true">
                            <svg viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"></path></svg>
                        </span>
                    </a>
                    <div class="dashboard-nav__group{if $isServicesPage} is-open{/if}">
                        <div class="dashboard-nav__row">
                            <button class="dashboard-nav__link" type="button" data-dashboard-nav-toggle aria-expanded="{if $isServicesPage}true{else}false{/if}">
                                <span class="dashboard-nav__link-main">
                                    <svg viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="5" rx="1.5"></rect><rect x="4" y="10" width="16" height="4.5" rx="1.5"></rect><rect x="4" y="15.5" width="16" height="4.5" rx="1.5"></rect></svg>
                                    <span>{lang key='navservices'}</span>
                                </span>
                                <span class="dashboard-nav__chevron" aria-hidden="true">
                                    <svg viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"></path></svg>
                                </span>
                            </button>
                        </div>
                        <div class="dashboard-nav__submenu-wrap">
                            <div class="dashboard-nav__submenu">
                                <a class="dashboard-nav__sublink{if $isServicesPage} active{/if}" href="{$WEB_ROOT}/clientarea.php?action=services">{lang key='navservices'}</a>
                            </div>
                        </div>
                    </div>
                    <div class="dashboard-nav__group{if $isDomainsPage} is-open{/if}">
                        <div class="dashboard-nav__row">
                            <button class="dashboard-nav__link" type="button" data-dashboard-nav-toggle aria-expanded="{if $isDomainsPage}true{else}false{/if}">
                                <span class="dashboard-nav__link-main">
                                    <svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="8"></circle><path d="M4 12h16"></path><path d="M12 4a13 13 0 0 1 0 16"></path><path d="M12 4a13 13 0 0 0 0 16"></path></svg>
                                    <span>{lang key='navdomains'}</span>
                                </span>
                                <span class="dashboard-nav__chevron" aria-hidden="true">
                                    <svg viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"></path></svg>
                                </span>
                            </button>
                        </div>
                        <div class="dashboard-nav__submenu-wrap">
                            <div class="dashboard-nav__submenu">
                                <a class="dashboard-nav__sublink{if $isDomainsPage} active{/if}" href="{$WEB_ROOT}/clientarea.php?action=domains">{lang key='navdomains'}</a>
                            </div>
                        </div>
                    </div>
                    <div class="dashboard-nav__group{if $isInvoicesPage} is-open{/if}">
                        <div class="dashboard-nav__row">
                            <button class="dashboard-nav__link" type="button" data-dashboard-nav-toggle aria-expanded="{if $isInvoicesPage}true{else}false{/if}">
                                <span class="dashboard-nav__link-main">
                                    <svg viewBox="0 0 24 24"><path d="M7 3.5h8l4 4v12a1.5 1.5 0 0 1-1.5 1.5h-10A1.5 1.5 0 0 1 6 19.5V5A1.5 1.5 0 0 1 7.5 3.5z"></path><path d="M15 3.5V8h4"></path><path d="M9 12h6"></path><path d="M9 16h4"></path></svg>
                                    <span>{lang key='navinvoices'}</span>
                                </span>
                                <span class="dashboard-nav__chevron" aria-hidden="true">
                                    <svg viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"></path></svg>
                                </span>
                            </button>
                        </div>
                        <div class="dashboard-nav__submenu-wrap">
                            <div class="dashboard-nav__submenu">
                                <a class="dashboard-nav__sublink{if $isInvoicesPage} active{/if}" href="{$WEB_ROOT}/clientarea.php?action=invoices">{lang key='navinvoices'}</a>
                                <a class="dashboard-nav__sublink{if $currentAction == 'addfunds'} active{/if}" href="{$WEB_ROOT}/clientarea.php?action=addfunds">{lang key='addfunds'}</a>
                            </div>
                        </div>
                    </div>
                    <div class="dashboard-nav__group{if $isSupportPage} is-open{/if}">
                        <div class="dashboard-nav__row">
                            <button class="dashboard-nav__link" type="button" data-dashboard-nav-toggle aria-expanded="{if $isSupportPage}true{else}false{/if}">
                                <span class="dashboard-nav__link-main">
                                    <svg viewBox="0 0 24 24"><path d="M18 10a6 6 0 1 0-12 0v5a2 2 0 0 0 2 2h2v-5H8"></path><path d="M16 17h2a2 2 0 0 0 2-2v-5"></path><path d="M12 19v2"></path></svg>
                                    <span>{lang key='navtickets'}</span>
                                </span>
                                <span class="dashboard-nav__chevron" aria-hidden="true">
                                    <svg viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"></path></svg>
                                </span>
                            </button>
                        </div>
                        <div class="dashboard-nav__submenu-wrap">
                            <div class="dashboard-nav__submenu">
                                <a class="dashboard-nav__sublink{if $isSupportPage} active{/if}" href="{$WEB_ROOT}/supporttickets.php">{lang key='navtickets'}</a>
                                <a class="dashboard-nav__sublink" href="{$WEB_ROOT}/submitticket.php">{lang key='navopenticket'}</a>
                            </div>
                        </div>
                    </div>
                {else}
                    <a class="dashboard-nav__link{if $filename == 'index'} active{/if}" href="{$WEB_ROOT}/index.php">
                        <svg viewBox="0 0 24 24"><path d="M3 12h18"></path><path d="M12 3v18"></path></svg>
                        <span>{$LANG.home}</span>
                    </a>
                    <a class="dashboard-nav__link" href="{$WEB_ROOT}/cart.php">
                        <svg viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="14" rx="2"></rect><path d="M8 20h8"></path></svg>
                        <span>{lang key='ordernowbutton'}</span>
                    </a>
                    <a class="dashboard-nav__link" href="{$WEB_ROOT}/cart.php?a=add&domain=register">
                        <svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="M3 12h18"></path><path d="M12 3a14 14 0 0 1 0 18 14 14 0 0 1 0-18z"></path></svg>
                        <span>{lang key='orderregisterdomain'}</span>
                    </a>
                    <a class="dashboard-nav__link" href="{$WEB_ROOT}/supporttickets.php">
                        <svg viewBox="0 0 24 24"><path d="M18 10a6 6 0 1 0-12 0v5a2 2 0 0 0 2 2h2v-5H8"></path><path d="M16 17h2a2 2 0 0 0 2-2v-5"></path><path d="M12 19v2"></path></svg>
                        <span>{$LANG.navsupport}</span>
                    </a>
                    <a class="dashboard-nav__link{if $filename == 'clientarea'} active{/if}" href="{$WEB_ROOT}/clientarea.php">
                        <svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.6 1.6 0 0 0 .3 1.7l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-1.7-.3 1.6 1.6 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.2a1.6 1.6 0 0 0-1-1.5 1.6 1.6 0 0 0-1.7.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.6 1.6 0 0 0 .3-1.7 1.6 1.6 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.2a1.6 1.6 0 0 0 1.5-1 1.6 1.6 0 0 0-.3-1.7l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.6 1.6 0 0 0 1.7.3h.1a1.6 1.6 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.2a1.6 1.6 0 0 0 1 1.5h.1a1.6 1.6 0 0 0 1.7-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.6 1.6 0 0 0-.3 1.7v.1a1.6 1.6 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.2a1.6 1.6 0 0 0-1.4 1z"></path></svg>
                        <span>{lang key='login'}</span>
                    </a>
                {/if}
            </nav>

            {if $loggedin}
                <div class="dashboard-sidebar__user">
                    <div class="dashboard-user-menu" data-dashboard-user-menu>
                        <button class="dashboard-user-card" type="button" data-dashboard-user-toggle aria-expanded="false" aria-controls="dashboardUserDropdown">
                            <div class="dashboard-user-card__avatar">
                                {if $clientsdetails.firstname}{$clientsdetails.firstname|substr:0:1|upper}{elseif $loggedinuser.firstname}{$loggedinuser.firstname|substr:0:1|upper}{else}U{/if}
                            </div>
                            <div class="dashboard-user-card__meta">
                                <div class="dashboard-user-card__name">{if $clientsdetails.firstname}{$clientsdetails.firstname} {$clientsdetails.lastname}{elseif $loggedinuser.firstname}{$loggedinuser.firstname} {$loggedinuser.lastname}{else}{$brandName}{/if}</div>
                                <div class="dashboard-user-card__email">{$loggedinuser.email}</div>
                            </div>
                            <span class="dashboard-user-card__chevron" aria-hidden="true">
                                <svg viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"></path></svg>
                            </span>
                        </button>
                        <div class="dashboard-user-dropdown" id="dashboardUserDropdown">
                            <div class="dashboard-user-dropdown__section">
                                <a class="dashboard-user-dropdown__item{if $filename == 'clientarea' && !$currentAction} active{/if}" href="{$WEB_ROOT}/clientarea.php">
                                    <span class="dashboard-user-dropdown__icon">
                                        <svg viewBox="0 0 24 24"><path d="M3 12h18"></path><path d="M12 3v18"></path></svg>
                                    </span>
                                    <span>{lang key='clientareatitle'}</span>
                                </a>
                                <a class="dashboard-user-dropdown__item{if $filename == 'clientarea' && $currentAction == 'details'} active{/if}" href="{$WEB_ROOT}/clientarea.php?action=details">
                                    <span class="dashboard-user-dropdown__icon">
                                        <svg viewBox="0 0 24 24"><circle cx="12" cy="8" r="3.25"></circle><path d="M5 20a7 7 0 0 1 14 0"></path></svg>
                                    </span>
                                    <span>{$LANG.clientareadetails|default:$LANG.myaccount}</span>
                                </a>
                                <a class="dashboard-user-dropdown__item{if $isAccountContactsPage} active{/if}" href="{$WEB_ROOT}/index.php?rp=/account/contacts">
                                    <span class="dashboard-user-dropdown__icon">
                                        <svg viewBox="0 0 24 24"><circle cx="9" cy="9" r="3"></circle><circle cx="17" cy="8" r="2.25"></circle><path d="M4 19a5 5 0 0 1 10 0"></path><path d="M14 18a4 4 0 0 1 6 0"></path></svg>
                                    </span>
                                    <span>{lang key='navContacts'}</span>
                                </a>
                                <a class="dashboard-user-dropdown__item{if $filename == 'clientarea' && $currentAction == 'emails'} active{/if}" href="{$WEB_ROOT}/clientarea.php?action=emails">
                                    <span class="dashboard-user-dropdown__icon">
                                        <svg viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"></rect><path d="m5 7 7 6 7-6"></path></svg>
                                    </span>
                                    <span>{lang key='navemailssent'}</span>
                                </a>
                                <a class="dashboard-user-dropdown__item{if $isUserSecurityPage || $isUserPasswordPage} active{/if}" href="{$WEB_ROOT}/index.php?rp=/user/security">
                                    <span class="dashboard-user-dropdown__icon">
                                        <svg viewBox="0 0 24 24"><path d="M12 3 6 6v5c0 4.5 2.9 8.6 6 10 3.1-1.4 6-5.5 6-10V6l-6-3Z"></path><path d="M12 10v4"></path><circle cx="12" cy="8" r="1"></circle></svg>
                                    </span>
                                    <span>{lang key='navAccountSecurity'}</span>
                                </a>
                            </div>
                            <div class="dashboard-user-dropdown__footer">
                                <a class="dashboard-user-logout" href="{if $adminMasqueradingAsClient}{$WEB_ROOT}/logout.php?returntoadmin=1{else}{$WEB_ROOT}/logout.php{/if}">
                                    <span class="dashboard-user-dropdown__icon logout">
                                        <svg viewBox="0 0 24 24"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><path d="m16 17 5-5-5-5"></path><path d="M21 12H9"></path></svg>
                                    </span>
                                    <span>{lang key='logout'}</span>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            {/if}
        </aside>

        <div class="dashboard-sidebar-boundary d-none d-lg-flex" aria-hidden="true">
            <button class="dashboard-sidebar__toggle" type="button" data-dashboard-sidebar-desktop-toggle aria-label="{lang key='toggleNav'}" aria-pressed="false">
                <svg viewBox="0 0 24 24" aria-hidden="true"><path d="m15 6-6 6 6 6"></path></svg>
            </button>
            <button class="dashboard-sidebar-reopen" type="button" data-dashboard-sidebar-reopen aria-label="{lang key='toggleNav'}" aria-pressed="false">
                <svg viewBox="0 0 24 24" aria-hidden="true"><path d="m9 6 6 6-6 6"></path></svg>
            </button>
        </div>

        <div class="dashboard-overlay" data-dashboard-overlay></div>
    {/if}

        <div class="dashboard-main{if $isAuthPage || $isStandaloneContactPage || $isOrderFocusPage} dashboard-main--focus{/if}">
            {if $isAuthPage}
            <header class="dashboard-focus-topbar">
                <a class="navbar-brand-lockup dashboard-focus-topbar__brand" href="{$WEB_ROOT}/clientarea.php" aria-label="{$brandName}">
                    {include file="$template/includes/hostique-logo-lockup.tpl" hostiqueLogoClass="hostique-logo-lockup--focus" hostiqueLogoAlt=$brandName|cat:' Control Panel'}
                </a>
                <div class="dashboard-focus-topbar__actions">
                    <a href="{$WEB_ROOT}/contact.php" class="dashboard-focus-link">{lang key='contactus'}</a>
                    {if $templatefile == 'login'}
                        <a href="{$WEB_ROOT}/register.php" class="dashboard-focus-link">{lang key='userLogin.createAccount'}</a>
                    {else}
                        <a href="{$WEB_ROOT}/index.php?rp=/login" class="dashboard-focus-link">{lang key='login'}</a>
                    {/if}
                </div>
            </header>
            {/if}
            {if !$isAuthPage && !$isStandaloneContactPage && !$isOrderFocusPage}
            <header class="dashboard-topbar">
                <div class="dashboard-topbar__left">
                    <a href="{$WEB_ROOT}/clientarea.php" class="navbar-brand-lockup dashboard-topbar__brand d-xl-none" aria-label="{$brandName}">
                        {include file="$template/includes/hostique-logo-lockup.tpl" hostiqueLogoClass="hostique-logo-lockup--mobile" hostiqueLogoAlt=$brandName|cat:' Control Panel'}
                    </a>
                </div>

                <div class="dashboard-topbar__actions">
                    <div class="dropdown d-none d-lg-block">
                        <button class="header-control-btn" type="button" data-toggle="modal" data-target="#modalChooseLanguage" aria-expanded="false">
                            <svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M2 12h20"></path><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>
                        </button>
                    </div>
                      <div class="d-none d-lg-inline-flex header-control-btn header-control-btn--brand-pill" aria-label="Nebulix Theme">
                          <span class="theme-swatch current-theme-swatch blue"></span>
                          <span class="current-theme-name">Nebulix</span>
                      </div>
                    <div class="dropdown">
                        <button class="toolbar-icon position-relative" type="button" data-toggle="dropdown" aria-expanded="false">
                            <svg viewBox="0 0 24 24"><path d="M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2a2 2 0 0 1-.6 1.4L4 17h5"></path><path d="M10 17a2 2 0 0 0 4 0"></path></svg>
                            {if $loggedin && $notificationTotal > 0}
                                <span class="toolbar-dot"></span>
                            {/if}
                        </button>
                        <div class="dropdown-menu dropdown-menu-right dashboard-notification-menu">
                            {if $loggedin}
                                <div class="dashboard-notification-menu__header">
                                    <div>
                                        <div class="dashboard-notification-menu__title">{lang key='notifications'}</div>
                                        <div class="dashboard-notification-menu__subtitle">{$notificationTotal} {lang key='notifications'}</div>
                                    </div>
                                    <span class="dashboard-notification-menu__badge">{$notificationTotal}</span>
                                </div>
                                <div class="dashboard-notification-menu__list">
                                    <a class="dashboard-notification-item" href="{$WEB_ROOT}/clientarea.php?action=invoices">
                                        <span class="dashboard-notification-item__icon invoices">
                                            <svg viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"></rect><path d="M3 10h18"></path></svg>
                                        </span>
                                        <span class="dashboard-notification-item__content">
                                            <span class="dashboard-notification-item__title">{lang key='navinvoices'}</span>
                                            <span class="dashboard-notification-item__meta">{$notificationInvoices} {lang key='navinvoices'}</span>
                                        </span>
                                        <span class="dashboard-notification-item__count">{$notificationInvoices}</span>
                                    </a>
                                    <a class="dashboard-notification-item" href="{$WEB_ROOT}/supporttickets.php">
                                        <span class="dashboard-notification-item__icon tickets">
                                            <svg viewBox="0 0 24 24"><path d="M18 10a6 6 0 1 0-12 0v5a2 2 0 0 0 2 2h2v-5H8"></path><path d="M16 17h2a2 2 0 0 0 2-2v-5"></path><path d="M12 19v2"></path></svg>
                                        </span>
                                        <span class="dashboard-notification-item__content">
                                            <span class="dashboard-notification-item__title">{lang key='navtickets'}</span>
                                            <span class="dashboard-notification-item__meta">{$notificationTickets} {lang key='supportticketsreply'}</span>
                                        </span>
                                        <span class="dashboard-notification-item__count">{$notificationTickets}</span>
                                    </a>
                                    <a class="dashboard-notification-item" href="{$WEB_ROOT}/clientarea.php?action=services">
                                        <span class="dashboard-notification-item__icon services">
                                            <svg viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="14" rx="2"></rect><path d="M8 20h8"></path></svg>
                                        </span>
                                        <span class="dashboard-notification-item__content">
                                            <span class="dashboard-notification-item__title">{lang key='navservices'}</span>
                                            <span class="dashboard-notification-item__meta">{$notificationServices} {lang key='navservices'}</span>
                                        </span>
                                        <span class="dashboard-notification-item__count neutral">{$notificationServices}</span>
                                    </a>
                                    <a class="dashboard-notification-item" href="{$WEB_ROOT}/clientarea.php?action=domains">
                                        <span class="dashboard-notification-item__icon domains">
                                            <svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="M3 12h18"></path><path d="M12 3a14 14 0 0 1 0 18 14 14 0 0 1 0-18z"></path></svg>
                                        </span>
                                        <span class="dashboard-notification-item__content">
                                            <span class="dashboard-notification-item__title">{lang key='navdomains'}</span>
                                            <span class="dashboard-notification-item__meta">{$notificationDomains} {lang key='navdomains'}</span>
                                        </span>
                                        <span class="dashboard-notification-item__count neutral">{$notificationDomains}</span>
                                    </a>
                                </div>
                            {else}
                                <div class="dashboard-notification-menu__header">
                                    <div>
                                        <div class="dashboard-notification-menu__title">{lang key='notifications'}</div>
                                        <div class="dashboard-notification-menu__subtitle">{lang key='nonotifications'}</div>
                                    </div>
                                </div>
                                <div class="dashboard-notification-menu__list">
                                    <a class="dashboard-notification-item" href="{$WEB_ROOT}/clientarea.php">
                                        <span class="dashboard-notification-item__icon neutral">
                                            <svg viewBox="0 0 24 24"><path d="M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Z"></path><path d="M4 20a8 8 0 0 1 16 0"></path></svg>
                                        </span>
                                        <span class="dashboard-notification-item__content">
                                            <span class="dashboard-notification-item__title">{lang key='login'}</span>
                                            <span class="dashboard-notification-item__meta">{lang key='clientareahomelogin'}</span>
                                        </span>
                                    </a>
                                </div>
                            {/if}
                        </div>
                    </div>
                    <a href="{$WEB_ROOT}/cart.php?a=view" class="toolbar-icon toolbar-icon--cart" aria-label="{lang key='carttitle'}">
                        <svg viewBox="0 0 24 24"><circle cx="9" cy="20" r="1.5"></circle><circle cx="18" cy="20" r="1.5"></circle><path d="M3 4h2l2.1 10.2a1 1 0 0 0 1 .8h9.7a1 1 0 0 0 1-.8L21 7H7"></path></svg>
                        {assign var="topbarCartCount" value=$cartitems|default:$cartitemcount|default:0}
                        {if $topbarCartCount > 0}
                            <span class="toolbar-icon__badge">{$topbarCartCount}</span>
                        {/if}
                    </a>
                    <button class="dashboard-mobile-toggle dashboard-mobile-toggle--toolbar d-lg-none" type="button" data-dashboard-sidebar-toggle aria-label="{lang key='toggleNav'}">
                        <svg viewBox="0 0 24 24"><path d="M4 6h16"></path><path d="M4 12h16"></path><path d="M4 18h16"></path></svg>
                    </button>
                    <a href="{$WEB_ROOT}/cart.php" class="btn btn-brand dashboard-cta-btn d-none d-lg-inline-flex">
                        <svg viewBox="0 0 24 24"><path d="M12 5v14"></path><path d="M5 12h14"></path></svg>
                        <span>{lang key='ordernowbutton'}</span>
                    </a>
                </div>
            </header>
            {/if}

            <main class="dashboard-page">
                <div class="dashboard-page__inner">
                    {if !$isAuthPage && !$isDashboardHome && !$hasCustomPageHero && !$isOrderFocusPage}
                        <section class="dashboard-page-header">
                            <div>
                                <h1 class="dashboard-page-title">{$pagetitle}</h1>
                                <p class="dashboard-page-subtitle">{$brandTagline}</p>
                            </div>
                            <div class="dashboard-page-breadcrumb">
                                {include file="$template/includes/breadcrumb.tpl"}
                            </div>
                        </section>
                    {/if}

                    {include file="$template/includes/validateuser.tpl"}
                    {include file="$template/includes/verifyemail.tpl"}
