<?php
/**
 * Maho
 *
 * @category    design
 * @package     default_default
 * @copyright   Copyright (c) 2006-2020 Magento, Inc. (https://magento.com)
 * @copyright   Copyright (c) 2021-2022 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)
 */
?>
<div class="content-header">
    <table cellspacing="0">
        <tr>
            <td style="<?= $this->getHeaderWidth() ?>"><?= $this->getHeaderHtml() ?></td>
            <td class="form-buttons"><?= $this->getButtonsHtml() ?></td>
        </tr>
    </table>
</div>

<div class="entry-edit">
    <div class="entry-edit">
        <div class="entry-edit-head">
            <h4><?= $this->__('Transaction Data') ?></h4>
        </div>
        <div id="log_details_fieldset" class="log-details">
            <table cellspacing="0" class="log-info table">
                <col width="25%" />
                <col />
                <tbody>
                    <tr>
                        <th><?= $this->__('Transaction ID') ?></th>
                        <td><?= $this->getTxnIdHtml() ?></td>
                    </tr>
                    <tr>
                        <th><?= $this->__('Parent Transaction ID') ?></th>
                        <td>
                            <?php if ($this->getParentTxnIdHtml()): ?>
                                <a href="<?= $this->getParentTxnIdUrlHtml() ?>">
                                    <?= $this->getParentTxnIdHtml() ?>
                                </a>
                            <?php else: ?>
                                <?= $this->__('N/A') ?>
                            <?php endif ?>
                        </td>
                    </tr>
                    <tr>
                        <th><?= $this->__('Order ID') ?></th>
                        <td>
                            <a href="<?= $this->getOrderIdUrlHtml() ?>">
                                <?= $this->getOrderIncrementIdHtml() ?>
                            </a>
                        </td>
                    </tr>
                    <tr>
                        <th><?= $this->__('Transaction Type') ?></th>
                        <td><?= $this->getTxnTypeHtml() ?></td>
                    </tr>
                    <tr>
                        <th><?= $this->__('Is Closed') ?></th>
                        <td><?= $this->getIsClosedHtml() ?></td>
                    </tr>
                    <tr>
                        <th><?= $this->__('Created At') ?></th>
                        <td><?= $this->getCreatedAtHtml() ?></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<div class="entry-edit">
    <div class="entry-edit">
        <div class="entry-edit-head">
            <h4><?= $this->__('Child Transactions') ?></h4>
        </div>
        <div class="log-details-grid">
            <?= $this->getChildHtml('child_grid') ?>
        </div>
    </div>
</div>

<div class="entry-edit">
    <div class="entry-edit">
        <div class="entry-edit-head">
            <h4><?= $this->__('Transaction Details') ?></h4>
        </div>
        <div class="log-details-grid">
            <?= $this->getChildHtml('detail_grid') ?>
        </div>
    </div>
</div>
