<?php
namespace PixelioCartAbandonRecoveryMore\Admin\Services;

use PixelioCartAbandonRecoveryMore\Admin\Views\Pixelio_Cart_Abandon_Recovery_More_Email_Creator_Page;
use PixelioCartAbandonRecoveryMore\Admin\Views\Pixelio_Cart_Abandon_Recovery_More_Faq_Page;
use PixelioCartAbandonRecoveryMore\Admin\Views\Pixelio_Cart_Abandon_Recovery_More_Integrations_Page;
use PixelioCartAbandonRecoveryMore\Admin\Views\Pixelio_Cart_Abandon_Recovery_More_Rgpd_Page;
use PixelioCartAbandonRecoveryMore\Admin\Views\Pixelio_Cart_Abandon_Recovery_More_Settings_Page;
use PixelioCartAbandonRecoveryMore\Includes\Utils\Pixelio_Cart_Abandon_Recovery_More_Util;

if (!defined('ABSPATH')) exit;
class Pixelio_Cart_Abandon_Recovery_More_Submenu_Service
{
	private mixed $pixelio_wordpress_wrapper;
	/**
	 * @var array|array[]
	 */
	private array $submenu;

	public function __construct($wordpress_wrapper)
	{
		$this->pixelio_wordpress_wrapper = $wordpress_wrapper;
		$this->submenu = array(
			array(
				'page_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html('Rivio - AI Cart Recovery & Marketing Email Automation - Email'),
				'menu_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html('Email Creation & Logs'),
				'menu_slug' => Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug . '-email',
				'callback' => 'pixelio_cart_abandon_recovery_more_all_page',
				'class' => Pixelio_Cart_Abandon_Recovery_More_Email_Creator_Page::class,
			),
			array(
				'page_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html('Rivio - AI Cart Recovery & Marketing Email Automation - Integrations'),
				'menu_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html('Next Integrations Vote'),
				'menu_slug' => Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug . '-integrations',
				'callback' => 'pixelio_cart_abandon_recovery_more_all_page',
				'class' => Pixelio_Cart_Abandon_Recovery_More_Integrations_Page::class,
			),
			array(
				'page_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html('Rivio - AI Cart Recovery & Marketing Email Automation - Settings'),
				'menu_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html('Settings'),
				'menu_slug' => Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug . '-settings',
				'callback' => 'pixelio_cart_abandon_recovery_more_all_page',
				'class' => Pixelio_Cart_Abandon_Recovery_More_Settings_Page::class,
			),
			array(
				'page_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html('Rivio - AI Cart Recovery & Marketing Email Automation - FAQ & Supports'),
				'menu_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html('FAQ & Supports'),
				'menu_slug' => Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug . '-faq',
				'callback' => 'pixelio_cart_abandon_recovery_more_all_page',
				'class' => Pixelio_Cart_Abandon_Recovery_More_Faq_Page::class,
			),array(
				'page_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html(
					'Rivio - AI Cart Recovery & Marketing Email Automation - Consent & GDPR'
				),
				'menu_title' => $this->pixelio_wordpress_wrapper->pixelio_esc_html(
					'Consent & GDPR'
				),
				'menu_slug' => Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug . '-rgpd',
				'callback' => 'pixelio_cart_abandon_recovery_more_all_page',
				'class' => Pixelio_Cart_Abandon_Recovery_More_Rgpd_Page::class,
			),
		);
	}

	public function get_submenu(): array
	{
		return $this->submenu;
	}


}
