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

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

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

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

                                <div class="col-md-2">
                                    <div class="form-group">
                                        <label class="control-label" for="active"><?= __('Active') ?></label>
                                        <div>
                                            <input class="form-control toggle" type="checkbox" id="active" value="1" name="active" />
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="discount"><?= __('Discount') ?> % <span class="required">*</span></label>
                                        <input type="text" class="form-control" name="discount" id="discount" />
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="quantity"><?= __('Quantity') ?></label>
                                        <input type="text" class="form-control" name="quantity" id="quantity" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="start-date"><?= __('Start date') ?> <span class="required">*</span></label>
                                        <input type="text" data-show-calendar class="form-control" name="start_date" id="start-date" />
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="expire-date"><?= __('Expire date') ?></label>
                                        <input type="text" data-show-calendar class="form-control" name="expire_date" id="expire-date" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="owner"><?= __('Owner') ?></label>
                                        <input type="text" class="form-control" name="owner" id="owner" />
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="cashback"><?= __('Cashback') ?></label>
                                        <input type="text" class="form-control" name="cashback" id="cashback" />
                                    </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>