2024-02-02 23:06:29 +00:00
|
|
|
|
2024-02-06 14:58:17 -03:00
|
|
|
<h2 class="text-2xl font-semibold font-display"><%= t('.title')%></h2>
|
2024-02-05 10:36:46 +11:00
|
|
|
<h3 class="mt-1 mb-4 text-sm text-gray-500"><%#= number_to_currency Current.family.cash_balance %></h3>
|
2024-02-02 23:06:29 +00:00
|
|
|
|
2024-02-05 10:36:46 +11:00
|
|
|
<% Current.family.accounts.each do |account| %>
|
2024-02-07 04:48:05 +03:00
|
|
|
<div class="flex flex-row items-center justify-between px-3 py-3 mb-2 bg-white shadow-sm rounded-xl">
|
|
|
|
<div class="flex w-1/3 items-center text-sm">
|
2024-02-02 23:06:29 +00:00
|
|
|
<%= account.name %>
|
|
|
|
</div>
|
2024-02-07 04:48:05 +03:00
|
|
|
<div class="flex w-1/3 items-center text-sm">
|
|
|
|
<%= to_accountable_title(account.accountable) %>
|
2024-02-02 23:06:29 +00:00
|
|
|
</div>
|
2024-02-07 04:48:05 +03:00
|
|
|
<p class="flex w-1/3 text-sm text-right">
|
2024-02-06 12:30:51 -05:00
|
|
|
<span class="block mb-1"><%= humanized_money_with_symbol account.balance %></span>
|
2024-02-02 23:06:29 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<% end %>
|