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

// phpcs:disable Magento2.Files.LineLength, Magento2.Templates.ThisInTemplate

?>
<?php
/**
 * Quote Item row html
 *
 * @see \Magento\Checkout\Block\Cart\Item\Renderer
 */
?>
<?php /** @var $block Magento\Checkout\Block\Cart\Item\Renderer */ ?>
<?php $_item = $block->getItem() ?>
<tr>
    <td class="col item" data-th="<?= $block->escapeHtmlAttr(__('Product Name')) ?>">
        <?= $block->getRenderedBlock()->getItemHtml($_item) ?>
    </td>
    <td class="col price" data-th="<?= $block->escapeHtmlAttr(__('Price')) ?>">
        <?php /* Including Tax */ ?>
            <?php if ($this->helper(Magento\Tax\Helper\Data::class)->displayCartPriceInclTax() || $this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices()) : ?>
                <span class="price-including-tax" data-label="<?= $block->escapeHtmlAttr(__('Incl. Tax')) ?>">
                    <?= $block->getUnitPriceInclTaxHtml($_item) ?>
                </span>
            <?php endif; ?>
        <?php /* end Including Tax */ ?>
        <?php /* Excluding Tax */ ?>
        <?php if ($this->helper(Magento\Tax\Helper\Data::class)->displayCartPriceExclTax() || $this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices()) : ?>
            <span class="price-excluding-tax" data-label="<?= $block->escapeHtmlAttr(__('Excl. Tax')) ?>">
                <?= $block->getUnitPriceExclTaxHtml($_item) ?>
            </span>
        <?php endif; ?>
        <?php /* end Excluding Tax */ ?>
    </td>

    <td class="col qty" data-th="<?= $block->escapeHtmlAttr(__('Qty')) ?>"><?= $_item->getQty() * 1 ?></td>
    <td class="col subtotal" data-th="<?= $block->escapeHtmlAttr(__('Subtotal')) ?>">
    <?php /* Including Tax Subtotal */ ?>
        <?php if ($this->helper(Magento\Tax\Helper\Data::class)->displayCartPriceInclTax() || $this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices()) : ?>
        <span class="price-including-tax" data-label="<?= $block->escapeHtmlAttr(__('Incl. Tax')) ?>">
            <?= $block->getRowTotalInclTaxHtml($_item) ?>
        </span>
        <?php endif; ?>
    <?php /* end Including Tax Subtotal */ ?>
    <?php /* Excluding Tax Subtotal */ ?>
    <?php if ($this->helper(Magento\Tax\Helper\Data::class)->displayCartPriceExclTax() || $this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices()) : ?>
        <span class="price-excluding-tax" data-label="<?= $block->escapeHtmlAttr(__('Excl. Tax')) ?>">
            <?= $block->getRowTotalExclTaxHtml($_item) ?>
        </span>
    <?php endif; ?>
    <?php /* end Excluding Tax Subtotal */ ?>
    </td>
</tr>
