<?php if (!defined('ABSPATH')) {
    die('You are not allowed to call this page directly.');
} ?>

<div class="info_block">
  <span class="info_block_title"><?php _e('Pending Transactions', 'memberpress'); ?></span>
  <h3><?php echo MeprReports::get_transactions_count(MeprTransaction::$pending_str, false, false, false, $curr_product); ?></h3>
</div>

<div class="info_block">
  <span class="info_block_title"><?php _e('Failed Transactions', 'memberpress'); ?></span>
  <h3><?php echo MeprReports::get_transactions_count(MeprTransaction::$failed_str, false, false, false, $curr_product); ?></h3>
</div>

<div class="info_block">
  <span class="info_block_title"><?php _e('Refunded Transactions', 'memberpress'); ?></span>
  <h3><?php echo MeprReports::get_transactions_count(MeprTransaction::$refunded_str, false, false, false, $curr_product); ?></h3>
</div>

<div class="info_block">
  <span class="info_block_title"><?php _e('Completed Transactions', 'memberpress'); ?></span>
  <h3><?php echo MeprReports::get_transactions_count(MeprTransaction::$complete_str, false, false, false, $curr_product); ?></h3>
</div>

<div class="info_block">
  <span class="info_block_title"><?php _e('Amount Collected', 'memberpress'); ?></span>
  <h3><?php echo MeprAppHelper::format_currency(MeprReports::get_revenue(false, false, false, $curr_product) + MeprReports::get_refunds(false, false, false, $curr_product) + MeprReports::get_taxes(false, false, false, $curr_product), true, false); ?></h3>
</div>

<div class="info_block">
  <span class="info_block_title"><?php _e('Amount Refunded', 'memberpress'); ?></span>
  <h3><?php echo MeprAppHelper::format_currency(MeprReports::get_refunds(false, false, false, $curr_product), true, false); ?></h3>
</div>

<div class="info_block">
  <span class="info_block_title"><?php _e('Taxes Collected', 'memberpress'); ?></span>
  <h3><?php echo MeprAppHelper::format_currency(MeprReports::get_taxes(false, false, false, $curr_product), true, false); ?></h3>
</div>

<div class="info_block">
  <span class="info_block_title"><?php _e('Total Net Income', 'memberpress'); ?></span>
  <h3><?php echo MeprAppHelper::format_currency(MeprReports::get_revenue(false, false, false, $curr_product), true, false); ?></h3>
</div>
