<%= tag.div id: id, data: { bulk_select_target: "group" }, class: "bg-container-inset rounded-xl p-1 w-full" do %>
<%= check_box_tag "#{date}_entries_selection", class: ["checkbox checkbox--light", "hidden": entries.size == 0], id: "selection_entry_#{date}", data: { action: "bulk-select#toggleGroupSelection" } %>

<%= tag.span I18n.l(date, format: :long) %> · <%= tag.span entries.size %>

<%= end_balance_money.format %> <%= render DS::Tooltip.new(text: "The end of day balance, after all transactions and adjustments", placement: "left", size: "sm") %>
<%= helpers.icon "chevron-down", class: "group-open:rotate-180" %>
<% if balance %> <%= render UI::Account::BalanceReconciliation.new(balance: balance, account: account) %> <% else %>

No balance data available for this date

<% end %>
<% entries.each do |entry| %> <%= render entry, view_ctx: "account" %> <% end %>
<% end %>