<%# 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 %>
<%# Asset/Liability Breakdown %>
<%# Assets Summary %>

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

<% net_worth_metrics[:asset_groups].each do |group| %>
<%= group[:name] %> <%= group[:total].format %>
<% end %> <% if net_worth_metrics[:asset_groups].empty? %>

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

<% end %>
<%# Liabilities Summary %>

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

<% net_worth_metrics[:liability_groups].each do |group| %>
<%= group[:name] %> <%= group[:total].format %>
<% end %> <% if net_worth_metrics[:liability_groups].empty? %>

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

<% end %>