<% content_for(:title, "Payouts") %>

Payout History

View and track all your payout requests

<% if @payouts.any? %>

Total Payouts

<%= @payouts.count %>

Total Earned

€<%= @payouts.sum(&:net_amount_cents) / 100.0 %>

Pending

<%= @payouts.pending.count %>

<% end %> <% if @payouts.any? %>
<% @payouts.each do |payout| %> <% end %>
Event Amount Status Date Actions
<%= payout.event&.name || "Event not found" %>
#<%= payout.id %>
€<%= payout.net_amount_euros %>
Gross: €<%= payout.amount_euros %>
<% case payout.status %> <% when 'pending' %> Pending <% when 'processing' %> Processing <% when 'completed' %> Completed <% when 'failed' %> Failed <% end %> <%= payout.created_at.strftime("%b %d, %Y") %> <%= link_to "View Details", promoter_payout_path(payout), class: "text-indigo-600 hover:text-indigo-900 font-medium" %>
<% if @payouts.respond_to?(:total_pages) %>
<%= paginate @payouts %>
<% end %>
<% else %>

No payouts yet

You haven't requested any payouts yet. When your events end, you'll be able to request payouts here.

<%= link_to "View My Events", promoter_events_path, class: "inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" %>
<% end %>