12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- use Magento\Framework\View\Element\Template;
- // @codingStandardsIgnoreFile
- /** @var $block \Magento\Shipping\Block\Tracking\Popup */
- $results = $block->getTrackingInfo();
- ?>
- <div class="page tracking">
- <?php if (!empty($results)): ?>
- <?php foreach ($results as $shipId => $result): ?>
- <?php if ($shipId): ?>
- <div class="order subtitle caption"><?= /* @noEscape */ $block->escapeHtml(__('Shipment #')) . $shipId ?></div>
- <?php endif; ?>
- <?php if (!empty($result)): ?>
- <?php foreach ($result as $counter => $track): ?>
- <div class="table-wrapper">
- <?php
- $shipmentBlockIdentifier = $shipId . '.' . $counter;
- $block->addChild('shipping.tracking.details.' . $shipmentBlockIdentifier, Template::class, [
- 'track' => $track,
- 'template' => 'Magento_Shipping::tracking/details.phtml',
- 'storeSupportEmail' => $block->getStoreSupportEmail()
- ]
- );
- ?>
- <?= /* @noEscape */ $block->getChildHtml('shipping.tracking.details.' . $shipmentBlockIdentifier) ?>
- </div>
- <?php if (is_object($track) && !empty($track->getProgressdetail())): ?>
- <?php
- $block->addChild('shipping.tracking.progress.' . $shipmentBlockIdentifier, Template::class, [
- 'track' => $track,
- 'template' => 'Magento_Shipping::tracking/progress.phtml'
- ]);
- ?>
- <?= /* @noEscape */ $block->getChildHtml('shipping.tracking.progress.' . $shipmentBlockIdentifier) ?>
- <?php endif; ?>
- <?php endforeach; ?>
- <?php else: ?>
- <div class="message info empty">
- <div><?= $block->escapeHtml(__('There is no tracking available for this shipment.')) ?></div>
- </div>
- <?php endif; ?>
- <?php endforeach; ?>
- <?php else: ?>
- <div class="message info empty">
- <div><?= $block->escapeHtml(__('There is no tracking available.')) ?></div>
- </div>
- <?php endif; ?>
- <div class="actions">
- <button type="button"
- title="<?= $block->escapeHtml(__('Close Window')) ?>"
- class="action close"
- onclick="window.close(); window.opener.focus();">
- <span><?= $block->escapeHtml(__('Close Window')) ?></span>
- </button>
- </div>
- </div>
|