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

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

<%= button_to sync_all_accounts_path, disabled: Current.family.syncing?, class: "btn btn--outline flex items-center gap-2", title: t(".sync") do %> <%= lucide_icon "refresh-cw", class: "w-5 h-5" %> <%= t(".sync") %> <% end %> <%= link_to new_account_path(return_to: accounts_path), 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 @manual_accounts.empty? && @plaid_items.empty? %> <%= render "empty" %> <% else %>
<% if @plaid_items.any? %> <%= render @plaid_items.sort_by(&:created_at) %> <% end %> <% if @manual_accounts.any? %> <%= render "accounts/index/manual_accounts", accounts: @manual_accounts %> <% end %>
<% end %> <%= settings_nav_footer %>