<%# Main Net Worth Stats %>
<%# Current Net Worth %>

<%= t("reports.net_worth.current_net_worth") %>

"> <%= net_worth_metrics[:current_net_worth].format %>

<%# Period Change %>

<%= t("reports.net_worth.period_change") %>

<% if net_worth_metrics[:trend] %> <% trend = net_worth_metrics[:trend] %>

<%= trend.value.format(signify_positive: true) %>

<%= trend.value >= 0 ? "+" : "" %><%= trend.percent_formatted %>

<% else %>

--

<% end %>
<%# Assets vs Liabilities %>

<%= t("reports.net_worth.assets_vs_liabilities") %>

<%= net_worth_metrics[:total_assets].format %> - <%= net_worth_metrics[:total_liabilities].format %>
<%# Net Worth Over Time chart %> <% breakdown_series = net_worth_metrics[:breakdown_series] %> <% if breakdown_series && breakdown_series[:values].size >= 2 %>
" data-net-worth-chart-liabilities-label-value="<%= t("reports.net_worth.total_liabilities") %>">
<% end %> <%# Asset/Liability Breakdown %>
<%# Assets Summary %>
<% net_worth_metrics[:asset_groups].each_with_index do |group, idx| %> "> <% end %> <% if net_worth_metrics[:asset_groups].empty? %> <% end %>
<%= t("reports.net_worth.total_assets") %> <%= t("reports.transactions_breakdown.table.amount") %>
<%= group[:name] %> <%= group[:total].format %>
<%= t("reports.net_worth.no_assets") %>
<%# Liabilities Summary %>
<% net_worth_metrics[:liability_groups].each_with_index do |group, idx| %> "> <% end %> <% if net_worth_metrics[:liability_groups].empty? %> <% end %>
<%= t("reports.net_worth.total_liabilities") %> <%= t("reports.transactions_breakdown.table.amount") %>
<%= group[:name] %> <%= group[:total].format %>
<%= t("reports.net_worth.no_liabilities") %>