You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shopping-cart-labels.php 947B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use common\logic\Order\Order\Module\OrderModule;
  3. use yii\helpers\Html;
  4. $orderModule = OrderModule::getInstance();
  5. $index = 0;
  6. ?>
  7. <?php
  8. $i = 0;
  9. foreach($ordersArray as $key => $order):
  10. $index ++;
  11. ?>
  12. <div class="shopping-cart-label">
  13. <div class="inner">
  14. <div class="username">
  15. <?= $orderModule->getOrderUsername($order); ?>
  16. </div>
  17. <div class="point-sale">
  18. <?= date('d/m', strtotime($distribution->date)); ?> &bull;
  19. <?= Html::encode($order->pointSale->name); ?>
  20. </div>
  21. <div class="products">
  22. <?= $orderModule->getCartSummary($order); ?>
  23. </div>
  24. </div>
  25. </div>
  26. <?php if($index == $shoppingCartLabelsPerColumn) {
  27. $index = 0;
  28. } ?>
  29. <?php if($index == 0 && $key !== array_key_last($ordersArray)): ?>
  30. <columnbreak />
  31. <?php endif; ?>
  32. <?php endforeach; ?>