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

<ul class="breadcrumber">
    <li><a href="<?= url_to('/') ?>" data-ajax><?= __('Home') ?></a></li>
    <li class="active"><?= __('Banned accounts') ?></li>
</ul>

<div class="box-panel">
    <div class="box-panel-title"><?= __('Accounts') ?></div>
    <div class="box-panel-content">
        <table class="list">
            <thead>
                <tr>
                    <th><?= __('Account') ?></th>
                    <th><?= __('Cause') ?></th>
                    <th><?= __('Block date') ?></th>
                    <th><?= __('Unblock date') ?></th>
                </tr>
            </thead>

            <tbody>
                <?php foreach (account()->getBanneds() as $account): ?>
                    <tr>
                        <td><?= $account['account'] ?></td>
                        <td><?= $account['cause'] ?></td>
                        <td><?= util('Date')->dateTime($account['block_date']) ?></td>
                        <td><?= util('Date')->dateTime($account['unblock_date']) ?></td>
                    </tr>
                <?php endforeach ?>
            </tbody>
        </table>
    </div>
</div>