<%= render Avo::Sidebar::LinkComponent.new label: 'Get started', path: helpers.avo.root_path, active: :exclusive if Rails.env.development? && Avo.configuration.home_path.nil? %> <% if Avo.plugin_manager.installed?("avo-menu") && Avo.has_main_menu? %> <% Avo.main_menu.items.each do |item| %> <%= render Avo::Sidebar::ItemSwitcherComponent.new item: item %> <% end %> <% else %> <% if dashboards.present? %>
<%= render Avo::Sidebar::HeadingComponent.new label: t('avo.dashboards'), icon: helpers.svg('dashboards', class: 'h-4') %>
<% dashboards.sort_by { |r| r.navigation_label }.each do |dashboard| %> <%= render Avo::Sidebar::LinkComponent.new label: dashboard.navigation_label, path: Avo::Dashboards::Engine.routes.url_helpers.dashboard_path(dashboard) %> <% end %>
<% end %>
<%= render Avo::Sidebar::HeadingComponent.new label: t('avo.resources'), icon: helpers.svg('resources', class: 'h-4') %>
<% resources.sort_by { |r| r.navigation_label }.each do |resource| %> <%= render Avo::Sidebar::LinkComponent.new label: resource.navigation_label, path: helpers.resources_path(resource: resource) %> <% end %>
<% if tools.present? %>
<%= render Avo::Sidebar::HeadingComponent.new label: t('avo.tools'), icon: helpers.svg('tools', class: 'h-4') %>
<% tools.each do |partial| %> <%= render partial: "/avo/sidebar/items/#{partial}" %> <% end %>
<% end %> <% end %> <%= render partial: "/avo/partials/sidebar_extra" %>
<% if Rails.env.development? %>
<%= link_to helpers.avo.avo_private_status_path, class: "block px-4 py-2 border rounded flex justify-between items-center w-full text-black text-sm" do %> Avo Status
">
<% end %>
<% end %> <%= render Avo::SidebarProfileComponent.new user: helpers._current_user %>