<?php
/**
 * Admin View: Variation Metabox.
 *
 * @package WCPOS\WooCommercePOS
 */

if ( ! \defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Variation metabox POS barcode template.
 *
 * @var \WP_Post $variation
 * @var string $value
 */
?>

<div>
	<p class="form-row form-row-full">
		<label for="variable_pos_barcode[<?php echo esc_attr( (string) $variation->ID ); ?>]">
			<?php esc_html_e( 'POS Barcode', 'woocommerce-pos' ); ?>
			<?php echo wc_help_tip( __( 'Product barcode used at the point of sale', 'woocommerce-pos' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- wc_help_tip() returns escaped HTML. ?>
		</label>
		<input type="text" name="variable_pos_barcode[<?php echo esc_attr( (string) $variation->ID ); ?>]" value="<?php echo esc_attr( $value ); ?>">
	</p>
</div>
