.dashboard_item.sixteen.columns.alpha#enterprises
  = render 'enterprises_header'

  - if @enterprises.empty?
    .sixteen.columns.alpha.list-item.warning
      %span.text.fifteen.columns.alpha
        = t "spree_admin_enterprises_none_text"
      %span.one.columns.omega
        %span.icon-remove-sign
    %a.sixteen.columns.alpha.button.bottom.warning{ href: "#{main_app.new_admin_enterprise_path}" }
      = t "spree_admin_enterprises_none_create_a_new_enterprise"
      %span.icon-arrow-right

  - else
    .sixteen.columns.alpha.list-title
      %span.five.columns.alpha
        = t "spree_admin_enterprises_hubs_name"
      - if can? :admin, Spree::PaymentMethod
        %span.centered.three.columns
          = t(:payment_methods)
      - if can? :admin, Spree::ShippingMethod
        %span.centered.three.columns
          = t "spree_admin_enterprises_shipping_methods"
      - if can? :admin, EnterpriseFee
        %span.centered.three.columns
          = t "spree_admin_enterprises_fees"
    .sixteen.columns.alpha.list
      = render partial: 'enterprise_row', collection: @enterprises, as: :enterprise
      - if defined? @enterprises_count
        .sixteen.columns.alpha.list-item.centered
          = t "spree_admin_enterprises_showing", count: @enterprises.count, total: @enterprises_count

    %a.sixteen.columns.alpha.button.bottom{ href: "#{main_app.admin_enterprises_path}" }
      = t "spree_admin_overview_enterprises_footer"
      %span.icon-arrow-right
