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

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

<div class="box-panel">
    <div class="box-panel-title"><?= __('Characters') ?></div>
    <div class="box-panel-content">
        <table class="list">
            <thead>
                <tr>
                    <th><?= __('Character') ?></th>
                    <?php if (plugin_active('Patents')): ?>
                        <th><?= __('Patent') ?></th>
                    <?php endif ?>
                    <th width="80" style="text-align:center"><?= __('Level') ?></th>
                    <?php if (config('columns.resets', false)): ?>
                        <th width="80" style="text-align:center"><?= __('Resets') ?></th>
                    <?php endif ?>
                    <?php if (config('columns.master_resets', false)): ?>
                        <th width="80" style="text-align:center"><?= __('Master Resets') ?></th>
                    <?php endif ?>
                </tr>
            </thead>

            <tbody>
                <?php foreach ($indications as $indication): ?>
                    <tr>
                        <td><?= $indication['name'] ?></td>
                        <?php if (plugin_active('Patents')): ?>
                            <td><?= $indication['patentTitle'] ?></td>
                        <?php endif ?>
                        <td class="text-center"><?= $indication['level'] ?></td>
                        <?php if (config('columns.resets', false)): ?>
                            <td class="text-center"><?= $indication['resets'] ?></td>
                        <?php endif ?>
                        <?php if (config('columns.master_resets', false)): ?>
                            <td class="text-center"><?= $indication['masterResets'] ?></td>
                        <?php endif ?>
                    </tr>
                <?php endforeach ?>
            </tbody>
        </table>
    </div>
</div>