<?php
/**
 * Dashboard admin page.
 *
 * @package SuiteMkt3k
 */

namespace SuiteMkt3k\Admin\Pages;

use SuiteMkt3k\Modules\Dashboard\Dashboard_Manager;
use SuiteMkt3k\Security\Capabilities;

defined( 'ABSPATH' ) || exit;

final class Dashboard_Page extends Base_Page {

	protected static string $slug          = 'suitemkt3k';
	protected static string $cap           = Capabilities::MANAGE;
	protected static string $page_title    = '';
	protected static string $page_subtitle = '';

	public static function render(): void {
		static::$page_title    = __( 'Dashboard', 'suitemkt3k' );
		static::$page_subtitle = __( 'Real-time overview of your marketing performance', 'suitemkt3k' );
		parent::render();
	}

	protected static function content(): void {
		$data = Dashboard_Manager::get_overview();
		include SUITEMKT3K_PATH . 'includes/admin/views/dashboard.php';
	}
}
