<?php if ($account['blocked']): ?>
    <div class="alert alert-danger">
        <?= __('Your account is banned') ?>

        <?php if ($ban): ?>
            <br /><br />
            <?= __('Reason') ?>: <?= $ban['cause'] ?>. <?= __('Blocked until') ?>: <?= util('Date')->date($ban['unblock_date']) ?>
        <?php endif ?>
    </div>
<?php endif ?>

<div class="box-panel">
    <div class="box-panel-title"><?= __('Infos') ?></div>
    <div class="box-panel-content">
        <table class="list panel">
            <tr>
                <td><?= __('Created at') ?></td>
                <td><?= util('Date')->date($account['createdAt']) ?></td>
            </tr>
            <?php if (config('vip.column_type')): ?>
                <tr>
                    <td><?= __('Account type') ?></td>
                    <td><?= util('Account')->vipName($account['vipType']) ?></td>
                </tr>
                <tr>
                    <td><?= __('Maturity') ?></td>
                    <td><?= util('Date')->date($account['vipExpire']) ?></td>
                </tr>
            <?php endif ?>
            <tr>
                <td><?= __('Credits') ?></td>
                <td><?= util('Number')->currency($account['credit']) ?></td>
            </tr>
            <?php foreach (config('coins', []) as $id => $coin): ?>
                <tr>
                    <td><?= $coin['name'] ?></td>
                    <td><?= util('Number')->format($account['coins'][$coin['id']]) ?></td>
                </tr>
            <?php endforeach ?>
        </table>
    </div>
</div>

<?php notify('accounts.info', $account) ?>