| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- /**
- * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
- */
- ?>
- <?php
- /** @var \Magento\Shipping\Block\Adminhtml\View\Items $block */
- /** @var \Temando\Shipping\ViewModel\Shipment\ShipmentDetails $viewModel */
- $viewModel = $block->getData('viewModel');
- /** @var \Temando\Shipping\Model\Shipment\PackageItemInterface[] $shipmentItems */
- $shipmentItems = $viewModel->getItems();
- ?>
- <section class="admin__page-section">
- <div class="admin__table-wrapper shipment-items">
- <?php if (!empty($shipmentItems)) : ?>
- <table class="data-table admin__table-primary items">
- <thead>
- <tr class="headings">
- <th class="col-product"><span><?= $block->escapeHtml(__('Sku')) ?></span></th>
- <th class="col-product"><span><?= $block->escapeHtml(__('Qty Shipped')) ?></span></th>
- <th class="col-product"><span><?= $block->escapeHtml(__('Description')) ?></span></th>
- <th class="col-product"><span><?= $block->escapeHtml(__('HS Code')) ?></span></th>
- <th class="col-product"><span><?= $block->escapeHtml(__('Weight')) ?></span></th>
- <th class="col-product"><span><?= $block->escapeHtml(__('Country of Manufacture')) ?></span></th>
- <th class="col-product"><span><?= $block->escapeHtml(__('Country of Origin')) ?></span></th>
- <th class="col-product"><span><?= $block->escapeHtml(__('Declared value')) ?></span></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($shipmentItems as $shipmentItem) : ?>
- <tr class="item-head">
- <td><?= $block->escapeHtml($shipmentItem->getSku()) ?></td>
- <td><?= $block->escapeHtml($shipmentItem->getQty()) ?></td>
- <td><?= $block->escapeHtml($shipmentItem->getDescription()) ?></td>
- <td><?= $block->escapeHtml($shipmentItem->getHsCode()) ?></td>
- <td><?= $block->escapeHtml($shipmentItem->getWeight()) ?></td>
- <td><?= $block->escapeHtml($shipmentItem->getCountryOfManufacture()) ?></td>
- <td><?= $block->escapeHtml($shipmentItem->getCountryOfOrigin()) ?></td>
- <td><?= $block->escapeHtml($shipmentItem->getMonetaryValue()) ?></td>
- </tr>
- <tr class="items-foot">
- <td colspan="9"></td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- <?php else : ?>
- <?= $block->escapeHtml(__('Item details are not available for this shipment.')) ?>
- <?php endif; ?>
- </div>
- </section>
|