<?= partial('rates') ?>

<form data-ajax action="<?= url_to('/panel/character/' . $character->getName() . '/change-class') ?>" class="form" method="post">
    <?= csrf_field() ?>

    <div class="box-panel">
        <div class="box-panel-title"><?= __('Change class') ?></div>
        <div class="box-panel-content">
            <div class="row">
                <div class="label">
                    <label for="class"><?= __('Class') ?> <span class="required">*</span></label>
                </div>
                <div class="field">
                    <select name="class" id="class" style="width:100%">
                        <option value=""></option>
                        <?php foreach (config('change_class.classes', []) as $class): ?>
                            <option value="<?= $class ?>"><?= config('characters.classes')[$class]['name'] ?></option>
                        <?php endforeach ?>
                    </select>
                </div>
            </div>

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