- <?php
-
- use common\logic\Order\Order\Module\OrderModule;
- use yii\helpers\Html;
-
- $orderModule = OrderModule::getInstance();
- $index = 0;
-
- ?>
- <?php
- $i = 0;
- foreach($ordersArray as $key => $order):
- $index ++;
- ?>
- <div class="shopping-cart-label">
- <div class="inner">
- <div class="username">
- <?= $orderModule->getOrderUsername($order); ?>
- </div>
- <div class="point-sale">
- <?= date('d/m', strtotime($distribution->date)); ?> •
- <?= Html::encode($order->pointSale->name); ?>
- </div>
- <div class="products">
- <?= $orderModule->getCartSummary($order); ?>
- </div>
- </div>
- </div>
- <?php if($index == $shoppingCartLabelsPerColumn) {
- $index = 0;
- } ?>
- <?php if($index == 0 && $key !== array_key_last($ordersArray)): ?>
- <columnbreak />
- <?php endif; ?>
- <?php endforeach; ?>
|