| Current Path : /home/rtorresani/www/vendor/magento/module-tax/view/frontend/templates/checkout/ |
| Current File : //home/rtorresani/www/vendor/magento/module-tax/view/frontend/templates/checkout/shipping.phtml |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var $block \Magento\Tax\Block\Checkout\Shipping
* @see \Magento\Tax\Block\Checkout\Shipping
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
*/
?>
<?php if ($block->displayShipping()): ?>
<?php
$style = $block->escapeHtmlAttr($block->getStyle());
$colspan = (int) $block->getColspan();
/** @var \Magento\Checkout\Helper\Data $checkoutHelper */
$checkoutHelper = $block->getData('checkoutHelper');
?>
<?php if ($block->displayBoth()): ?>
<tr class="totals shipping excl">
<th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
<?= $block->escapeHtml($block->getExcludeTaxLabel()) ?>
</th>
<td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getExcludeTaxLabel()) ?>">
<?= /* @noEscape */ $checkoutHelper->formatPrice($block->getShippingExcludeTax()) ?>
</td>
</tr>
<?php if ($style): ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.shipping.excl th.mark') ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.shipping.excl td.amount') ?>
<?php endif; ?>
<tr class="totals shipping incl">
<th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
<?= $block->escapeHtml($block->getIncludeTaxLabel()) ?>
</th>
<td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getIncludeTaxLabel()) ?>">
<?= /* @noEscape */ $checkoutHelper->formatPrice($block->getShippingIncludeTax()) ?>
</td>
</tr>
<?php if ($style): ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.shipping.incl th.mark') ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.shipping.incl td.amount') ?>
<?php endif; ?>
<?php elseif ($block->displayIncludeTax()): ?>
<tr class="totals shipping incl">
<th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
<?= $block->escapeHtml($block->getTotal()->getTitle()) ?>
</th>
<td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getTotal()->getTitle()) ?>">
<?= /* @noEscape */ $checkoutHelper->formatPrice($block->getShippingIncludeTax()) ?>
</td>
</tr>
<?php if ($style): ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.shipping.incl th.mark') ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.shipping.incl td.amount') ?>
<?php endif; ?>
<?php else: ?>
<tr class="totals shipping excl">
<th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
<?= $block->escapeHtml($block->getTotal()->getTitle()) ?>
</th>
<td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getTotal()->getTitle()) ?>">
<?= /* @noEscape */ $checkoutHelper->formatPrice($block->getShippingExcludeTax()) ?>
</td>
</tr>
<?php if ($style): ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.shipping.excl th.mark') ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.shipping.excl td.amount') ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>