<?php
/**
 * Progress Bar View for Pixelio Cart Abandon Recovery More plugin.
 *
 * This file defines a reusable class for rendering a progress bar
 * in the admin pages or front-end of the Pixelio Cart Abandon Recovery More plugin.
 *
 * PHP version 8.0+
 *
 * @package PixelioCartAbandonRecoveryMore
 */

namespace PixelioCartAbandonRecoveryMore\Admin\Views\Reusable;

use PixelioCartAbandonRecoveryMore\Includes\Utils\Pixelio_Cart_Abandon_Recovery_More_Util;

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

/**
 * Class Pixelio_Cart_Abandon_Recovery_More_Progress_Bar
 *
 * Reusable class for displaying a progress bar with step navigation.
 *
 * @package PixelioCartAbandonRecoveryMore\Admin\Views\Reusable
 */
class Pixelio_Cart_Abandon_Recovery_More_Progress_Bar {

	/**
	 * Constructor.
	 *
	 * Currently does not take any arguments, initialization handled in get_views().
	 */
	public function __construct() {
	}

	/**
	 * Outputs the HTML, CSS, and JS for a step-based progress bar.
	 *
	 * @param int $max_steps The maximum number of steps for the progress bar.
	 * @return void
	 */
	public function pixelio_cart_abandon_recovery_more_get_views( $max_steps ): void {
		?>
		<div class="pixelio-cart-abandon-recovery-more-progress-bar-container" max_step="<?php echo esc_attr($max_steps); ?>">
			<div class="pixelio-cart-abandon-recovery-more-progress-bar">
				<div class="pixelio-cart-abandon-recovery-more-progress-fill" style="width: 0%;"></div>
			</div>
			<span class="pixelio-cart-abandon-recovery-more-progress-text">0%</span>
		</div>

		<?php
	}
}
