- if (@order&.distributor || current_distributor) == current_distributor

  #shop-tabs{"data-controller": "tabs-and-panels", "data-action": "orderCycleSelected@window->tabs-and-panels#activateShopPanel", "data-tabs-and-panels-class-name-value": "selected"}
    .tab-buttons
      .flex.row
        .columns.small-12.large-8
          - shop_tabs.each do |tab|
            .page
              %a{ href: "##{tab[:name]}_panel", data: { action: "tabs-and-panels#activate", "tabs-and-panels-target": "tab" }, class: ("selected" if tab[:default]) }=tab[:title]
        .columns.large-4.show-for-large-up
          = render partial: "shopping_shared/order_cycles"
    - shop_tabs.each do |tab|
      %div{id: "#{tab[:name]}_panel", "data-tabs-and-panels-target": "panel #{'default' if tab[:default]} #{'shop' if tab[:shop]}" } 
        .page-view
          - if tab[:custom]
            = render "shopping_shared/tabs/custom"
          - else
            = render "shopping_shared/tabs/#{tab[:name]}"
