row.phtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <?php
  9. /** @var \Magento\Weee\Block\Adminhtml\Items\Price\Renderer $block */
  10. /** @var $_weeeHelper \Magento\Weee\Helper\Data */
  11. $_weeeHelper = $this->helper('Magento\Weee\Helper\Data');
  12. $_item = $block->getItem();
  13. ?>
  14. <?php if ($block->displayBothPrices() || $block->displayPriceExclTax()): ?>
  15. <div class="price-excl-tax">
  16. <?php if ($block->displayBothPrices()): ?>
  17. <span class="label"><?= /* @escapeNotVerified */ __('Excl. Tax') ?>:</span>
  18. <?php endif; ?>
  19. <?= $block->getRowPriceExclTaxHtml() ?>
  20. <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item)): ?>
  21. <?php if ($block->displayPriceWithWeeeDetails()): ?>
  22. <small>
  23. <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item) as $tax): ?>
  24. <span class="nobr"><?= /* @escapeNotVerified */ $tax['title'] ?>: <?= /* @escapeNotVerified */ $block->displayPrices($tax['base_row_amount'], $tax['row_amount']) ?></span>
  25. <?php endforeach; ?>
  26. </small>
  27. <?php endif; ?>
  28. <?php if ($block->displayFinalPrice()): ?>
  29. <br />
  30. <span class="nobr"><?= /* @escapeNotVerified */ __('Total') ?>:<br />
  31. <?= $block->getFinalRowPriceExclTaxHtml() ?>
  32. </span>
  33. <?php endif; ?>
  34. <?php endif; ?>
  35. </div>
  36. <?php endif; ?>
  37. <?php if ($block->displayBothPrices() || $block->displayPriceInclTax()): ?>
  38. <div class="price-incl-tax">
  39. <?php if ($block->displayBothPrices()): ?>
  40. <span class="label"><?= /* @escapeNotVerified */ __('Incl. Tax') ?>:</span>
  41. <?php endif; ?>
  42. <?= $block->getRowPriceInclTaxHtml() ?>
  43. <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item)): ?>
  44. <br />
  45. <?php if ($block->displayPriceWithWeeeDetails()): ?>
  46. <small>
  47. <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item) as $tax): ?>
  48. <span class="nobr"><?= /* @escapeNotVerified */ $tax['title'] ?>: <?= /* @escapeNotVerified */ $block->displayPrices($tax['base_row_amount_incl_tax'], $tax['row_amount_incl_tax']) ?></span>
  49. <?php endforeach; ?>
  50. </small>
  51. <?php endif; ?>
  52. <?php if ($block->displayFinalPrice()): ?>
  53. <br />
  54. <span class="nobr"><?= /* @escapeNotVerified */ __('Total') ?>:<br />
  55. <?= $block->getFinalRowPriceInclTaxHtml() ?>
  56. </span>
  57. <?php endif; ?>
  58. <?php endif; ?>
  59. </div>
  60. <?php endif; ?>