<section class="content-header">
    <h1><?= __('Donate plugin settings') ?></h1>
</section>

<section class="content">

    <div class="box box-default">
        <form data-ajax class="form-focus" action="<?= admin_url_to('/donate/config') ?>" 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-4">
                                    <div class="form-group">
                                        <label class="control-label" for="allow-payment-confirmation"><?= __('Allow payment confirmation') ?></label>
                                        <div>
                                            <input class="form-control toggle" type="checkbox"<?= config('donate.allow_payment_confirmation', false) ? ' checked' : '' ?> id="allow-payment-confirmation" value="1" name="allow_payment_confirmation" />
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="control-label" for="min-rescue"><?= __('Minimum for rescue') ?></label>
                                        <input class="form-control money" value="<?= config('donate.min_rescue') ?>" id="min-rescue" name="min_rescue" />
                                    </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>