<?php
/**
 * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
 */
?>
<?php
    /** @var \Magento\Backend\Block\Template $block */
    /** @var \Temando\Shipping\ViewModel\Shipment\AddOns $viewModel */
    $viewModel = $block->getData('viewModel');
    $addOnsHtml = $viewModel->getAddOnsHtml();
?>

<?php if ($addOnsHtml) : ?>
    <div class="admin__page-section-item order-shipping-addons">
        <div class="admin__page-section-item-title">
            <span class="title"><?= $block->escapeHtml(__('Add-Ons')) ?></span>
        </div>
        <table class="data-table admin__table-secondary order-shipping-addons-table">
            <?= /* @noEscape */ $addOnsHtml ?>
        </table>
    </div>
<?php endif; ?>
