<section class="content-header">
    <h1><?= __('Rebuild master skill settings') ?></h1>
</section>

<section class="content">

    <div class="box box-default">
        <form data-ajax class="form-focus" action="<?= admin_url_to('/configs/rebuild-master-skill') ?>" method="post">
            <?= csrf_field() ?>

            <div class="box-body">
                <div class="section">
                    <div class="row">
                        <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                            <h5><?= __('Settings') ?></h5>
                        </div>

                        <div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
                            <div class="row">
                                <div class="col-md-3">
                                    <div class="form-group">
                                        <label class="control-label" for="mr-mode"><?= __('Mode') ?></span></label>
                                        <select class="form-control" id="mr-mode" name="mode">
                                            <option<?= config('master_skill.mode', 2) == 1 ? ' selected' : '' ?> value="1"><?= __('Clear') ?></option>
                                            <option<?= config('master_skill.mode', 2) == 2 ? ' selected' : '' ?> value="2"><?= __('Reset') ?></option>
                                        </select>
                                    </div>
                                </div>

                                <div class="col-md-3">
                                    <div class="form-group">
                                        <label class="control-label" for="mr-points-per-level"><?= __('Points per level') ?></span></label>
                                        <input class="form-control" id="mr-points-per-level" value="<?= config('master_skill.points_per_level', 1) ?>" name="points_per_level" />
                                    </div>
                                </div>

                                <div class="col-md-3">
                                    <div class="form-group">
                                        <label class="control-label" for="mr-clear-level"><?= __('Clear level') ?></span></label>
                                        <div>
                                            <input class="form-control toggle" type="checkbox" id="mr-clear-level"<?= config('master_skill.clear_level') ? 'checked="checked"' : '' ?> value="1" name="clear_level" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="box-footer">
                <div class="row">
                    <div class="col-sm-offset-3" style="padding-left:15px">
                        <input type="submit" class="btn btn-primary" value="<?= __('Save') ?>" />
                    </div>
                </div>
            </div>
        </form>
    </div>
</section>