<?php
/**
 * Schedule Order View
 * This template can be overridden by copying it to yourtheme/autoship-cloud/templates/scheduled-orders/order-view-template.php
 *
 * @package Autoship
 * @subpackage Templates
 */

defined( 'ABSPATH' ) || exit;

$skin = apply_filters(
	'autoship_include_scheduled_order_view_order_template_skin',
	array(
		'container' => '',
	)
);

?>

<div class="<?php echo esc_attr( $skin['container'] ); ?> <?php echo apply_filters( 'autoship_view_scheduled_order_template_classes', 'autoship-scheduled-order-template', $autoship_order, $customer_id, $autoship_customer_id, $autoship_order_id ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> ">
	<?php
	/**
	 * Pre Scheduled Order Details view hook.
	 *
	 * @hooked autoship_scheduled_order_header_template_display - 9
	 * @hooked autoship_scheduled_order_schedule_summary_template_display - 10
	 */
	do_action( 'autoship_before_scheduled_order_view', $autoship_order, $customer_id, $autoship_customer_id, $autoship_order_id );
	?>

	<?php
	/**
	 * Scheduled Order Details View hook.
	 *
	 * @hooked autoship_scheduled_order_items_display - 10
	 */
	do_action( 'autoship_scheduled_order_view', $autoship_order, $customer_id, $autoship_customer_id, $autoship_order_id );
	?>

	<?php
	/**
	 * Post Scheduled Order Details View hook.
	 *
	 * @hooked autoship_scheduled_order_payment_method_summary_display - 9
	 * @hooked autoship_scheduled_order_payment_form_display - 10
	 * @hooked autoship_scheduled_order_address_template_display - 11
	 */
	do_action( 'autoship_after_scheduled_order_view', $autoship_order, $customer_id, $autoship_customer_id, $autoship_order_id );
	?>
</div><!-- .autoship-scheduled-order -->
