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

    <div class="actions">
        <a data-ajax class="btn btn-default btn-sm" href="<?= admin_url_to('/indication/goals') ?>"><?= __('List') ?></a>
    </div>
</section>

<section class="content">
    <div class="box box-default">
        <form data-ajax class="form-focus" action="<?= admin_url_to('/indication/goals/add') ?>" 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><?= __('Goal') ?></h5>
                        </div>

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

                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="coin"><?= __('Coin') ?> <span class="required">*</span></label>
                                        <select class="form-control" name="coin" id="coin">
                                            <option value=""></option>
                                            <?php foreach (config('coins', []) as $id => $coin): ?>
                                                <option value="<?= $id ?>"><?= $coin['name'] ?></option>
                                            <?php endforeach ?>
                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="control-label" for="amount"><?= __('Amount') ?> <span class="required">*</span></label>
                                <textarea class="form-control" type="text" style="height:300px" name="amount" id="amount"></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>
</section>