custom/plugins/SwagB2bPlatform/SwagB2bPlatform/Resources/views/storefront/page/account/sidebar.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/account/sidebar.html.twig' %}
  2. {% block page_account_sidebar_menu_inner %}
  3.     {% if not b2bSuite %}
  4.         {{ parent() }}
  5.     {% else %}
  6.         {% if isSalesRep %}
  7.             {% set links = [{
  8.                     name: "ClientOverview",
  9.                     route: "b2bsalesrepresentative"
  10.                 }]
  11.             %}
  12.         {% else %}
  13.             {% set links = [{
  14.                     name: "Dashboard",
  15.                     route: "b2bdashboard"
  16.                 }, {
  17.                     name: "Company",
  18.                     route: "b2bcompany"
  19.                 }, {
  20.                     name: "Statistic",
  21.                     route: "b2bstatistic"
  22.                 }, {
  23.                     name: "Orders",
  24.                     route: "b2border"
  25.                 }, {
  26.                     name: "OrderList",
  27.                     route: "b2borderlist"
  28.                 }, {
  29.                     name: "FastOrder",
  30.                     route: "b2bfastorder"
  31.                 }, {
  32.                     name: "Offer",
  33.                     route: "b2boffer",
  34.                 }, {
  35.                     name: "OrderNumber",
  36.                     route: "b2bordernumber"
  37.                 }]
  38.             %}
  39.         {% endif %}
  40.         {% for link in links %}
  41.             {% if b2b_acl_check(link.route, 'index') and not link.disabled %}
  42.                 {% set link = {
  43.                         route: (link.route starts with('frontend.')) ? link.route : 'frontend.b2b.' ~ link.route ~ '.index',
  44.                         name: ('.' in link.name) ? link.name : 'b2b.' ~ link.name,
  45.                         component: link.route
  46.                     }
  47.                 %}
  48.                 <a
  49.                     href="{{ path(link.route) }}"
  50.                     title="{{ link.name|trans }}"
  51.                     class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as(link.route) %} is-active{% endif %} {{ b2b_acl(link.component, 'index') }}"
  52.                 >
  53.                     {{ link.name|trans }}
  54.                 </a>
  55.             {% endif %}
  56.         {% endfor %}
  57.     {% endif %}
  58. {% endblock %}