templates/_menu/account_left_menu.html.twig line 1

Open in your IDE?
  1. {#
  2. названия пунктов меню:
  3. • PaidServices
  4. • Pay
  5. • Help
  6. • Forum
  7. • ProfileList
  8. • AddProfile
  9. • MasseurList
  10. • AddMasseur
  11. • SaloonList
  12. • AddSaloon
  13. • BannerList
  14. • AddBanner
  15. • PaidLineList
  16. • Blacklist
  17. • PaymentHistory
  18. • Edit
  19. • Logout
  20. #}
  21. {% set route = app.request.get('_route') %}
  22. <aside class="account-menu d-none d-lg-block" role="navigation" id="left_column_metric">
  23.     {% if is_user_advertiser(app.user) %}
  24.         <div class="balance" id="balance">
  25.             <p class="current">Ваш баланс: <span class="value">{{ app.user.currentBalance|money_format }}</span></p>
  26.             <p class="hour">Расход в час: <span class="value">{{ owner_charges()|money_format }}</span></p>
  27.             <a href="{{ path('account_pay') }}" class="btn btn-danger w-100 text-left d-flex" style="border-radius: 0;">
  28.                 <svg class="icon">
  29.                     <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-ruble"></use>
  30.                 </svg>
  31.                 <span>{{ item['Pay'].label }}</span>
  32.             </a>
  33.         </div>
  34.         <nav class="block-navigation">
  35.         <ul>
  36.             <li>
  37.                 <a href="{{ item['ProfileList'].uri }}" class="{% if route in ["account_girls","account.profile_editing.create","account.profile_editing.edit"] %} active{% endif %}">
  38.                     <svg class="icon">
  39.                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-union-profile"></use>
  40.                     </svg>
  41.                     {{ item['ProfileList'].label|raw }}
  42.                 </a>
  43.             </li>
  44.             <li>
  45.                 <a href="{{ item['PaidServices'].uri }}" class="{% if item['PaidServices'] is knp_menu_current %} active{% endif %}">
  46.                     <svg class="icon">
  47.                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-profile-up"></use>
  48.                     </svg>
  49.                     <span>{{ item['PaidServices'].label|raw }}</span>
  50.                 </a>
  51.             </li>
  52.             <li>
  53.                 <a href="{{ path('account.support_messages.list') }}" class="{% if item['SupportMessages'] is knp_menu_current or item['SupportMessageWrite'] is knp_menu_current or app.request.get('_route') == 'account.support_messages.continue' %} active{% endif %}">
  54.                     <svg class="icon">
  55.                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-messages"></use>
  56.                     </svg>
  57.                     {{ item['SupportMessages'].label|raw }}
  58.                 </a>
  59.             </li>
  60.             <li>
  61.                 <a href="{{ path('account.profile_management.commented_profiles') }}" class="{% if app.request.get('_route') == 'account.profile_management.commented_profiles' %} active{% endif %}">
  62.                     <svg class="icon">
  63.                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-comments"></use>
  64.                     </svg>
  65.                     {{ item['ReviewsForProfiles'].label|raw }}
  66.                 </a>
  67.             </li>
  68.             <li>
  69.                 <a href="{{ path('account.phone_review.add') }}" class="{% if app.request.get('_route') == 'account.phone_review.add' %} active{% endif %}">
  70.                     <svg class="icon">
  71.                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-blacklist"></use>
  72.                     </svg>
  73.                     <span>Чёрный список</span>
  74.                 </a>
  75.             </li>
  76.             <li>
  77.                 <a href="{{ item['PaymentHistory'].uri }}" class="{% if item['PaymentHistory'] is knp_menu_current %} active{% endif %}">
  78.                     <svg class="icon">
  79.                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-history"></use>
  80.                     </svg>
  81.                     <span>История платежей</span>
  82.                 </a>
  83.             </li>
  84.             <li>
  85.                 <a href="{{ path('logout') }}" class="">
  86.                     <svg class="icon">
  87.                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-exit"></use>
  88.                     </svg>
  89.                     <span>Выйти</span>
  90.                 </a>
  91.             </li>
  92.         </ul>
  93.     </nav>
  94.     {% else %}
  95.         <nav class="block-navigation">
  96.             <ul>
  97.                 <li>
  98.                     <a href="{{ path('account.preferred_profiles.list') }}" class="level level-item ">
  99.                         <svg class="icon" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
  100.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M6 0C4.3425 0 3 1.3425 3 3C3 4.6575 4.3425 6 6 6C7.6575 6 9 4.6575 9 3C9 1.3425 7.6575 0 6 0ZM7.5 3C7.5 2.175 6.825 1.5 6 1.5C5.175 1.5 4.5 2.175 4.5 3C4.5 3.825 5.175 4.5 6 4.5C6.825 4.5 7.5 3.825 7.5 3ZM10.5 10.5C10.35 9.9675 8.025 9 6 9C3.9825 9 1.6725 9.96 1.5 10.5H10.5ZM0 10.5C0 8.505 3.9975 7.5 6 7.5C8.0025 7.5 12 8.505 12 10.5V12H0V10.5Z" fill="#F7901D"/>
  101.                         </svg>
  102.                         <span>Для Вас</span>
  103.                     </a>
  104.                 </li>
  105.                 <li>
  106.                     <a href="{{ path('account.city_profiles') }}" class="level level-item ">
  107.                         <svg class="icon" width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  108.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M6 0.5C3.0975 0.5 0.75 2.8475 0.75 5.75C0.75 9.6875 6 15.5 6 15.5C6 15.5 11.25 9.6875 11.25 5.75C11.25 2.8475 8.9025 0.5 6 0.5ZM2.25 5.75C2.25 3.68 3.93 2 6 2C8.07 2 9.75 3.68 9.75 5.75C9.75 7.91 7.59 11.1425 6 13.16C4.44 11.1575 2.25 7.8875 2.25 5.75ZM4.125 5.75C4.125 4.71447 4.96447 3.875 6 3.875C6.66987 3.875 7.28886 4.23237 7.6238 4.8125C7.95873 5.39263 7.95873 6.10737 7.6238 6.6875C7.28886 7.26763 6.66987 7.625 6 7.625C4.96447 7.625 4.125 6.78553 4.125 5.75Z" fill="#F7901D"/>
  109.                         </svg>
  110.                         <span>В Вашем городе</span>
  111.                     </a>
  112.                 </li>
  113.                 <li>
  114.                     <a href="{{ path('account.favourites.profiles') }}" class="level level-item ">
  115.                         <svg class="icon" width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
  116.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.68615C8.8175 0.726152 10.07 0.118652 11.375 0.118652C13.685 0.118652 15.5 1.93365 15.5 4.24365C15.5 7.07633 12.9542 9.38486 9.09701 12.8825L9.0875 12.8912L8 13.8812L6.9125 12.8987L6.88289 12.8717C3.03697 9.37683 0.5 7.0714 0.5 4.24365C0.5 1.93365 2.315 0.118652 4.625 0.118652C5.93 0.118652 7.1825 0.726152 8 1.68615ZM8 11.8562L8.075 11.7812C11.645 8.54865 14 6.41115 14 4.24365C14 2.74365 12.875 1.61865 11.375 1.61865C10.22 1.61865 9.095 2.36115 8.705 3.38865H7.3025C6.905 2.36115 5.78 1.61865 4.625 1.61865C3.125 1.61865 2 2.74365 2 4.24365C2 6.41115 4.355 8.54865 7.925 11.7812L8 11.8562Z" fill="#F7901D"/>
  117.                         </svg>
  118.                         <span>Избранные</span>
  119.                     </a>
  120.                 </li>
  121.                 <li>
  122.                     <a href="{{ path('account.profile_preferences') }}" class="level level-item ">
  123.                         <svg class="icon" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  124.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M6.75 15.5H13.5C14.1225 15.5 14.655 15.125 14.88 14.585L17.145 9.2975C17.2125 9.125 17.25 8.945 17.25 8.75V7.25C17.25 6.425 16.575 5.75 15.75 5.75H11.0175L11.73 2.3225L11.7525 2.0825C11.7525 1.775 11.625 1.49 11.4225 1.2875L10.6275 0.5L5.685 5.4425C5.415 5.7125 5.25 6.0875 5.25 6.5V14C5.25 14.825 5.925 15.5 6.75 15.5ZM6.75 6.49999L10.005 3.24499L9 7.24999H15.75V8.74999L13.5 14H6.75V6.49999ZM3.75 6.5H0.75V15.5H3.75V6.5Z" fill="#F7901D"/>
  125.                         </svg>
  126.                         <span>Предпочтения</span>
  127.                     </a>
  128.                 </li>
  129.                 <li>
  130.                     <a href="{{ path('account.reviews.profile') }}" class="level level-item ">
  131.                         <svg class="icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  132.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M15.4925 2C15.4925 1.175 14.825 0.5 14 0.5H2C1.175 0.5 0.5 1.175 0.5 2V11C0.5 11.825 1.175 12.5 2 12.5H12.5L15.5 15.5L15.4925 2ZM14 2V11.8775L13.1225 11H2V2H14ZM12.5 8H3.5V9.5H12.5V8ZM3.5 5.75H12.5V7.25H3.5V5.75ZM12.5 3.5H3.5V5H12.5V3.5Z" fill="#F7901D"/>
  133.                         </svg>
  134.                         <span>{{ item['ReviewsOfProfiles'].label|trans|raw }}</span>
  135.                     </a>
  136.                 </li>
  137.                {# <li>
  138.                     <a href="{{ path('account.reviews.saloon') }}" class="level level-item ">
  139.                         <svg class="icon" width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
  140.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M15 1.5C15.825 1.5 16.4925 2.175 16.4925 3L16.5 16.5L13.5 13.5H3C2.175 13.5 1.5 12.825 1.5 12V3C1.5 2.175 2.175 1.5 3 1.5H15ZM7.95 8.82353V12H5.325V7.76471H3.75L9 3L14.25 7.76471H12.675V12H10.05V8.82353H7.95Z" fill="#F7901D"/>
  141.                         </svg>
  142.                         <span>{{ item['ReviewsOfSaloons'].label|trans|raw }}</span>
  143.                     </a>
  144.                 </li>#}
  145.                 <li>
  146.                     <a href="{{ path('account.settings') }}" class="level level-item ">
  147.                         <svg class="icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  148.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M13.6266 8C13.6266 8.255 13.6041 8.495 13.5742 8.735L15.1566 9.9725C15.2991 10.085 15.3366 10.2875 15.2466 10.4525L13.7466 13.0475C13.6791 13.1675 13.5516 13.235 13.4241 13.235C13.3791 13.235 13.3341 13.2275 13.2891 13.2125L11.4216 12.4625C11.0316 12.755 10.6116 13.01 10.1542 13.1975L9.86915 15.185C9.84665 15.365 9.68915 15.5 9.50165 15.5H6.50165C6.31415 15.5 6.15665 15.365 6.13415 15.185L5.84915 13.1975C5.39165 13.01 4.97165 12.7625 4.58165 12.4625L2.71415 13.2125C2.67665 13.2275 2.63165 13.235 2.58665 13.235C2.45165 13.235 2.32415 13.1675 2.25665 13.0475L0.75665 10.4525C0.66665 10.2875 0.70415 10.085 0.84665 9.9725L2.42915 8.735C2.39915 8.495 2.37665 8.2475 2.37665 8C2.37665 7.7525 2.39915 7.505 2.42915 7.265L0.84665 6.0275C0.70415 5.915 0.65915 5.7125 0.75665 5.5475L2.25665 2.9525C2.32415 2.8325 2.45165 2.765 2.57915 2.765C2.62415 2.765 2.66915 2.7725 2.71415 2.7875L4.58165 3.5375C4.97165 3.245 5.39165 2.99 5.84915 2.8025L6.13415 0.815C6.15665 0.635 6.31415 0.5 6.50165 0.5H9.50165C9.68915 0.5 9.84665 0.635 9.86915 0.815L10.1542 2.8025C10.6116 2.99 11.0316 3.2375 11.4216 3.5375L13.2891 2.7875C13.3266 2.7725 13.3716 2.765 13.4166 2.765C13.5516 2.765 13.6791 2.8325 13.7466 2.9525L15.2466 5.5475C15.3366 5.7125 15.2991 5.915 15.1566 6.0275L13.5742 7.265C13.6041 7.505 13.6266 7.745 13.6266 8ZM12.1266 8C12.1266 7.8425 12.1191 7.685 12.0891 7.4525L11.9841 6.605L12.6516 6.08L13.4541 5.4425L12.9291 4.535L11.9766 4.9175L11.1816 5.24L10.4991 4.715C10.1991 4.49 9.89915 4.3175 9.57665 4.1825L8.78165 3.86L8.66165 3.0125L8.51915 2H7.47665L7.32665 3.0125L7.20665 3.86L6.41165 4.1825C6.10415 4.31 5.79665 4.49 5.47415 4.73L4.79915 5.24L4.01915 4.925L3.06665 4.5425L2.54165 5.45L3.35165 6.08L4.01915 6.605L3.91415 7.4525C3.89165 7.6775 3.87665 7.85 3.87665 8C3.87665 8.15 3.89165 8.3225 3.91415 8.555L4.01915 9.4025L3.35165 9.9275L2.54165 10.5575L3.06665 11.465L4.01915 11.0825L4.81415 10.76L5.49665 11.285C5.79665 11.51 6.09665 11.6825 6.41915 11.8175L7.21415 12.14L7.33415 12.9875L7.47665 14H8.52665L8.67665 12.9875L8.79665 12.14L9.59165 11.8175C9.89915 11.69 10.2066 11.51 10.5291 11.27L11.2041 10.76L11.9841 11.075L12.9366 11.4575L13.4616 10.55L12.6516 9.92L11.9841 9.395L12.0891 8.5475C12.1116 8.3225 12.1266 8.1575 12.1266 8ZM8.00164 5C6.34414 5 5.00164 6.3425 5.00164 8C5.00164 9.6575 6.34414 11 8.00164 11C9.65914 11 11.0016 9.6575 11.0016 8C11.0016 6.3425 9.65914 5 8.00164 5ZM6.50164 8C6.50164 8.825 7.17664 9.5 8.00164 9.5C8.82664 9.5 9.50164 8.825 9.50164 8C9.50164 7.175 8.82664 6.5 8.00164 6.5C7.17664 6.5 6.50164 7.175 6.50164 8Z" fill="#F7901D"/>
  149.                         </svg>
  150.                         <span>Настройки</span>
  151.                     </a>
  152.                 </li>
  153.                 <li>
  154.                     <a href="{{ path('logout') }}" class="level level-item ">
  155.                         <svg class="icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  156.                             <path fill-rule="evenodd" clip-rule="evenodd" d="M8 0.5C3.8525 0.5 0.5 3.8525 0.5 8C0.5 12.1475 3.8525 15.5 8 15.5C12.1475 15.5 15.5 12.1475 15.5 8C15.5 3.8525 12.1475 0.5 8 0.5ZM8 14C4.6925 14 2 11.3075 2 8C2 4.6925 4.6925 2 8 2C11.3075 2 14 4.6925 14 8C14 11.3075 11.3075 14 8 14ZM8 6.9425L10.6925 4.25L11.75 5.3075L9.0575 8L11.75 10.6925L10.6925 11.75L8 9.0575L5.3075 11.75L4.25 10.6925L6.9425 8L4.25 5.3075L5.3075 4.25L8 6.9425Z" fill="#828282"/>
  157.                         </svg>
  158.                         <span>Выйти</span>
  159.                     </a>
  160.                 </li>
  161.             </ul>
  162.         </nav>
  163.     {% endif %}
  164. </aside>