<div class="box-panel margin-top">
    <div class="box-panel-title"><?= __('Streamer') ?></div>
    <div class="box-panel-content">
        <?php if (empty($request)): ?>
            <a class="btn" data-ajax href="<?= url_to('/streamer/request') ?>"><?= __('Request') ?></a>
        <?php else: ?>
            <table class="list panel">
                <tr>
                    <td><?= __('Your request is') ?></td>
                    <td><?= __($request['status']) ?></td>
                </tr>
                <?php if (!empty($request['link']) && $request['status'] === 'accept'): ?>
                    <tr>
                        <td><?= __('Link for invitation') ?></td>
                        <td><?= url_to('/s-' . $request['link'], true) ?></td>
                    </tr>
                <?php endif ?>

            </table>
        <?php endif ?>
    </div>
</div>
