<?php
/**
 * Apply cost modal settings
 */
?>

<div id="yith-cog-apply-cost-settings-modal-content" class="yith-cog-apply-cost-settings-modal">
	<?php
	$radio = array(
		'id'      => 'yith_cog_apply_cost_radio',
		'name'    => 'yith_cog_apply_cost_radio',
		'type'    => 'radio',
		'options' => array(
			'yith_cog_apply_cost'    => _x( 'Only to orders that do not have a cost yet', '[ADMIN] Radio button description in the import cost modal', 'yith-cost-of-goods-for-woocommerce' ),
			'yith_cog_override_cost' => _x( 'Overriding costs in all the orders', '[ADMIN] Radio button description in the import cost modal', 'yith-cost-of-goods-for-woocommerce' ),
			'yith_cog_order_id_cost' => _x( 'Only to a specific order', '[ADMIN] Radio button description in the import cost modal', 'yith-cost-of-goods-for-woocommerce' ),
		),
		'value'   => 'yith_cog_apply_cost',

	);
	yith_plugin_fw_get_field( $radio, true );

	$text = array(
		'id'                => 'apply_cost_selected_order_input',
		'type'              => 'text',
		'custom_attributes' => 'placeholder="' . _x( 'Enter the order ID here', '[ADMIN] input text placeholder in the button modal', 'yith-cost-of-goods-for-woocommerce' ) . '"',
	);
	yith_plugin_fw_get_field( $text, true );
	?>
	<a class="apply_cost button action primary" id="yith_cog_apply_cost_button" ><?php echo esc_html__( 'Apply Costs', 'yith-cost-of-goods-for-woocommerce' ); ?></a>
</div>
<div class="apply-cost-done">
		<img src="<?php echo YITH_COG_URL . 'assets/images/apply-cost-done.svg'; //phpcs:ignore ?>">
		<p><?php esc_html_e( 'Costs successfully applied', 'yith-cost-of-goods-for-woocommerce' ); ?></p>
		<button class="yith-plugin-fw__button button action primary" id="yith-cog-close-modal"><?php esc_html_e( 'Close', 'yith-cost-of-goods-for-woocommerce' ); ?></button>
</div>
