<%= t("pages.dashboard.welcome", name: Current.user.first_name) %>
<%= t("pages.dashboard.subtitle") %>
<%= render DS::Link.new(
icon: "plus",
text: t("pages.dashboard.new"),
href: new_account_path,
frame: :modal,
class: "hidden lg:inline-flex"
) %>
<%= render DS::Link.new(
variant: "icon-inverse",
icon: "plus",
href: new_account_path,
frame: :modal,
class: "rounded-full lg:hidden"
) %>
<% end %>
<% if Current.family.accounts.any? %>
<% @dashboard_sections.each do |section| %>
<% next unless section[:visible] %>
<%= t(section[:title]) %>
<%= render partial: section[:partial], locals: section[:locals] %>
<% end %>
<% else %>
<%= render "pages/dashboard/no_accounts_graph_placeholder" %>
<% end %>