<section class="content-header">
    <h1><?= __('Add reward') ?></h1>

    <div class="actions">
        <a data-ajax class="btn btn-default btn-sm" href="<?= admin_url_to('/achievements/rewards?achievement_id=' . $achievement['id']) ?>"><?= __('List') ?></a>
    </div>
</section>

<section class="content">
    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li><a data-ajax href="<?= admin_url_to('/achievements/edit/' . $achievement['id']) ?>"><?= __('Achievement') ?></a></li>
            <li><a data-ajax href="<?= admin_url_to('/achievements/requirements?achievement_id=' . $achievement['id']) ?>"><?= __('Requirements') ?></a></li>
            <li class="active"><a href="#"><?= __('Rewards') ?></a></li>
        </ul>
        <div class="tab-content" style="padding:0">
            <form data-ajax class="form-focus" action="<?= admin_url_to('/achievements/rewards/add?achievement_id=' . $achievement['id']) ?>" 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><?= __('Reward') ?></h5>
                            </div>

                            <div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
                                <div class="form-group">
                                    <label class="control-label" for="title"><?= __('Title') ?> <span class="required">*</span></label>
                                    <input class="form-control" type="text" name="title" id="title" />
                                </div>

                                <div class="form-group">
                                    <label class="control-label" for="sql"><?= __('SQL') ?></label>
                                    <textarea class="form-control" style="height:200px" type="text" name="sql" id="sql"></textarea>
                                </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>
    </div>
</section>