<?php
/** @var \Magetop\Advancepreview\Block\Adminhtml\Order\PreviewOrderTracking $block */
$itemId = $block->getRequest()->getParam('item_id',0);
//echo $itemId;
$tracking = $block->getOrderTrackingItems($itemId);
?>
<table style="width:100%" class="table-tracking-items">
    <tr>
        <th><?php echo __('Tracking Number'); ?></th>
        <th><?php echo __('Tracking Link'); ?></th>
        <th><?php echo __('Courier company'); ?></th>

    </tr>
    <?php if($tracking && $tracking->getSize() > 0) : ?>
        <?php foreach ($tracking as $item) : ?>
            <tr>
                <td><?php echo $item->getData('tracking_number') ?></td>
                <td><?php echo $item->getData('tracking_link') ?></td>
                <td><?php echo $item->getData('courier_company') ?></td>
            </tr>
        <?php endforeach; ?>

    <?php endif; ?>
</table>
