# give/4.16.9/src/Views/Admin.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 53 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Views/Admin.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Views/Admin.php
- Modified: 2021-11-23T23:55:18+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/give/4.16.9/code/src/Views/Admin.php#L10-L20`.

```php
<?php

/**
 * AdminViews Class
 *
 * @package Give
 */

namespace Give\Views;

use Give\Onboarding\Onboarding;

defined('ABSPATH') || exit;

/**
 * Manages Admin Views
 */
class Admin
{

    /**
     * Initialize Admin views
     */
    public function init()
    {
        // Load dashboard widgets
        $this->load_dashboard_widgets();

        // Load pages
        $this->load_pages();
    }

    public function __construct()
    {
        // Do nothing
    }

    public function load_dashboard_widgets()
    {
        // Load Reports dashboard widget
        $reports = new Admin\DashboardWidgets\Reports();
        $reports->init();
    }

    public function load_pages()
    {
        // Load Reports page
        $reports = new Admin\Pages\Reports();
        $reports->init();
    }

}

```
