templates/Layout/left-menu.html.twig line 1

Open in your IDE?
  1. <div class="left-side-menu">
  2.     <div class="sidebar-content">
  3.         <div id="sidebar-menu" class="slimscroll-menu" style="width: auto;">
  4.             <ul class="metismenu" id="menu-bar">
  5.                 {# Menu dla dostawcy #}
  6.                 {% if app.user.isSupplier is defined and app.user.isSupplier %}
  7.                 <li class="menu-title">
  8.                     {{ 'menu.supplier'|trans }}
  9.                 </li>
  10.                 {{ showAnnouncementsForSuppliers()|raw }}
  11.                 <li>
  12.                     <a href="{{ path('supplier_inquiry_latest') }}">
  13.                         <i data-feather="inbox"></i>
  14.                         {% if newCount is defined %}
  15.                             <span class="badge badge-success float-right">{{ newCount }}</span>
  16.                         {% endif %}
  17.                         {% if unreadPrivateMessagesForFolders.new is defined and unreadPrivateMessagesForFolders.new > 0 %}
  18.                             <span data-toggle="tooltip" title="" style="animation: blinker 1s linear infinite;" class="float-right" data-original-title="Oczekujące prywatne wiadomości: {{ unreadPrivateMessagesForFolders.new }}">
  19.                                 <i class="fa fa-envelope fa-2x" style=" color: red;"></i>
  20.                             </span>
  21.                         {% endif %}
  22.                         <span> {{ 'menu.new'|trans }} </span>
  23.                     </a>
  24.                 </li>
  25.                 <li>
  26.                     <a href="{{ path('supplier_inquiry_during') }}">
  27.                         <i data-feather="dollar-sign"></i>
  28.                         {% if duringCount is defined %}
  29.                             <span class="badge badge-success float-right">{{ duringCount }}</span>
  30.                         {% endif %}
  31.                         {% if unreadPrivateMessagesForFolders.during is defined and unreadPrivateMessagesForFolders.during > 0  %}
  32.                             <span data-toggle="tooltip" title="" style="animation: blinker 1s linear infinite;" class="float-right" data-original-title="Oczekujące prywatne wiadomości: {{ unreadPrivateMessagesForFolders.during }}">
  33.                                 <i class="fa fa-envelope fa-2x" style=" color: red;"></i>
  34.                             </span>
  35.                         {% endif %}
  36.                         <span> {{ 'menu.during'|trans }} </span>
  37.                     </a>
  38.                 </li>
  39.                 <li>
  40.                     <a href="{{ path('supplier_inquiry_won') }}">
  41.                         <i data-feather="check"></i>
  42.                         {% if wonCount is defined %}
  43.                             <span class="badge badge-success float-right" data-toggle="tooltip" title="" data-original-title="{% if rWonCount is defined %}{{ rWonCount }} niepotwierdzone zamówienia /{% endif %} {% if wonCount >= 200 %} więcej niż {% endif %} {{ wonCount }} razem">{% if rWonCount is defined %}{{ rWonCount }} /{% endif %} {% if wonCount >= 200 %}>{% endif %} {{ wonCount }}</span>
  44.                         {% endif %}
  45.                         {% if unreadPrivateMessagesForFolders.won is defined and unreadPrivateMessagesForFolders.won > 0  %}
  46.                             <span data-toggle="tooltip" title="" style="animation: blinker 1s linear infinite;" class="float-right" data-original-title="Oczekujące prywatne wiadomości: {{ unreadPrivateMessagesForFolders.won }}">
  47.                                 <i class="fa fa-envelope fa-2x" style=" color: red;"></i>
  48.                             </span>
  49.                         {% endif %}
  50.                         <span> {{ 'menu.won'|trans }} </span>
  51.                     </a>
  52.                 </li>
  53.                 <li>
  54.                     <a href="{{ path('supplier_inquiry_lost') }}">
  55.                         <i data-feather="x-square"></i>
  56.                         {% if lostCount is defined %}
  57.                             <span class="badge badge-success float-right">{{ lostCount }}</span>
  58.                         {% endif %}
  59.                         {% if unreadPrivateMessagesForFolders.lost is defined and unreadPrivateMessagesForFolders.lost > 0  %}
  60.                             <span data-toggle="tooltip" title="" style="animation: blinker 1s linear infinite;" class="float-right" data-original-title="Oczekujące prywatne wiadomości: {{ unreadPrivateMessagesForFolders.lost }}">
  61.                                 <i class="fa fa-envelope fa-2x" style=" color: red;"></i>
  62.                             </span>
  63.                         {% endif %}
  64.                         <span> {{ 'menu.lost'|trans }} </span>
  65.                     </a>
  66.                 </li>
  67.                 <li>
  68.                     <a href="{{ path('supplier_inquiry_archived') }}">
  69.                         <i data-feather="trash"></i>
  70.                         <span>{{ 'menu.archive'|trans }}</span>
  71.                     </a>
  72.                 </li>
  73.                 {% endif %}
  74.                 {#  Menu dla kupującego #}
  75.                 {% if app.user.isRecipient is defined and app.user.isRecipient %}
  76.                 <li class="menu-title">{{ 'menu.recipient'|trans }}</li>
  77.                 <li>
  78.                     {{ showAnnouncementsForRecipients()|raw }}
  79.                 </li>
  80.                 <li>
  81.                     <a href="{{ path('client_inquiry_active') }}">
  82.                         <i data-feather="inbox"></i>
  83.                         {% if activeCount is defined %}
  84.                             <span class="badge badge-success float-right">{{ activeCount }}</span>
  85.                         {% endif %}
  86.                         {% if unreadPrivateMessagesForFolders.active is defined and unreadPrivateMessagesForFolders.active > 0  %}
  87.                             <span data-toggle="tooltip" title="" style="animation: blinker 1s linear infinite;" class="float-right" data-original-title="Oczekujące prywatne wiadomości: {{ unreadPrivateMessagesForFolders.active }}">
  88.                                 <i class="fa fa-envelope fa-2x" style=" color: red;"></i>
  89.                             </span>
  90.                         {% endif %}
  91.                         <span>{{ 'menu.active'|trans }}</span>
  92.                     </a>
  93.                 </li>
  94. {#                <li>#}
  95. {#                    <a href="{{ path('client_inquiry_wait_for_decision') }}">#}
  96. {#                        <i data-feather="clock"></i>#}
  97. {#                        {% if waitForDecisionCount is defined %}#}
  98. {#                            <span class="badge badge-success float-right">{{ waitForDecisionCount }}</span>#}
  99. {#                        {% endif %}#}
  100. {#                        <span>{{ 'menu.wait_for_decision'|trans }}</span>#}
  101. {#                    </a>#}
  102. {#                </li>#}
  103.                 <li>
  104.                     <a href="{{ path('client_inquiry_chosen') }}">
  105.                         <i data-feather="check"></i>
  106.                         {% if chosenCount is defined %}
  107.                             <span class="badge badge-success float-right">{{ chosenCount }}</span>
  108.                         {% endif %}
  109.                         {% if unreadPrivateMessagesForFolders.chosen is defined and unreadPrivateMessagesForFolders.chosen > 0  %}
  110.                             <span data-toggle="tooltip" title="" style="animation: blinker 1s linear infinite;" class="float-right" data-original-title="Oczekujące prywatne wiadomości: {{ unreadPrivateMessagesForFolders.chosen }}">
  111.                                 <i class="fa fa-envelope fa-2x" style=" color: red;"></i>
  112.                             </span>
  113.                         {% endif %}
  114.                         <span>{{ 'menu.chosen'|trans }}</span>
  115.                     </a>
  116.                 </li>
  117. {#                <li>#}
  118. {#                    <a href="{{ path('client_inquiry_without_offer') }}">#}
  119. {#                        <i data-feather="inbox"></i>#}
  120. {#                        {% if withoutOfferCount is defined %}#}
  121. {#                            <span class="badge badge-success float-right">{{ withoutOfferCount }}</span>#}
  122. {#                        {% endif %}#}
  123. {#                        <span>{{ 'menu.without_offer'|trans }}</span>#}
  124. {#                    </a>#}
  125. {#                </li>#}
  126.                 <li>
  127.                     <a href="{{ path('client_inquiry_archived') }}">
  128.                         <i data-feather="trash"></i>
  129.                         <span>{{ 'menu.archive'|trans }}</span>
  130.                     </a>
  131.                 </li>
  132.                 {% endif %}
  133.                 <li class="menu-title">
  134.                     Inne
  135.                 </li>
  136.                 <li>
  137.                     <a href="{{ path('client_private_message_index') }}">
  138.                         <i data-feather="mail"></i>
  139.                         {% if unreadAllPrivateMessagesCount is defined and unreadAllPrivateMessagesCount > 0  %}
  140.                             <span data-toggle="tooltip" title="" style="animation: blinker 1s linear infinite;" class="float-right" data-original-title="Oczekujące prywatne wiadomości: {{ unreadAllPrivateMessagesCount }}">
  141.                                 <i class="fa fa-envelope fa-2x" style=" color: red;"></i>
  142.                             </span>
  143.                         {% endif %}
  144.                         <span>Wiadomości</span>
  145.                     </a>
  146.                 </li>
  147.                 {{ supplierStats()|raw }}
  148.                 {{ recipientStats()|raw }}
  149.                 <li class="menu-title d-md-none d-block">
  150.                     <i data-feather="user"></i>
  151.                     <span> {{ app.user.username }} </span>
  152.                 </li>
  153.                 <li onclick="window.print();" class="d-md-none d-block">
  154.                     <a class="d-md-none d-block" role="button">
  155.                         <i data-feather="printer"></i>
  156.                         {{ 'menu.print'|trans }}
  157.                     </a>
  158.                 </li>
  159.                 <li class="d-md-none d-block">
  160.                     <a href="{{ path('customer_profile') }}" role="button">
  161.                         <i data-feather="user"></i>
  162.                         {{ 'menu.profile'|trans }}
  163.                     </a>
  164.                 </li>
  165.                 <li class="d-md-none d-block">
  166.                     <a href="{{ path('contact') }}" role="button">
  167.                         <i data-feather="phone"></i>
  168.                         {{ 'menu.contact'|trans }}
  169.                     </a>
  170.                 </li>
  171.                 <li class="d-md-none d-block">
  172.                     <a href="{{ path('logout') }}" role="button">
  173.                         <i data-feather="log-out"></i>
  174.                         {{ 'menu.logout'|trans }}
  175.                     </a>
  176.                 </li>
  177.             </ul>
  178.         </div>
  179.     </div>
  180.     <div class="clearfix"></div>
  181. </div>