2024-11-04 20:27:31 -05:00
|
|
|
<%= turbo_stream_from @account %>
|
|
|
|
|
|
|
|
<%= turbo_frame_tag dom_id(@account) do %>
|
|
|
|
<%= tag.div class: "space-y-4" do %>
|
|
|
|
<%= render "accounts/show/header", account: @account %>
|
|
|
|
|
2024-12-10 17:41:20 -05:00
|
|
|
<%= render "accounts/show/chart",
|
2024-11-04 20:27:31 -05:00
|
|
|
account: @account,
|
|
|
|
title: t(".chart_title"),
|
|
|
|
tooltip: render(
|
|
|
|
"investments/value_tooltip",
|
2024-12-10 17:41:20 -05:00
|
|
|
balance: @account.balance_money,
|
|
|
|
holdings: @account.balance - @account.cash_balance,
|
|
|
|
cash: @account.cash_balance
|
2024-11-04 20:27:31 -05:00
|
|
|
) %>
|
|
|
|
|
|
|
|
<div class="min-h-[800px]">
|
|
|
|
<%= render "accounts/show/tabs", account: @account, tabs: [
|
|
|
|
{ key: "holdings", contents: render("investments/holdings_tab", account: @account) },
|
2024-12-10 17:41:20 -05:00
|
|
|
{ key: "activity", contents: render("accounts/show/activity", account: @account) },
|
2024-11-04 20:27:31 -05:00
|
|
|
] %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|