<?php
/**
 * Sidebar — Premium upsell box.
 * Variable: $boxes (SidebarBoxes instance)
 *
 * @package Relatedly
 * @since   2.0.0
 * @since   2.3.0 Rebuilt with the current admin sidebar layout.
 */

defined( 'ABSPATH' ) || exit;

use Relatedly\Premium\LicenseManager;

if ( ! $boxes->show_premium_box() ) {
	return;
}

$upgrade_url = LicenseManager::checkout_url();
?>
<div class="relatedly-admin-sidebar-box relatedly-premium-box relatedly-sidebar-box" id="relatedly-premium-box">
	<h3>
		<span class="dashicons dashicons-star-filled" aria-hidden="true"></span>
		<?php esc_html_e( 'Upgrade to Pro', 'relatedly' ); ?>
	</h3>
	<p><?php esc_html_e( 'Unlock powerful features to skyrocket your pageviews and keep visitors engaged longer.', 'relatedly' ); ?></p>
	<ul class="relatedly-feature-list">
		<li><?php esc_html_e( 'Custom Post Types Support', 'relatedly' ); ?></li>
		<li><?php esc_html_e( 'Floating Sidebar Widget', 'relatedly' ); ?></li>
		<li><?php esc_html_e( 'Advanced Analytics & Reports', 'relatedly' ); ?></li>
		<li><?php esc_html_e( 'Email Reports', 'relatedly' ); ?></li>
		<li><?php esc_html_e( 'Manual Post Curation', 'relatedly' ); ?></li>
		<li><?php esc_html_e( 'Priority Support', 'relatedly' ); ?></li>
	</ul>
	<p>
		<a href="<?php echo esc_url( $upgrade_url ); ?>" target="_blank" rel="noopener noreferrer" class="button">
			<?php esc_html_e( 'View Pricing', 'relatedly' ); ?>
		</a>
	</p>
</div>
