mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
* Add loan and credit card views * Lint fix * Clean up overview card markup * Lint fix * Test fix
30 lines
894 B
Plaintext
30 lines
894 B
Plaintext
<%# locals: (account:) %>
|
|
|
|
<div class="grid grid-cols-3 gap-2">
|
|
<%= summary_card title: t(".market_value") do %>
|
|
<%= format_money(account.balance_money) %>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".purchase_price") do %>
|
|
<%= account.property.purchase_price ? format_money(account.property.purchase_price) : t(".unknown") %>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".trend") do %>
|
|
<div class="flex items-center gap-1" style="color: <%= account.property.trend.color %>">
|
|
<p class="text-xl font-medium">
|
|
<%= account.property.trend.value %>
|
|
</p>
|
|
|
|
<p>(<%= account.property.trend.percent %>%)</p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".year_built") do %>
|
|
<%= account.property.year_built || t(".unknown") %>
|
|
<% end %>
|
|
|
|
<%= summary_card title: t(".living_area") do %>
|
|
<%= account.property.area || t(".unknown") %>
|
|
<% end %>
|
|
</div>
|