Event Information
Event Name
<%= @payout.event.name %>
Event Date
<%= @payout.event.start_time.strftime("%B %d, %Y") %>
Promoter Information
Name
<%= @payout.user.name.presence || @payout.user.email %>
Email
<%= @payout.user.email %>
Financial Details
Gross Amount
€<%= @payout.amount_euros %>
Platform Fees
€<%= @payout.fee_euros %>
Net Amount
€<%= @payout.net_amount_euros %>
Payout Information
Status
<% case @payout.status %>
<% when 'pending' %>
Pending
<% when 'processing' %>
Processing
<% when 'completed' %>
Completed
<% when 'failed' %>
Failed
<% end %>
Created At
<%= @payout.created_at.strftime("%B %d, %Y at %H:%M") %>
<% if @payout.stripe_payout_id.present? %>
Payout ID
<% if @payout.manual_payout? %>
Manual Transfer - <%= @payout.stripe_payout_id %>
<% else %>
<%= @payout.stripe_payout_id %>
<% end %>
<% end %>
<% if @payout.can_process? %>
<%= button_to "Process Payout", admin_payout_path(@payout), method: :post,
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 %>
<% if @payout.pending? || @payout.processing? %>
<%= button_to "Mark as Manually Processed", mark_as_manually_processed_admin_payout_path(@payout), method: :post,
class: "inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",
data: { confirm: "Are you sure you want to mark this payout as manually processed? This will notify the promoter that the bank transfer is being processed." } %>
<% end %>
<%= link_to "View as Promoter", promoter_payout_path(@payout), class: "inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md shadow-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" %>