<%= render HeaderComponent.new(title: "Donations") %> <%= render MainSimpleComponent.new do %>
<%= render QuickstatsContainerComponent.new do %> <%= render QuickstatsItemComponent.new( type: :number, title: 'Received', value: @stats[:overall_sats], unit: 'sats' ) %> <%= render QuickstatsItemComponent.new( type: :number, title: 'Donors', value: @stats[:donor_count], meta: "/ #{User.count} users" ) %> <% end %>
<%= render partial: "admin/username_search_form", locals: { path: admin_donations_path } %>
<% if @pending_donations.present? %>

Pending

<%= render partial: "admin/donations/list", locals: { donations: @pending_donations } %>
<% end %>
<% if @donations.present? %>

Received

<%= render partial: "admin/donations/list", locals: { donations: @donations, pagy: @pagy } %> <% else %>

No donations received yet.

<% end %>

<%= link_to 'Record an out-of-system donation', new_admin_donation_path, class: 'btn-md btn-gray' %>

<% end %>