% content_for :page_header do %>
Welcome back, <%= Current.user.first_name %>
Here's what's happening with your finances
<%= render LinkComponent.new(
icon: "plus",
text: "New",
href: new_account_path,
frame: :modal,
class: "hidden lg:inline-flex"
) %>
<%= render LinkComponent.new(
variant: "icon-inverse",
icon: "plus",
href: new_account_path,
frame: :modal,
class: "rounded-full lg:hidden"
) %>
<% end %>
<% if Current.family.accounts.any? %>
<%= render partial: "pages/dashboard/net_worth_chart", locals: {
balance_sheet: @balance_sheet,
period: @period
} %>
<%= render "pages/dashboard/balance_sheet", balance_sheet: @balance_sheet %>
<%= turbo_frame_tag "cashflow_sankey_section" do %>
<%= render partial: "pages/dashboard/cashflow_sankey", locals: {
sankey_data: @cashflow_sankey_data,
period: @cashflow_period
} %>
<% end %>
<% else %>
<%= render "pages/dashboard/no_accounts_graph_placeholder" %>
<% end %>