# charitable/1.8.13/includes/admin/views/reports/donors.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.8.13. 79 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.8.13/code/includes/admin/views/reports/donors.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.13/raw/includes/admin/views/reports/donors.php
- Modified: 2026-01-07T16:49:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.8.13/code/includes/admin/views/reports/donors.php#L10-L20`.

```php
<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Display the main reports "overview" page.
 *
 * @author    David Bisset
 * @package   Charitable/Admin View/Settings
 * @copyright Copyright (c) 2023, WP Charitable LLC
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since     1.8,1
 * @version   1.8.1
 * @version   1.8.8.6
 */

$charitable_report_type = charitable_reports_get_donor_report_type();

$charitable_args           = array();
$charitable_args['limit']  = isset( $_GET['limit'] ) ? intval( $_GET['limit'] ) : charitable_reports_get_pagination_per_page( $charitable_report_type ); // phpcs:ignore
$charitable_args['offset'] = isset( $_GET['offset'] ) ? intval( $_GET['offset'] ) : 0; // phpcs:ignore
$charitable_args['ppage']  = isset( $_GET['ppage'] ) ? intval( $_GET['ppage'] ) : 1; // phpcs:ignore

$charitable_reports = Charitable_Reports::get_instance();
$charitable_reports->init_with_array( $charitable_report_type, $charitable_args );

$charitable_donor_breakdown = $charitable_reports->get_donor_report_by_type( $charitable_report_type, $charitable_args );

?>

<div class="tablenav top with-margin">
	<div class="alignleft actions">
		<?php if ( ! charitable_is_pro() ) : ?>
			<label for="report-donor-type-filter" class="screen-reader-text"><?php echo esc_html__( 'Available Reports', 'charitable' ); ?></label>
			<div class="charitable-datepicker-container"><label for=""><?php echo esc_html__( 'Available Reports', 'charitable' ); ?>:</label>
				<?php echo $charitable_reports->get_donor_report_type_dropdown( $charitable_report_type ); // phpcs:ignore ?>
			</div>
		<?php else : ?>
			<label for="report-donor-type-filter" class="screen-reader-text"><?php echo esc_html__( 'Select Report', 'charitable' ); ?></label>
			<div class="charitable-datepicker-container"><label for="report-donor-type-filter"><?php echo esc_html__( 'Select Report', 'charitable' ); ?>:</label>
				<?php echo $charitable_reports->get_donor_report_type_dropdown( $charitable_report_type ); // phpcs:ignore ?>
				<input type="hidden" name="report-donor-limit" id="report-donor-limit" value="<?php echo intval( $charitable_args['limit'] ); ?>">
				<input type="hidden" name="report-donor-ppage" id="report-donor-ppage" value="<?php echo intval( $charitable_args['ppage'] ); ?>">
				<input type="hidden" name="report-donor-offset" id="report-donor-offset" value="<?php echo intval( $charitable_args['offset'] ); ?>">
			</div>
		<?php endif; ?>
	</div>
	<div class="alignright">
		<?php if ( charitable_is_pro() ) : ?>
			<div class="charitable-datepicker-container"><a href="#" class="button button-primary" id="charitable-reports-filter-button" data-filter-type="donor"><?php echo esc_html__( 'Filter', 'charitable' ); ?></a></div>
		<?php endif; ?>
	</div>
	<br class="clear">
</div>

<div class="charitable-donors-report">

	<div class="charitable-container charitable-title-card" id="charitable-report-donor-title-card">

		<div class="charitable-title-card-content">

			<?php echo $charitable_reports->generate_title_card_html( $charitable_report_type ); // phpcs:ignore ?>

		</div>

	</div>

	<div id="charitable-report-donor-container" class="tablenav charitable-section">

		<?php
			echo $charitable_reports->generate_donor_breakdown_table_html( $charitable_report_type, $charitable_donor_breakdown, $charitable_args['ppage'], $charitable_args['limit'] ); // phpcs:ignore
		?>

	</div>

</div>
```
