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

Pending

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

Recent

<%= 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 %>