<?= partial('rates') ?>

<form data-ajax action="<?= url_to('/panel/account/transfer-vip') ?>" class="form" method="post">
    <?= csrf_field() ?>

    <div class="box-panel">
        <div class="box-panel-title"><?= __('Transfer VIP') ?></div>
        <div class="box-panel-content">

            <div class="row">
                <div class="label">
                    <label for="account"><?= __('Account') ?> <span class="required">*</span></label>
                </div>
                <div class="field">
                    <input type="text" id="account" name="account" maxlength="10" style="width:100%" />
                </div>
            </div>
            <div class="row">
                <div class="label">
                    <label for="days"><?= __('Days') ?> <span class="required">*</span></label>
                </div>
                <div class="field">
                    <?php if (!empty($days)): ?>
                        <select name="days" style="width:100%">
                            <option value=""></option>
                            <?php foreach ($days as $id => $value): ?>
                                <option value="<?= $id ?>"><?= $value ?></option>
                            <?php endforeach ?>
                        </select>
                    <?php else: ?>
                        <input type="text" id="days" name="days" style="width:100%" />
                    <?php endif ?>
                </div>
            </div>

        </div>
        <div class="submit">
            <input type="submit" class="btn" value="<?= __('Transfer') ?>">
        </div>
    </div>
</form>