<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @deprecated
$totals = $block->getTotals();
?>
<?php if ($totals && count($totals) > 0) : ?>
<table class="items-to-invoice">
    <tr>
    <?php foreach ($totals as $total) : ?>
        <td <?php if ($total['grand']) :
            ?>class="grand-total"<?php
            endif; ?>>
            <?= $block->escapeHtml($total['label']) ?><br />
            <?= $block->escapeHtml($total['value']) ?>
        </td>
    <?php endforeach; ?>
    </tr>
</table>
<?php endif; ?>
