unit.phtml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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->getUnitPriceExclTaxHtml() ?>
  20. <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item)): ?>
  21. <br />
  22. <?php if ($block->displayPriceWithWeeeDetails()): ?>
  23. <small>
  24. <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item) as $tax): ?>
  25. <span class="nobr"><?= /* @escapeNotVerified */ $tax['title'] ?>: <?= /* @escapeNotVerified */ $block->displayPrices($tax['base_amount'], $tax['amount']) ?></span>
  26. <?php endforeach; ?>
  27. </small>
  28. <?php endif; ?>
  29. <?php if ($block->displayFinalPrice()): ?>
  30. <br />
  31. <span class="nobr"><?= /* @escapeNotVerified */ __('Total') ?>:<br />
  32. <?= $block->getFinalUnitPriceExclTaxHtml() ?>
  33. </span>
  34. <?php endif; ?>
  35. <?php endif; ?>
  36. </div>
  37. <?php endif; ?>
  38. <?php if ($block->displayBothPrices() || $block->displayPriceInclTax()): ?>
  39. <div class="price-incl-tax">
  40. <?php if ($block->displayBothPrices()): ?>
  41. <span class="label"><?= /* @escapeNotVerified */ __('Incl. Tax') ?>:</span>
  42. <?php endif; ?>
  43. <?= $block->getUnitPriceInclTaxHtml() ?>
  44. <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item)): ?>
  45. <br />
  46. <?php if ($block->displayPriceWithWeeeDetails()): ?>
  47. <small>
  48. <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item) as $tax): ?>
  49. <span class="nobr"><?= /* @escapeNotVerified */ $tax['title'] ?>: <?= /* @escapeNotVerified */ $block->displayPrices($tax['base_amount_incl_tax'], $tax['amount_incl_tax']) ?></span>
  50. <?php endforeach; ?>
  51. </small>
  52. <?php endif; ?>
  53. <?php if ($block->displayFinalPrice()): ?>
  54. <br />
  55. <span class="nobr"><?= /* @escapeNotVerified */ __('Total') ?>:<br />
  56. <?= $block->getFinalUnitPriceInclTaxHtml() ?>
  57. </span>
  58. <?php endif; ?>
  59. <?php endif; ?>
  60. </div>
  61. <?php endif; ?>