<?php
/**
 * Automation page – router: promotional upsell for free, Pro UI only when Pro build.
 *
 * @package TrustLens\Admin\Views
 * @since 1.0.0
 */

defined( 'ABSPATH' ) || exit;

// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View template; variables are scoped to the including method, not the global namespace.

if ( ! wstl_has_automation() || wstl_is_free_user() ) {
	include TRUSTLENS_PLUGIN_DIR . 'admin/views/automation-upsell.php';
	return;
}

$automation_pro = TRUSTLENS_PLUGIN_DIR . 'admin/views/automation-pro.php';
if ( file_exists( $automation_pro ) ) {
	include $automation_pro;
} else {
	include TRUSTLENS_PLUGIN_DIR . 'admin/views/automation-upsell.php';
}
