<% content_for(:title, "Payout Details") %>

Payout Details

Payout request for <%= @payout.event&.name || "Unknown Event" %>

<%= link_to "← Back to Payouts", promoter_payouts_path, class: "inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" %>

Payout Status

<% if @payout.status == 'pending' %> <% else %> <% end %>

Requested

<%= @payout.created_at.strftime("%b %d, %Y") %>

<% if @payout.status == 'processing' %> <% elsif @payout.status == 'completed' || @payout.status == 'failed' %> <% else %> <% end %>

Processing

<% if @payout.status == 'completed' %> <% elsif @payout.status == 'failed' %> <% else %> <% end %>

Completed

Gross Amount

€<%= @payout.amount_euros %>

Platform Fees

-€<%= @payout.fee_euros %>

Net Amount

€<%= @payout.net_amount_euros %>

Payout Information

Details about this payout request

Event
<%= @payout.event&.name || "Event not found" %>
Event #<%= @payout.event&.id %>
Status
<% case @payout.status %> <% when 'pending' %> Pending <% when 'processing' %> Processing <% when 'completed' %> Completed <% when 'failed' %> Failed <% end %>
Gross Amount
€<%= @payout.amount_euros %>
Platform Fees
-€<%= @payout.fee_euros %>
Net Amount
€<%= @payout.net_amount_euros %>
Total Orders
<%= @payout.total_orders_count %>
Refunded Orders
<%= @payout.refunded_orders_count %>
Requested Date
<%= @payout.created_at.strftime("%B %d, %Y at %I:%M %p") %>
<% if @payout.stripe_payout_id.present? %>
Stripe Payout ID
<%= @payout.stripe_payout_id %>
<% end %>