import(common.tpl)
import(pagination.tpl)

[data-v-orders] [data-v-order]|deleteAllButFirstChild

[data-v-orders]  [data-v-order]|before = <?php
if(isset($this->orders) && is_array($this->orders)) {
	//$pagination = $this->orders[$_orders_idx]['pagination'];
	foreach ($this->orders as $index => $order) {?>
    
    [data-v-orders] [data-v-order] [data-v-order-url]|href = <?php echo Vvveb\url(['module' => 'order/order', 'order_id' => $order['order_id']]);?>
    [data-v-orders] [data-v-order] [data-v-delete-url]|href = <?php echo Vvveb\url(['module' => 'order/orders', 'action' => 'delete', 'order_id[]' => $order['order_id']]);?>
	
	[data-v-orders] [data-v-order] [data-v-*]|innerText = $order['@@__data-v-(*)__@@']
	[data-v-orders] [data-v-order] input[data-v-*]|value = $order['@@__data-v-(*)__@@']
	
	[data-v-orders] [data-v-order] .badge[data-v-order_status]|addClass = <?php echo $order['class'] ?? '';?>
	[data-v-orders] [data-v-order] .badge[data-v-payment_status]|addClass = <?php echo $order['payment_class'] ?? '';?>
	[data-v-orders] [data-v-order] .badge[data-v-shipping_status]|addClass = <?php echo $order['shipping_class'] ?? '';?>

	[data-v-orders] [data-v-order]|after = <?php 
	} 
}?>

import(filters.tpl)


