<?php
/**
 * Guide latéral — migration PHP.
 *
 * @package PCC
 * @license GPL-2.0-or-later
 */

defined( 'ABSPATH' ) || exit;

$plugin = PCC_Plugin::instance();
?>
<aside class="pcc-aside-column" aria-label="<?php esc_attr_e( 'Migration checklist', 'php-compatibility-checker-by-volade' ); ?>">
	<div class="pcc-guide">
		<div class="pcc-guide-header">
			<h2><?php esc_html_e( 'PHP upgrade checklist', 'php-compatibility-checker-by-volade' ); ?></h2>
			<p><?php esc_html_e( 'A safe path from scan to production.', 'php-compatibility-checker-by-volade' ); ?></p>
		</div>

		<div class="pcc-guide-cards">
			<article class="pcc-guide-card">
				<span class="pcc-guide-icon" aria-hidden="true">📋</span>
				<div>
					<h3><?php esc_html_e( 'Backup first', 'php-compatibility-checker-by-volade' ); ?></h3>
					<p><?php esc_html_e( 'Full site + database backup before any PHP switch in hosting panel.', 'php-compatibility-checker-by-volade' ); ?></p>
				</div>
			</article>
			<article class="pcc-guide-card">
				<span class="pcc-guide-icon" aria-hidden="true">🔍</span>
				<div>
					<h3><?php esc_html_e( 'Scan active stack', 'php-compatibility-checker-by-volade' ); ?></h3>
					<p><?php esc_html_e( 'Fix all errors in active plugins and theme — warnings can follow after go-live.', 'php-compatibility-checker-by-volade' ); ?></p>
				</div>
			</article>
			<article class="pcc-guide-card">
				<span class="pcc-guide-icon" aria-hidden="true">🧪</span>
				<div>
					<h3><?php esc_html_e( 'Staging test', 'php-compatibility-checker-by-volade' ); ?></h3>
					<p><?php esc_html_e( 'Match target PHP on staging: checkout, forms, admin, cron, and REST endpoints.', 'php-compatibility-checker-by-volade' ); ?></p>
				</div>
			</article>
			<article class="pcc-guide-card">
				<span class="pcc-guide-icon" aria-hidden="true">⬆️</span>
				<div>
					<h3><?php esc_html_e( 'Switch PHP', 'php-compatibility-checker-by-volade' ); ?></h3>
					<p><?php esc_html_e( 'Change version in hosting panel, then re-scan to catch environment-specific issues.', 'php-compatibility-checker-by-volade' ); ?></p>
				</div>
			</article>
			<article class="pcc-guide-card">
				<span class="pcc-guide-icon" aria-hidden="true">📊</span>
				<div>
					<h3><?php esc_html_e( 'Monitor runtime', 'php-compatibility-checker-by-volade' ); ?></h3>
					<p><?php esc_html_e( 'Runtime deprecations table catches WordPress hooks without enabling WP_DEBUG.', 'php-compatibility-checker-by-volade' ); ?></p>
				</div>
			</article>
		</div>

		<div class="pcc-guide-compare">
			<span class="pcc-guide-compare-label"><?php esc_html_e( 'Volade V+ Premium', 'php-compatibility-checker-by-volade' ); ?></span>
			<p><?php esc_html_e( 'All PHP targets, scan history, CSV export, scheduled scans, and false-positive whitelist — for agencies and CI.', 'php-compatibility-checker-by-volade' ); ?></p>
		</div>
	</div>

	<?php if ( $plugin->volade && method_exists( $plugin->volade, 'render_plugin_sidebar' ) ) : ?>
		<div class="pcc-volade-sidebar">
			<?php $plugin->volade->render_plugin_sidebar(); ?>
		</div>
	<?php endif; ?>
</aside>
