<?php
/**
 * Theme Get Started / Upsell Page
 *
 * @package NGO_CHARITY_DONATION
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Add theme page to admin menu
 */
add_action( 'admin_menu', 'ngo_charity_donation_add_theme_page' );
function ngo_charity_donation_add_theme_page() {
    add_theme_page(
        __( 'Upgrade to PRO', 'ngo-charity-donation' ),
        __( 'Upgrade to PRO', 'ngo-charity-donation' ),
        'manage_options',
        'ngo-charity-donation-pro',
        'ngo_charity_donation_pro_page_callback'
    );
}

/**
 * Render theme Get Started page
 */
function ngo_charity_donation_pro_page_callback() {
	$ngo_charity_donation_theme_name_clean = strtolower( preg_replace( '#[^a-zA-Z]#', '', wp_get_theme()->get( 'Name' ) ) );
	$ngo_charity_donation_wizard_page_slug = apply_filters( $ngo_charity_donation_theme_name_clean . '_theme_setup_wizard_ngo_charity_donation_page_slug', $ngo_charity_donation_theme_name_clean . '-wizard' );
	$ngo_charity_donation_demo_url         = admin_url( 'themes.php?page=' . $ngo_charity_donation_wizard_page_slug );
	?>
	<div class="wrap ot-pro-wrap">
		<h1><?php esc_html_e( 'Get Started with NGO Charity Donation 🚀', 'ngo-charity-donation' ); ?></h1>

		<div class="ot-pro-hero">
			<div class="hero-content">
				<div class="hero-left">
					<h2><?php esc_html_e( 'Build Your Professional Website Today', 'ngo-charity-donation' ); ?></h2>
					<p class="subtitle"><?php esc_html_e( 'Get access to premium features, advanced layouts, demo import, and priority support', 'ngo-charity-donation' ); ?></p>
					<div class="button-group">
						<a class="button button-hero theme-install" href="<?php echo esc_url( $ngo_charity_donation_demo_url ); ?>">
							<span class="dashicons dashicons-download"></span>
							<?php esc_html_e( 'Demo Import', 'ngo-charity-donation' ); ?>
						</a>
						<a href="<?php echo esc_url( NGO_CHARITY_DONATION_LIVE_DEMO ); ?>" target="_blank" class="button button-hero button-demo">
							<span class="dashicons dashicons-visibility"></span>
							<?php esc_html_e( 'Live Demo', 'ngo-charity-donation' ); ?>
						</a>
						<a href="<?php echo esc_url( NGO_CHARITY_DONATION_BUY_PRO ); ?>" target="_blank" class="button button-primary button-hero button-pro">
							<span class="dashicons dashicons-star-filled"></span>
							<?php esc_html_e( 'Get Pro Theme', 'ngo-charity-donation' ); ?>
						</a>
						<a href="<?php echo esc_url( NGO_CHARITY_DONATION_FREE_DOC ); ?>" target="_blank" class="button button-hero button-docs">
							<span class="dashicons dashicons-book"></span>
							<?php esc_html_e( 'Documentation', 'ngo-charity-donation' ); ?>
						</a>
						<a href="<?php echo esc_url( NGO_CHARITY_DONATION_BUNDLE_LINK ); ?>" target="_blank" class="button button-hero button-bundle">
							<span class="dashicons dashicons-cart"></span>
							<?php esc_html_e( 'WordPress Theme Bundle', 'ngo-charity-donation' ); ?>
						</a>
					</div>
				</div>
				<div class="hero-right">
					<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/screenshot.png" alt="<?php esc_attr_e( 'NGO Charity Donation Theme Screenshot', 'ngo-charity-donation' ); ?>" class="theme-screenshot">
				</div>
			</div>
		</div>

		<div class="ot-pro-features">
			<h2><?php esc_html_e( 'Why Upgrade to Pro?', 'ngo-charity-donation' ); ?></h2>

			<div class="feature-grid">
				<div class="feature-box">
					<span class="dashicons dashicons-layout"></span>
					<h3><?php esc_html_e( 'Different Styling Options', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Choose from multiple color schemes and styling options to match your brand identity.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-admin-customizer"></span>
					<h3><?php esc_html_e( 'Section Reordering Option', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Rearrange homepage sections in any order to best showcase your services.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-editor-table"></span>
					<h3><?php esc_html_e( 'Footer Builder', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Create custom footers with advanced widgets and flexible column layouts.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-art"></span>
					<h3><?php esc_html_e( 'Typography Controls', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Full control over fonts, sizes, and text styling across all sections of your site.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-cart"></span>
					<h3><?php esc_html_e( 'WooCommerce Styling', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Advanced WooCommerce integration with custom product and service page layouts.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-admin-tools"></span>
					<h3><?php esc_html_e( 'Advanced Options', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Access advanced theme settings to achieve greater customization and control.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-performance"></span>
					<h3><?php esc_html_e( 'Performance Optimized', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( '3X faster loading with optimized code, minified assets, and clean markup.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-sos"></span>
					<h3><?php esc_html_e( 'Priority Support', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Get expert help within 24 hours through our dedicated priority support system.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-admin-appearance"></span>
					<h3><?php esc_html_e( 'Unlimited Color Schemes', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Customize every color to match your brand identity with unlimited color options.', 'ngo-charity-donation' ); ?></p>
				</div>

				<div class="feature-box">
					<span class="dashicons dashicons-download"></span>
					<h3><?php esc_html_e( 'One-Click Demo Import', 'ngo-charity-donation' ); ?></h3>
					<p><?php esc_html_e( 'Import the complete demo content with one click and get your site ready instantly.', 'ngo-charity-donation' ); ?></p>
				</div>
			</div>
		</div>

		<div class="ot-pro-comparison">
			<h2><?php esc_html_e( 'Free vs Pro Comparison', 'ngo-charity-donation' ); ?></h2>

			<table class="comparison-table">
				<thead>
					<tr>
						<th><?php esc_html_e( 'Feature', 'ngo-charity-donation' ); ?></th>
						<th><?php esc_html_e( 'Free', 'ngo-charity-donation' ); ?></th>
						<th class="pro-col"><?php esc_html_e( 'Pro', 'ngo-charity-donation' ); ?></th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td><?php esc_html_e( 'WordPress Customizer Support', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Demo Importer', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Responsive Design', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Color Options', 'ngo-charity-donation' ); ?></td>
						<td><?php esc_html_e( 'Limited', 'ngo-charity-donation' ); ?></td>
						<td class="pro-col"><?php esc_html_e( 'Unlimited', 'ngo-charity-donation' ); ?></td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Typography Controls (Heading &amp; Body Font)', 'ngo-charity-donation' ); ?></td>
						<td><?php esc_html_e( 'Basic', 'ngo-charity-donation' ); ?></td>
						<td class="pro-col"><?php esc_html_e( 'Advanced', 'ngo-charity-donation' ); ?></td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Sticky Header', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Preloader / Loader', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Scroll-to-Top Button', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Homepage Slider Section', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Social Media Links', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'WooCommerce Support', 'ngo-charity-donation' ); ?></td>
						<td><?php esc_html_e( 'Basic', 'ngo-charity-donation' ); ?></td>
						<td class="pro-col"><?php esc_html_e( 'Advanced Styling', 'ngo-charity-donation' ); ?></td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Section Reordering', 'ngo-charity-donation' ); ?></td>
						<td>&#10060;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Boxed / Full-Width Layout', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Left / Right Sidebar', 'ngo-charity-donation' ); ?></td>
						<td>&#9989;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
					<tr>
						<td><?php esc_html_e( 'Priority Support', 'ngo-charity-donation' ); ?></td>
						<td>&#10060;</td>
						<td class="pro-col">&#9989;</td>
					</tr>
				</tbody>
			</table>
		</div>

		<div class="ot-pro-testimonials">
			<h2><?php esc_html_e( 'What Our Users Say', 'ngo-charity-donation' ); ?></h2>

			<div class="testimonial-grid">
				<div class="testimonial-box">
					<div class="stars">&#11088;&#11088;&#11088;&#11088;&#11088;</div>
					<p><?php esc_html_e( '"I was looking for a clean and professional theme for my business and this theme delivered exactly that. Setup was quick and the layout looks very modern."', 'ngo-charity-donation' ); ?></p>
					<span class="author"><?php esc_html_e( '- John D.', 'ngo-charity-donation' ); ?></span>
				</div>

				<div class="testimonial-box">
					<div class="stars">&#11088;&#11088;&#11088;&#11088;</div>
					<p><?php esc_html_e( '"The theme design is professional and easy to customize. The documentation helped me set up my NGO Charity Donation website without any issues."', 'ngo-charity-donation' ); ?></p>
					<span class="author"><?php esc_html_e( '- Sarah M.', 'ngo-charity-donation' ); ?></span>
				</div>

				<div class="testimonial-box">
					<div class="stars">&#11088;&#11088;&#11088;&#11088;&#11088;</div>
					<p><?php esc_html_e( '"Very flexible and beginner-friendly. I was able to adjust colors, sections, and layouts directly from the Customizer. Highly recommended."', 'ngo-charity-donation' ); ?></p>
					<span class="author"><?php esc_html_e( '- Michael R.', 'ngo-charity-donation' ); ?></span>
				</div>

				<div class="testimonial-box">
					<div class="stars">&#11088;&#11088;&#11088;&#11088;</div>
					<p><?php esc_html_e( '"The mobile responsive design works perfectly. Most of my clients visit from their phones, and the site looks clean and professional."', 'ngo-charity-donation' ); ?></p>
					<span class="author"><?php esc_html_e( '- Emily T.', 'ngo-charity-donation' ); ?></span>
				</div>

				<div class="testimonial-box">
					<div class="stars">&#11088;&#11088;&#11088;&#11088;&#11088;</div>
					<p><?php esc_html_e( '"Great theme for professionals. The service sections and homepage layout helped me present my services clearly to potential clients."', 'ngo-charity-donation' ); ?></p>
					<span class="author"><?php esc_html_e( '- David L.', 'ngo-charity-donation' ); ?></span>
				</div>

				<div class="testimonial-box">
					<div class="stars">&#11088;&#11088;&#11088;&#11088;</div>
					<p><?php esc_html_e( '"Customer support is very helpful and responsive. They guided me during setup and solved my issue quickly."', 'ngo-charity-donation' ); ?></p>
					<span class="author"><?php esc_html_e( '- Jennifer K.', 'ngo-charity-donation' ); ?></span>
				</div>

				<div class="testimonial-box">
					<div class="stars">&#11088;&#11088;&#11088;&#11088;&#11088;</div>
					<p><?php esc_html_e( '"Fast loading and SEO friendly. After launching my website with this theme, I started receiving more inquiries from clients."', 'ngo-charity-donation' ); ?></p>
					<span class="author"><?php esc_html_e( '- Robert H.', 'ngo-charity-donation' ); ?></span>
				</div>

				<div class="testimonial-box">
					<div class="stars">&#11088;&#11088;&#11088;&#11088;</div>
					<p><?php esc_html_e( '"A very good theme with useful features for NGO Charity Donation businesses. Easy to install and the demo import was a real time-saver."', 'ngo-charity-donation' ); ?></p>
					<span class="author"><?php esc_html_e( '- Lisa P.', 'ngo-charity-donation' ); ?></span>
				</div>
			</div>
		</div>

		<div class="ot-pro-cta">
			<h2><?php esc_html_e( 'Ready to Upgrade?', 'ngo-charity-donation' ); ?></h2>
			<p><?php esc_html_e( 'Join hundreds of satisfied customers who upgraded to Pro', 'ngo-charity-donation' ); ?></p>
			<?php
			$ngo_charity_donation_theme = wp_get_theme();
			$ngo_charity_donation_theme_name = $ngo_charity_donation_theme->get( 'Name' );
			?>

			<a href="<?php echo esc_url( NGO_CHARITY_DONATION_BUY_PRO ); ?>" target="_blank" class="button button-primary button-hero">
				<?php echo esc_html( sprintf( __( 'Get %s Pro Now', 'ngo-charity-donation' ), $ngo_charity_donation_theme_name ) ); ?> &rarr;
			</a>
		</div>

		<div class="ot-pro-footer">
			<p>
				<?php
				printf(
					/* translators: %s: Support URL */
					__( 'Need help? Contact our <a href="%s" target="_blank">support</a> team anytime.', 'ngo-charity-donation' ),
					esc_url( NGO_CHARITY_DONATION_SUPPORT )
				);
				?>
			</p>
		</div>
	</div>
	<?php
}
