<?php
/**
 * Copyright 2014 Adobe
 * All Rights Reserved.
 */
/** @var $escaper \Magento\Framework\Escaper */
?>
<?php if ($item = $block->getItem()): ?>
    <table class="qty-table">
        <tr>
            <th><?= $escaper->escapeHtml(__('Ordered')); ?></th>
            <td><?= (float) $item->getQtyOrdered() ?></td>
        </tr>

        <?php if ((float)$item->getQtyBackordered()): ?>
            <tr>
                <th><?= $escaper->escapeHtml(__('Backordered')); ?></th>
                <td><?= (float) $item->getQtyBackordered() ?></td>
            </tr>
        <?php endif; ?>

        <?php if ((float)$item->getQtyInvoiced()): ?>
            <tr>
                <th><?= $escaper->escapeHtml(__('Invoiced')); ?></th>
                <td><?= (float) $item->getQtyInvoiced() ?></td>
            </tr>
        <?php endif; ?>

        <?php if ((float)$item->getQtyShipped()): ?>
            <tr>
                <th><?= $escaper->escapeHtml(__('Shipped')); ?></th>
                <td><?= (float) $item->getQtyShipped() ?></td>
            </tr>
        <?php endif; ?>

        <?php if ((float)$item->getQtyRefunded()): ?>
            <tr>
                <th><?= $escaper->escapeHtml(__('Refunded')); ?></th>
                <td><?= (float) $item->getQtyRefunded() ?></td>
            </tr>
        <?php endif; ?>

        <?php if ((float)$item->getQtyCanceled()): ?>
            <tr>
                <th><?= $escaper->escapeHtml(__('Canceled')); ?></th>
                <td><?= (float) $item->getQtyCanceled() ?></td>
            </tr>
        <?php endif; ?>

    </table>
<?php endif; ?>
