|
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
-
- /**
- * @var $block \Magento\Tax\Block\Checkout\Grandtotal
- * @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
- */
- ?>
- <?php
- $style = $block->escapeHtmlAttr($block->getStyle());
- $colspan = (int) $block->getColspan();
- /** @var \Magento\Checkout\Helper\Data $checkoutHelper */
- $checkoutHelper = $block->getData('checkoutHelper');
- ?>
- <?php if ($block->includeTax() && $block->getTotalExclTax() >= 0): ?>
- <tr class="grand totals excl">
- <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
- <strong><?= $block->escapeHtml(__('Grand Total Excl. Tax')) ?></strong>
- </th>
- <td class="amount" data-th="<?= $block->escapeHtmlAttr(__('Grand Total Excl. Tax')) ?>">
- <strong><?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotalExclTax()) ?></strong>
- </td>
- </tr>
- <?php if ($style): ?>
- <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals.excl th.mark') ?>
- <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals.excl td.amount') ?>
- <?php endif; ?>
- <?= /* @noEscape */ $block->renderTotals('taxes', $colspan) ?>
- <tr class="grand totals incl">
- <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
- <strong><?= $block->escapeHtml(__('Grand Total Incl. Tax')) ?></strong>
- </th>
- <td class="amount" data-th="<?= $block->escapeHtmlAttr(__('Grand Total Incl. Tax')) ?>">
- <strong><?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValue()) ?></strong>
- </td>
- </tr>
- <?php if ($style): ?>
- <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals.incl th.mark') ?>
- <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals.incl td.amount') ?>
- <?php endif; ?>
- <?php else: ?>
- <tr class="grand totals">
- <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
- <strong><?= $block->escapeHtml($block->getTotal()->getTitle()) ?></strong>
- </th>
- <td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getTotal()->getTitle()) ?>">
- <strong><?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValue()) ?></strong>
- </td>
- </tr>
- <?php if ($style): ?>
- <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals th.mark') ?>
- <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals td.amount') ?>
- <?php endif; ?>
- <?php endif; ?>
|