<% if @customer.present? %> <%= form_with(url: invoice_path, method: :get) do |form| %>
<%= check_box_tag "select-all-invoices", "1", false, id: "select-all-invoices" %> <%= label_tag "select-all-invoices", "Select All Invioces" %>

<% @customer.invoices.order(id: :desc).each do |invoice| %>
<%= check_box_tag "invoice_ids[]", invoice.id, false, class: "invoice-checkbox" %> <%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %> <%= invoice.txn_date %>
<% end %> <%= form.submit "Bulk PDF" %> <% end %> <% else %>

<%=t(:label_no_invoices)%>.

<% end %>