{# **
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * 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 https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * #}
{% if this.showNewOrders or this.showNewCustomers or this.showNewMessages %}
<ul class="header-list component">
  <li id="notification" class="dropdown">
    <a href="javascript:void(0);" class="notification dropdown-toggle notifs">
      <i class="material-icons">notifications_none</i>
      <span id="total_notif_number_wrapper" class="notifs_badge hide">
              <span id="total_notif_value">0</span>
            </span>
    </a>
    <div class="dropdown-menu dropdown-menu-right notifs_dropdown">
      <div class="notifications">
        <ul class="nav nav-tabs" role="tablist">
          {% set active = 'active' %}
          {% if this.showNewOrders %}
            <li class="nav-item {{ active }}">
              <a class="nav-link" data-toggle="tab" data-type="order" href="#orders-notifications" role="tab" id="orders-tab">{{ 'Orders'|trans({}, 'Admin.Navigation.Header') }}<span id="orders_notif_value" class="notif-counter"></span></a>
            </li>
            {% set active = '' %}
          {% endif %}

          {% if this.showNewCustomers %}
            <li class="nav-item {{ active }}">
              <a class="nav-link" data-toggle="tab" data-type="customer" href="#customers-notifications" role="tab" id="customers-tab">{{ 'Customers'|trans({}, 'Admin.Navigation.Header') }}<span id="customers_notif_value" class="notif-counter"></span></a>
            </li>
            {% set active = '' %}
          {% endif %}

          {% if this.showNewMessages %}
            <li class="nav-item {{ active }}">
              <a class="nav-link" data-toggle="tab" data-type="customer_message" href="#messages-notifications" role="tab" id="messages-tab">{{ 'Messages'|trans({}, 'Admin.Global') }}<span id="customer_messages_notif_value" class="notif-counter"></span></a>
            </li>
            {% set active = '' %}
          {% endif %}
        </ul>

        <!-- Tab panes -->
        <div class="tab-content">
          {% set active = 'active' %}
          {% if this.showNewOrders %}
            <div class="tab-pane {{ active }} empty" id="orders-notifications" role="tabpanel">
              <p class="no-notification">
                {{ 'No new order for now :('|trans({}, 'Admin.Navigation.Notification') }}<br>
                {{ this.noOrderTip|raw }}
              </p>
              <div class="notification-elements"></div>
            </div>
            {% set active = '' %}
          {% endif %}

          {% if this.showNewCustomers %}
            <div class="tab-pane {{ active }} empty" id="customers-notifications" role="tabpanel">
              <p class="no-notification">
                {{ 'No new customer for now :('|trans({}, 'Admin.Navigation.Notification') }}<br>
                {{ this.noCustomerTip }}
              </p>
              <div class="notification-elements"></div>
            </div>
            {% set active = '' %}
          {% endif %}

          {% if this.showNewMessages %}
            <div class="tab-pane {{ active }} empty" id="messages-notifications" role="tabpanel">
              <p class="no-notification">
                {{ 'No new message for now.'|trans({}, 'Admin.Navigation.Notification') }}<br>
                {{ this.noCustomerMessageTip }}
              </p>
              <div class="notification-elements"></div>
            </div>
            {% set active = '' %}
          {% endif %}
        </div>
      </div>
    </div>
  </li>
</ul>
{% endif %}
