<%# locals: (transfer:) %> <%= turbo_frame_tag dom_id(transfer) do %>
<%= check_box_tag dom_id(transfer), disabled: true, class: "maybe-checkbox maybe-checkbox--light" %>
<%= content_tag :div, class: ["flex items-center gap-2"] do %> <%= render "shared/circle_logo", name: transfer.name, size: "sm" %>
<%= link_to transfer.name, transfer_path(transfer), data: { turbo_frame: "drawer", turbo_prefetch: false }, class: "hover:underline hover:text-gray-800" %> <% if transfer.status == "confirmed" %> is confirmed"> <%= lucide_icon "link-2", class: "w-4 h-4 text-indigo-600" %> <% else %> Auto-matched <%= button_to transfer_path(transfer, transfer: { status: "confirmed" }), method: :patch, class: "text-gray-500 hover:text-gray-800 flex items-center justify-center", title: "Confirm match" do %> <%= lucide_icon "check", class: "w-4 h-4 text-indigo-400 hover:text-indigo-600" %> <% end %> <%= button_to transfer_path(transfer, transfer: { status: "rejected" }), method: :patch, data: { turbo: false }, class: "text-gray-500 hover:text-gray-800 flex items-center justify-center", title: "Reject match" do %> <%= lucide_icon "x", class: "w-4 h-4 text-gray-400 hover:text-gray-600" %> <% end %> <% end %>
<%= link_to transfer.from_account.name, transfer.from_account, class: "hover:underline", data: { turbo_frame: "_top" } %> <% if transfer.payment? %> <%= lucide_icon "arrow-right", class: "w-4 h-4" %> <% else %> <%= lucide_icon "arrow-left-right", class: "w-4 h-4" %> <% end %> <%= link_to transfer.to_account.name, transfer.to_account, class: "hover:underline", data: { turbo_frame: "_top" } %>
<% end %>
<% if transfer.categorizable? %> <%= render "account/transactions/transaction_category", entry: transfer.outflow_transaction.entry %> <% else %> <%= render "categories/badge", category: transfer.payment? ? payment_category : transfer_category %> <% end %>

+/- <%= format_money(transfer.amount_abs) %>

<% end %>