<h1 class="title"><?= __('Orders') ?></h1>

<ul class="breadcrumber">
    <li><a href="<?= url_to('/') ?>" data-ajax><?= __('Home') ?></a></li>
    <li><a href="<?= url_to('/panel/account/info') ?>" data-ajax><?= __('Panel') ?></a></li>
    <li class="active"><?= __('Orders') ?></li>
</ul>

<?php if (empty($orders)): ?>

<?php else: ?>
    <table class="list">
        <thead>
            <tr>
                <th><?= __('Account') ?></th>
                <th><?= __('Total') ?></th>
                <th><?= __('Cashback') ?></th>
                <th><?= __('When') ?></th>
                <th width="140"><?= __('Status') ?></th>
            </tr>
        </thead>
        <body>
            <?php foreach ($orders as $order): ?>
                <tr>
                    <td><?= $order['username'] ?></td>
                    <td><?= util('Number')->currency($order['total']) ?></td>
                    <td><?= util('Number')->currency($order['cashback']) ?></td>
                    <td><?= util('Date')->date($order['create_date']) ?></td>
                    <td><?= util('Donate.Gateway')->simplePaymentStatus($order['status']) ?></td>
                </tr>
            <?php endforeach ?>
        </body>
    </table>
<?php endif ?>