{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}
{% 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 %}
