<?php
/**
 * Bought Message Popup Template for Pixelio Cart Abandon Recovery More plugin.
 *
 * This template displays a notification popup showing a recent purchase
 * (e.g., "Someone just bought this product") to encourage urgency and
 * social proof in the WooCommerce cart or checkout page.
 *
 * PHP version 8.0+
 *
 * @package PixelioCartAbandonRecoveryMore
 */

use PixelioCartAbandonRecoveryMore\Includes\Utils\Pixelio_Cart_Abandon_Recovery_More_Util;

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

?>

<div
	class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-message-popup ">

	<div
		class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-message-left-side">
		<img
			class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-message-product-image"
			src="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_url . 'admin/assets/img/pixelio-cart-abandon-recovery-more-product-preview.jpg' ); ?>"
			alt=" <?php esc_html_e( 'Product example', 'rivio-ai-cart-recovery-marketing-email-automation' ); ?>"/>
	</div>
	<div
		class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-message-right">
		<div
			class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-header">
			<h3 class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-product-title"><?php esc_html_e( 'Sapphire Pulse', 'rivio-ai-cart-recovery-marketing-email-automation' ); ?></h3>
		</div>
		<div
			class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-body">
			<p class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-message-product-description"><?php esc_html_e( 'Picked up by ', 'rivio-ai-cart-recovery-marketing-email-automation' ); ?>
				<span> Jan in Las Vegas</span></p>
		</div>
		<div
			class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-footer">
			<p class="<?php echo esc_attr( Pixelio_Cart_Abandon_Recovery_More_Util::$pixelio_plugin_slug ); ?>-bought-message-product-timestamp">
				<span>35 min ago</span>
			</p>
		</div>
	</div>
</div>
