<?php if ($account === null && $character === null && $warehouse === null): ?>
    <div class="callout callout-warning">
        <h4>Ops!</h4>
        <p><?= __('No items found') ?></p>
    </div>
<?php else: ?>
    <div class="callout callout-success">
        <h4>:)</h4>
        <?php if ($account !== null): ?>
            <p><?= __('Item found in the %s warehouse', ['<a data-ajax href="' . admin_url_to('/accounts/edit/' . $account->getUsername()) . '">' . $account->getUsername() . '</a>']) ?></p>
            <a class="btn btn-primary btn-sm" href="<?= admin_url_to('/accounts/warehouse/' . $account->getUsername() . '?serial=' . $serial) ?>" data-load-with-modal data-modal="modal-vault"><?= __('View') ?></a>
        <?php endif ?>

        <?php if ($character !== null): ?>
            <p><?= __('Item found in the %s inventory', ['<a data-ajax href="' . admin_url_to('/characters/edit/' . $character->getName()) . '">' . $character->getName() . '</a>']) ?></p>
        <?php endif ?>

        <?php if ($warehouse !== null): ?>
            <p><?= __('Item found in the %s Ext warehouse', ['<a data-ajax href="' . admin_url_to('/accounts/edit/' . $warehouse->getUsername()) . '">' . $warehouse->getUsername() . '</a>']) ?></p>
            <a class="btn btn-primary btn-sm" href="<?= admin_url_to('/accounts/warehouse/' . $warehouse->getUsername() . '?serial=' . $serial) ?>" data-load-with-modal data-modal="modal-vault"><?= __('View') ?></a>
        <?php endif ?>
    </div>
    <div id="modal-vault" data-width="258" class="modal"></div>
<?php endif ?>
