<% content_for :sidebar do %> <%= render "settings/nav" %> <% end %>

<%= t(".accounts") %>

<%= contextual_menu do %>
<%= link_to new_institution_path, class: "block w-full py-2 px-3 space-x-2 text-gray-900 hover:bg-gray-50 flex items-center rounded-lg font-normal", data: { turbo_frame: "modal" } do %> <%= lucide_icon "building-2", class: "w-5 h-5 text-gray-500" %> <%= t(".add_institution") %> <% end %>
<% end %> <%= link_to new_account_path, data: { turbo_frame: "modal" }, class: "rounded-lg bg-gray-900 text-white flex items-center gap-1 justify-center hover:bg-gray-700 px-3 py-2" do %> <%= lucide_icon("plus", class: "w-5 h-5") %>

<%= t(".new_account") %>

<% end %> <%= render "sync_all_button" %>
<% if @accounts.empty? && @institutions.empty? %> <%= render "empty" %> <% else %>
<% @institutions.each do |institution| %> <%= render "institution_accounts", institution: %> <% end %> <%= render "institutionless_accounts", accounts: @accounts %>
<% end %>
<% if self_hosted? %> <%= previous_setting("Self-Hosting", settings_hosting_path) %> <% else %> <%= previous_setting("Billing", settings_billing_path) %> <% end %> <%= next_setting("Tags", tags_path) %>