2024-12-10 17:41:20 -05:00
|
|
|
<%# locals: (balance:, holdings:, cash:) %>
|
2024-10-18 14:37:42 -04:00
|
|
|
|
2024-08-16 16:08:27 -04:00
|
|
|
<div data-controller="tooltip" data-tooltip-placement-value="right" data-tooltip-offset-value=10 data-tooltip-cross-axis-value=50>
|
2024-08-08 12:53:27 +02:00
|
|
|
<%= lucide_icon("info", class: "w-4 h-4 shrink-0 text-gray-500") %>
|
2024-08-16 16:08:27 -04:00
|
|
|
<div role="tooltip" data-tooltip-target="tooltip" class="tooltip bg-gray-700 text-sm p-2 rounded w-64">
|
2024-08-08 12:53:27 +02:00
|
|
|
<div class="text-white">
|
|
|
|
<%= t(".total_value_tooltip") %>
|
|
|
|
</div>
|
|
|
|
<div class="flex pt-3">
|
|
|
|
<div class="text-gray-300">
|
2024-12-10 17:41:20 -05:00
|
|
|
<%= t(".cash") %>
|
2024-08-08 12:53:27 +02:00
|
|
|
</div>
|
|
|
|
<div class="text-white ml-auto">
|
2024-12-10 17:41:20 -05:00
|
|
|
<%= tag.p format_money(cash, precision: 0) %>
|
2024-08-08 12:53:27 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex">
|
|
|
|
<div class="text-gray-300">
|
2024-12-10 17:41:20 -05:00
|
|
|
<%= t(".holdings") %>
|
2024-08-08 12:53:27 +02:00
|
|
|
</div>
|
|
|
|
<div class="text-white ml-auto">
|
2024-12-10 17:41:20 -05:00
|
|
|
<%= tag.p format_money(holdings, precision: 0) %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr class="my-2 border-gray-500">
|
|
|
|
|
|
|
|
<div class="flex">
|
|
|
|
<div class="text-gray-300">
|
|
|
|
<%= t(".total") %>
|
|
|
|
</div>
|
|
|
|
<div class="text-white font-bold ml-auto">
|
|
|
|
<%= tag.p format_money(balance, precision: 0) %>
|
2024-08-08 12:53:27 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|