<% content_for :page_header do %>

<%= 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 %>
gap-6 pb-6 lg:pb-12" data-controller="dashboard-sortable" data-action="dragover->dashboard-sortable#dragOver drop->dashboard-sortable#drop" role="list" aria-label="Dashboard sections"> <% if accessible_accounts.any? %> <% @dashboard_sections.each do |section| %> <% next unless section[:visible] %>
" data-dashboard-section-section-key-value="<%= section[:key] %>" data-dashboard-section-collapsed-value="<%= Current.user.dashboard_section_collapsed?(section[:key]) %>" draggable="true" tabindex="0" role="listitem" aria-grabbed="false" aria-label="<%= t(section[:title]) %> section. Press Enter or Space to grab for reordering, then use arrow keys to move." data-action=" dragstart->dashboard-sortable#dragStart dragend->dashboard-sortable#dragEnd touchstart->dashboard-sortable#touchStart touchmove->dashboard-sortable#touchMove touchend->dashboard-sortable#touchEnd touchcancel->dashboard-sortable#touchEnd keydown->dashboard-sortable#handleKeyDown">

<%= t(section[:title]) %>

<% if section[:key] == "cashflow_sankey" && section[:locals][:sankey_data][:links].present? %> <% end %>
<%= render partial: section[:partial], locals: section[:locals] %>
<% end %> <% else %>
<%= render "pages/dashboard/no_accounts_graph_placeholder" %>
<% end %>