<?php
/**
 * Other Settings Section
 *
 * This file renders the "Other Settings" section in the Pixelio Cart Abandon Recovery More plugin.
 * It includes GDPR consent options, Google MAP API key, Smart Shopping Insights, and user exclusion settings.
 *
 * @package PixelioCartAbandonRecoveryMore\Admin\Views
 */

use PixelioCartAbandonRecoveryMore\Includes\Utils\Pixelio_Cart_Abandon_Recovery_More_Util;
use PixelioCartAbandonRecoveryMore\Admin\Views\Reusable\Pixelio_Cart_Abandon_Recovery_More_Checkbox;
use PixelioCartAbandonRecoveryMore\Admin\Views\Reusable\Pixelio_Cart_Abandon_Recovery_More_Input_Text;
use PixelioCartAbandonRecoveryMore\Admin\Views\Reusable\Pixelio_Cart_Abandon_Recovery_More_Section_Title;

if ( ! defined( 'ABSPATH' ) ) exit;
?>

<div class="pixelio-cart-abandon-recovery-more-page-section">
	<?php
	$pixelio_cart_abandon_recovery_more_gdpr_title_section = new Pixelio_Cart_Abandon_Recovery_More_Section_Title( esc_html( __( 'Experimental settings', 'rivio-ai-cart-recovery-marketing-email-automation' ) ) );
	$pixelio_cart_abandon_recovery_more_gdpr_title_section->pixelio_cart_abandon_recovery_more_get_views();

	$pixelio_cart_abandon_recovery_more_first_two_checkbox_array = array(
		'track' => array(
			'label'       => esc_html( __( 'Enable Smart Shopping Insights (Beta – Feature in Development)', 'rivio-ai-cart-recovery-marketing-email-automation' ) ),
			'description' => esc_html(
				__(
					'By enabling this option, the plugin will analyze product relationships through user behavior without collecting personal data.
This upcoming feature will help build smart upsells and recommendations to increase average cart value.',
					'rivio-ai-cart-recovery-marketing-email-automation'
				)
			),
			'name'        => 'pixelio-cart-abandon-recovery-more-recommandation-checkbox',
			'pro'         => false,
			'preview'     => false,
			'edit'        => false,
		),
	);
	foreach ( $pixelio_cart_abandon_recovery_more_first_two_checkbox_array as $pixelio_cart_abandon_recovery_more_key => $pixelio_cart_abandon_recovery_more_value ) {
		$pixelio_cart_abandon_recovery_more_checkbox = new Pixelio_Cart_Abandon_Recovery_More_Checkbox( $pixelio_cart_abandon_recovery_more_value['label'], $pixelio_cart_abandon_recovery_more_value['description'], $pixelio_cart_abandon_recovery_more_value['name'], $pixelio_cart_abandon_recovery_more_value['pro'] );
		$pixelio_cart_abandon_recovery_more_checkbox->pixelio_cart_abandon_recovery_more_get_views();
		$pixelio_cart_abandon_recovery_more_saved_settings[] = $pixelio_cart_abandon_recovery_more_checkbox->get_saved_value();
	}

	?>
</div>
