<%# locals: (label:, period:, balance:, trend:, size: "lg")%>

<%= label %>

<%= balance.currency.symbol %> font-medium"><%= format_money_without_symbol balance, precision: 0 %> <%- if balance.currency.default_precision.positive? -%> <%= balance.currency.separator %><%= balance.cents_str %> <% end %>

<% if trend.nil? %>

Data not available for the selected period

<% elsif trend.direction == "flat" %>

No change vs. prior period

<% else %>
<%= render partial: "shared/trend_change", locals: { trend: trend } %> <%= period_label(period) %>
<% end %>