<%if is_market? %>

Market admin

<% if BtcAddress.bitcoin.unassigned.count < 100 %>
Less than 100 bitcoin addresses are available to assign to new orders. You should generate more addresses.
<% end %> <% if PaymentMethod.litecoin_exists? && BtcAddress.litecoin.unassigned.count < 100 %>
Less than 100 litecoin addresses are available to assign to new orders. You should generate more addresses.
<% end %> <% if PaymentMethod.litecoin_exists? %> <%end%>
Historical stats 48 hr 7 day
Successful user logins <%= @successful_logins_last_48h %> <%= @successful_logins_last_7d %>
Users that could not login with over ten failed attempts <%= @failed_logins_over_10_attempts_last_48h %> <%= @failed_logins_over_10_attempts_last_7d %>
New user accounts <%= @new_accounts_last_48h %> <%= @new_accounts_last_7d %>
New orders (including unconfirmed) <%= @new_orders_created_last_48h %> <%= @new_orders_created_last_7d %>
New confirmed orders (address assigned) <%= @new_orders_confirmed_last_48h %> <%= @new_orders_confirmed_last_7d %>
New orders where payment was received <%= @new_orders_after_paid_last_48h %> <%= @new_orders_after_paid_last_7d %>
Bitcoin payments received <%= @payments_received_48h %> <%= @payments_received_7d %>
Litecoin payments received <%= @ltc_payments_received_48h %> <%= @ltc_payments_received_7d %>
New products created <%= @new_products_created_last_48h %> <%= @new_products_created_last_7d %>
<% if PaymentMethod.litecoin_exists? %> <%end%> <% if NetworkFee.count > 0 %> <%end%>
Current stats
Available bitcoin addresses <%= BtcAddress.unassigned.count %>
Available litecoin addresses <%= BtcAddress.litecoin.unassigned.count %>
User count <%= User.count %>
<%= link_to 'Order payouts owing', admin_orders_path(filter: 'owing_payouts') %> <%= @order_payouts_owing %>
<%= link_to 'Order payouts pending (subset of owing because address is set)', admin_orders_path(filter: 'pending_payouts') %> <%= @order_payouts_pending %>
<%= link_to 'Expired orders with payouts (subset of owing). These are buyer payouts.', admin_orders_path(filter: 'owing_payouts', filter_status: 'expired') %> <%= @expired_order_payouts_owing %>
<%= link_to 'Orders currently locked', admin_orders_path(filter: 'locked') %> <%= Order.where(locked: true).count %>
Current network fee for this week <%= NetworkFee.find_by_weeknum(Date.today.cweek).try(:fee) %> BTC
Idle vendors (no visit for 72 hrs) and still accepting sales <% @idle_vendor_displaynames.each do |name| %>
<%=name%>
<%end%>
<% else %>

Payment admin

Payment server admin. Read INSTALL.md for how to generate new addresses and make payments on the command line. These pages only display information. <% end %>