<% 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 %> <%= render "sync_all_button" %> <%= link_to new_account_path(step: "method"), data: { turbo_frame: "modal" }, class: "btn btn--primary flex items-center gap-1" do %> <%= lucide_icon("plus", class: "w-5 h-5") %>

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

<% end %>
<% if @accounts.empty? && @institutions.empty? %> <%= render "empty" %> <% else %>
<% @institutions.each do |institution| %> <%= render "institution_accounts", institution: %> <% end %> <% if @accounts.any? %> <%= render "institutionless_accounts", accounts: @accounts %> <% end %>
<% end %> <%= settings_nav_footer %>