<div class="card">
    <div class="card-header">
        <h2>{{::vm.translate.get('Cash on delivery')}}</h2>
    </div>
    <div class="card-body">
        <form name="stripeConfigForm" class="form-horizontal">
            <div class="col-sm-offset-2 bg-danger" ng-show="vm.validationErrors">
                <ul>
                    <li ng-repeat="error in vm.validationErrors">{{error}}</li>
                </ul>
            </div>
            
            <div class="form-group">
                <label class="control-label">Min Order Value </label>
                <div>
                    <input name="name" ng-model="vm.codConfig.minOrderValue" class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label">Max Order Value</label>
                <div>
                    <input name="name" ng-model="vm.codConfig.maxOrderValue" class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label">Payment Fee in %</label>
                <div>
                    <input name="name" ng-model="vm.codConfig.paymentFee" class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <div>
                    <button class="btn btn-success float-right" ng-click="vm.save()"><span class="fa fa-save"></span> Save</button>
                    <button ui-sref="payment-providers" class="btn btn-default">Cancel</button>
                </div>
            </div>
        </form>
    </div>
</div>