{% load i18n %}
{% load base_tags_extra %}
<div class="header_big_background">
</div>
<header id="header_bg">
    <div class="wrapper_header_content">
        <div class="header-first">
              <div class="header_logo">
                  <a href="/"><img class="svg" src="/static/img/svg/Logo.svg"></a>
              </div>
              <div class="header_logo_mobile">
                  <a href="/"><img class="svg" src="/static/img/svg/LogoMobile.svg"></a>
              </div>

              <div   class="dropdown">
                  <img onclick="showMenu(this, event)" class="dropbtn" src="/static/img/svg/Menu.svg">
                  <div
                      onblur="hideMenu(event)"
                      class="dropdown-content"
                  >

                        <a href="/">{% trans "Главная" %}</a>
                        <a href="{% url 'static_page' 'for_movers' %}">{% trans "Для отправителя" %}</a>
                        <a href="{% url 'static_page' 'for_customers' %}">{% trans "Для перевозчика" %}</a>
                        <a href="{% url "static_page" "about_service" %}">{% trans "" %}О Trip With Bonus</a>
                        <a href="{% url 'static_page' 'contacts' %}">{% trans "Контакты" %}</a>
                        <a href="{% url 'static_page' 'advertisement' %}">{% trans "Реклама" %}</a>
                        <a href="{% url "articles" %}">{% trans "Новости" %}</a>
                        <a href="{% url 'static_page' 'customer_service' %}">{% trans "Служба поддержки" %}</a>
                        <a href="{% url "static_page" "partners" %}">{% trans "Партнерам" %}</a>


                  </div>
              </div>

              <div class="header_btn_mover">
                  <a href="{% url 'profile_page' 'create_route_for_mover' %}">{% trans "Перевезти посылку" %}</a>
              </div>
              <div class="header_btn_sender">
                  <a href="{% url 'profile_page' 'create_route_for_customer' %}">{% trans "Отправить посылку" %}</a>
              </div>

        </div>
        <div class="header-second">
          <div class="header-second-item-lang">
              <div onclick="showLang(this)" class="dropdown_lang">
                  <div id="dropbtn_lang" class="dropbtn_lang">RU</div>
                  <div class="dropdown-content-lang">
                    <a id="ru_lang" href="/ru{{ request.path|del_lang_from_path }}">RU</a>
                    <a id="en_lang" href="/en{{ request.path|del_lang_from_path }}">EN</a>
                  </div>
              </div>
          </div>
          <div class="header-second-item">
              <img id="support_img" class="svg" src="/static/img/svg/Helpdesk_%20Icon.svg">
          </div>
          <div class="header-second-item">
              <a id="customer_service" href="{% url 'static_page' 'customer_service' %}">{% trans "Служба поддержки" %}</a>

          </div>

            {% if user.is_authenticated %}
                {# boris changed #}
                    <div class="cont_header_btn_profile">
                        <div class="button_profile_header" {% if not page_type == 'profile' %}onclick="open_curtain_w_btn_profile()"{% endif %} data-user-id="{{ user.id }}">
{#                        <div class="button_profile_header" onclick="open_curtain(null,'right')"  data-user-id="{{ user.id }}">#}

                            <span class="btn_profile_name">
                                {{ user.first_name|truncatechars:6}} {{ user.last_name|truncatechars:5 }}
                            </span>
                            <span id="placeholder1"></span>
                            <div class="icon_unread_messages" style="position:relative;top: 4px;padding-right: 13px;">
                              <div class="cost-messages-in-user-tab-messenger" style="background: #FFFFFF;">
                                  <span class="unredmessages_value_text" style="padding-top: 2px;padding-left: 0;position: relative;top: -8px;color: #FF613A;"></span>
                              </div>
                            </div>
                        </div>
                    <div class="button_profile_header_mobile" onclick="open_curtain_w_btn_profile()">
                        <img src="/static/img/svg/userMobile.svg" alt="">
                    </div>
{#                    <div class="menu_profile_btn">#}
{#                        {% if user_subscribe %}<div class="subscribe_type_txt"><span class="f-l">Подписка:</span> <span class="f-r">{{ user_subscribe.subscribe.name }}</span><div class="clear_both"></div></div>{% endif %}#}
{#                        <a class="btn_menu_profile" href="{% url "user_profile" %}" >Перейти в профиль</a>#}
{#                        <a class="btn_menu_profile" href="{% url 'profile_page' 'create_route_for_mover' %}">Перевезти посылку</a>#}
{#                        <a class="btn_menu_profile" href="{% url 'profile_page' 'create_route_for_customer' %}">Отправить посылку</a>#}
{#                        <a class="btn_menu_profile" href="{% url 'profile_page' 'my_routes' %}" >Мои объявления</a>#}
{#                        <div class="separator_menu_profile"></div>#}
{#                        <a href="/profile/logout" class="btn_menu_profile">Выйти из профиля</a>#}
{#                    </div>#}

                    </div>
                {# end #}
            {% endif %}

            {% if not user.is_authenticated %}
                <div class="header_buttons">
                    <a
                      class="registration_button"
                      href="{% url "registration_page" %}">
                      {% trans "Регистрация" %}
                    </a>

                    <a
                      class="enter_button"
                      href="{% url "login_profile" %}">
                      {% trans "Войти" %}
                    </a>

                </div>


                <div class="button_profile_header_mobile" onclick="show_header_list()">
                    <img src="/static/img/svg/userMobile.svg" alt="">
                </div>

                <div class="menu_profile_btn">
                            <a class="btn_menu_profile" href="{% url "login_profile" %}" >{% trans "Войти" %}</a>
                            <a class="btn_menu_profile" href="{% url "registration_page" %}">{% trans "Регистрация" %}</a>
                </div>


            {% endif %}

        </div>
        <div class="clear_both"></div>
    </div>

  </header>
<div class="line_f_header"></div>