<%= render 'header' %>

Search

<% if @results.any? %> <% @results.each do |result| %> <% if result.is_a? Tang::Charge %> <% elsif result.is_a? Tang.customer_class %> <% elsif result.is_a? Tang::Plan %> <% elsif result.is_a? Tang::Coupon %> <% elsif result.is_a? Tang::Invoice %> <% elsif result.is_a? Tang::InvoiceItem %> <% end %> <% end %>
<%= link_to "#{number_to_currency(result.amount.to_f / 100.0)} #{result.currency.upcase}", admin_payment_path(result) %> <%= result.stripe_id %> <%= "****#{result.card_last4}" %> <%= result.created_at.strftime('%Y/%m/%d %H:%M:%S') %>
<%= link_to "#{result.email} — #{result.stripe_id}", admin_customer_path(result) %> <%= result.created_at.strftime('%Y/%m/%d %H:%M:%S') %>
<%= link_to "#{result.stripe_id} — #{result.name}", admin_plan_path(result) %> <%= plan_cost(result) %>
<%= link_to result.stripe_id, admin_coupon_path(result) %> <%= "#{coupon_off(result)} #{result.formatted_duration}" %>
<%= link_to number_to_currency(result.total.to_f / 100.0), admin_invoice_path(result) %>     <%= result.created_at.strftime('%Y/%m/%d %H:%M:%S') %>
<%= link_to number_to_currency(result.amount.to_f / 100.0), admin_invoice_path(result.invoice) %> <%= result.description %> <%= result.invoice.stripe_id %> <%= result.created_at.strftime('%Y/%m/%d %H:%M:%S') %>
<% else %>

There aren't any results for that query.

<% end %> <%= render 'footer' %>