<div>
    <button type="button" class="btn btn-warning float-right btn-sm" data-toggle="modal" data-target="#adjustCustomerBalance" style="margin: 5px">
        Balance Adjustment
    </button>
</div>
<div class="modal fade" id="adjustCustomerBalance">
    <div class="modal-dialog">
        <form id="paid_form" class="form" role="form" enctype="multipart/form-data" method="post"
            action="{{ route('balanceAdjustment', $r->id) }}">
            @method('post')
            @csrf
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="text-center">Customer Balance Adjustment</h4>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="text-center" id="modalAlert"></div>

                    <div class="row">



                        <input type="hidden" name="client_id" value="{{ $r->id }}">



                        <div class="row">

                            <div class="col-md-12">
                                <div class="form-group">
                                    <label>Adjust Amount</label>
                                    <input id="in_amount" min="0" class="form-control" onkeypress="return numbersOnly(event)"
                                        type="number" name="amount" required="">
                                </div>
                            </div>

                            <div class="col-md-12">
                                <div class="form-group">
                                    <label>Adjust Reason</label>
                                    <input type="text" name="description" class="form-control" required>
                                </div>
                            </div>




                        </div>

                    </div>


                </div>
                <div class="modal-footer justify-content-between">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button class="btn btn-primary" type="submit" id="modalSave">Submit</button>
                </div>

            </div>
            <!-- /.modal-content -->
        </form>
    </div>
    <!-- /.modal-dialog -->
</div>
