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

/** @var $block \Magento\Tax\Block\Item\Price\Renderer */

$_item = $block->getItem();
?>
<?php if (($block->displayPriceInclTax() || $block->displayBothPrices()) && !$_item->getNoSubtotal()) : ?>
    <span class="price-including-tax" data-label="<?= $block->escapeHtmlAttr(__('Incl. Tax')) ?>">
        <span class="cart-price">
            <?= /* @noEscape */ $block->formatPrice($_item->getRowTotalInclTax()) ?> *
        </span>
    </span>
<?php endif; ?>

<?php if (($block->displayPriceExclTax() || $block->displayBothPrices()) && !$_item->getNoSubtotal()) : ?>
    <span class="price-excluding-tax" data-label="<?= $block->escapeHtmlAttr(__('Excl. Tax')) ?>">
        <span class="cart-price">
            <?= /* @noEscape */ $block->formatPrice($_item->getRowTotal()) ?>
        </span>
    </span>
<?php endif; ?>
