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

<?php if (isset($siege)): ?>
    <div class="castle-siege">
        <div class="mark">
            <?php if ($siege['occupy']): ?>
                <?= util('Guild')->logo($siege['guild_owner_mark'], 128) ?>
            <?php endif ?>
        </div>
        <div class="image">
            <img src="<?= util('Character')->avatar($siege['avatar']) ?>" width="68" height="74" />
        </div>

        <img class="siege" src="<?= asset_to('/images/background_siege.png') ?>" />

        <div class="owner"><?= $siege['guild_owner'] ?></div>
        <div class="master"><?= $siege['guild_owner_master'] ?></div>
        <div class="next"><?= __('Next %s', [config('castlesiege.next_confrontation')]) ?></div>
    </div>
<?php endif ?>