<section class="content-header">
    <h1><?= __('Edit bank account') ?></h1>

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

<section class="content">
    <div class="box box-default">
        <form data-ajax data-upload class="form-action" action="<?= admin_url_to('/donate/bank-accounts/edit/' . $account['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><?= __('Bank account') ?></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="name"><?= __('Bank name') ?> <span class="required">*</span></label>
                                <input class="form-control" value="<?= $account['name'] ?>" type="text" name="name" id="name" />
                            </div>

                            <div class="row">
                                <div class="col-md-5">
                                    <div class="form-group">
                                        <label class="control-label" for="account"><?= __('Account') ?> <span class="required">*</span></label>
                                        <input class="form-control"  value="<?= $account['account'] ?>" type="text" name="account" id="account" />
                                    </div>
                                </div>

                                <div class="col-md-5">
                                    <div class="form-group">
                                        <label class="control-label" for="agency"><?= __('Agency') ?> <span class="required">*</span></label>
                                        <input class="form-control" value="<?= $account['agency'] ?>" type="text" name="agency" id="agency" />
                                    </div>
                                </div>

                                <div class="col-md-2">
                                    <div class="form-group">
                                        <label class="control-label" for="operation"><?= __('Operation') ?></label>
                                        <input class="form-control" value="<?= $account['operation'] ?>" type="text" name="operation" id="operation" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="favored"><?= __('Favored') ?> <span class="required">*</span></label>
                                        <input class="form-control" value="<?= $account['favored'] ?>" type="text" name="favored" id="favored" />
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label" for="document"><?= __('Document') ?> <span class="required">*</span></label>
                                        <input class="form-control" value="<?= $account['document'] ?>" type="text" name="document" id="document" />
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="control-label" for="notes"><?= __('Notes') ?></label>
                                <textarea class="form-control" name="notes" id="notes"><?= $account['notes'] ?></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>