<?php
/**
 * Maho
 *
 * @category    design
 * @package     default_default
 * @copyright   Copyright (c) 2006-2020 Magento, Inc. (https://magento.com)
 * @copyright   Copyright (c) 2021-2024 The OpenMage Contributors (https://openmage.org)
 * @copyright   Copyright (c) 2024 Maho (https://mahocommerce.com)
 * @license     https://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
/**
 * @see Mage_Tax_Block_Checkout_Grandtotal
 * @var Mage_Adminhtml_Block_Sales_Order_Create_Totals_Grandtotal $this
 */
?>
<?php if ($this->includeTax() && $this->getTotalExclTax()>=0):?>
<tr>
    <td style="<?= $this->getStyle() ?>" class="a-right" colspan="<?= $this->getColspan() ?>">
        <strong><?= $this->helper('tax')->__('Grand Total Excl. Tax') ?></strong>
    </td>
    <td style="<?= $this->getStyle() ?>" class="a-right">
        <strong><?= $this->formatPrice($this->getTotalExclTax()) ?></strong>
    </td>
</tr>
<?= $this->renderTotals('taxes', $this->getColspan()) ?>
<tr>
    <td style="<?= $this->getStyle() ?>" class="a-right" colspan="<?= $this->getColspan() ?>">
        <strong><?= $this->helper('tax')->__('Grand Total Incl. Tax') ?></strong>
    </td>
    <td style="<?= $this->getStyle() ?>" class="a-right">
        <strong><?= $this->formatPrice($this->getTotal()->getValue()) ?></strong>
    </td>
</tr>
<?php else: ?>
<tr>
    <td style="<?= $this->getStyle() ?>" class="a-right" colspan="<?= $this->getColspan() ?>">
        <strong><?= $this->getTotal()->getTitle() ?></strong>
    </td>
    <td style="<?= $this->getStyle() ?>" class="a-right">
        <strong><?= $this->formatPrice($this->getTotal()->getValue()) ?></strong>
    </td>
</tr>
<?php endif ?>
