<div class="box-panel">
    <div class="box-panel-title"><?= __('My payment confirmations') ?></div>
    <div class="box-panel-content">
        <table class="list">
            <thead>
            <tr>
                <th width="40"><?= __('ID') ?></th>
                <th><?= __('Date') ?></th>
                <th><?= __('Value') ?></th>
                <th width="50"><?= __('Status') ?></th>
            </tr>
            </thead>

            <tbody>
                <?php foreach ($confirmations as $confirmation): ?>
                    <tr>
                        <td><a data-ajax href="<?= url_to('/orders/payment-confirmations/' . $confirmation['id']) ?>">#<?= $confirmation['id'] ?></a></td>
                        <td><?= util('Date')->date($confirmation['create_date']) ?></td>
                        <td><?= util('Number')->currency($confirmation['value']) ?></td>
                        <td><?= util('Donate.PaymentConfirmation')->paymentStatus($confirmation['status']) ?></td>
                    </tr>
                <?php endforeach ?>
            </tbody>
        </table>
    </div>
</div>

<div style="margin-top:10px">
    <a data-ajax href="<?= url_to('/orders/payment-confirmations/add') ?>" class="btn"><?= __('New payment confirmation') ?></a>
</div>
