<%# locals: (entry:, balance_trend: nil, **) %> <% valuation = entry.entryable %> <% color = balance_trend&.trend&.color || "#D444F1" %> <% icon = balance_trend&.trend&.icon || "plus" %> <%= turbo_frame_tag dom_id(entry) do %> <%= turbo_frame_tag dom_id(valuation) do %>
<%= check_box_tag dom_id(entry, "selection"), class: "checkbox checkbox--light", data: { id: entry.id, "bulk-select-target": "row", action: "bulk-select#toggleRowSelection" } %>
<%= tag.div class: "w-6 h-6 rounded-full p-1.5 flex items-center justify-center", style: mixed_hex_styles(color) do %> <%= lucide_icon icon, class: "w-4 h-4 shrink-0" %> <% end %>
<%= link_to entry.display_name, account_entry_path(entry), data: { turbo_frame: "drawer", turbo_prefetch: false }, class: "hover:underline hover:text-gray-800" %>
<% if balance_trend&.trend %> <%= tag.span format_money(balance_trend.trend.value), style: "color: #{balance_trend.trend.color}" %> <% else %> <%= tag.span "--", class: "text-gray-400" %> <% end %>
<%= tag.p format_money(entry.amount_money), class: "font-medium text-sm text-primary" %>
<% end %> <% end %>