<%= render layout: 'index_layout' do %> <% @payment_methods.each do |payment_method| %> <% payment_method.repeat_results.each do |result| %> <% end %> <% end %>
ID <%= PaymentMethod.human_attribute_name(:account_name) %> <%= PaymentMethod.human_attribute_name(:account_num) %> <%= PaymentMethod.human_attribute_name(:bank) %> <%= PaymentMethod.human_attribute_name(:payment_references) %> <%= PaymentMethod.human_attribute_name(:verified) %> Actions
<%= payment_method.id %> <%= payment_method.account_name %> <%= payment_method.account_num %> <%= payment_method.bank %> <% payment_method.payment_references.each do |reference| %>

<%= reference.buyer.name %>

<% end %>
<%= form_with model: payment_method, scope: 'payment_method', url: admin_payment_method_path(payment_method), method: :patch do |f| %>
<%= f.check_box :verified, onChange: 'this.form.submit()', label: false, on: { wrapper_all: false, wrapper_checkbox: false, offset: false } %>
<% end %>
<%= link_to t('.edit'), edit_admin_payment_method_path(payment_method), class: 'ui mini blue button' %> <%= link_to t('.destroy'), admin_payment_method_path(payment_method), class: 'ui mini red button', method: :delete, data: { confirm: 'Are you sure?' } %>
<%= result.id %> <%= result.account_name %> <%= result.account_num %> <%= result.bank %> <% result.payment_references.each do |reference| %>

<%= reference.buyer.name %>

<% end %>
<%= link_to '并入此账户', merge_from_admin_payment_method_path(result, other_id: payment_method.id), method: :patch %>
<% end %>