<?= partial('rates') ?>

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

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

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