
{{-- <button type="button" class="btn btn-danger float-right paymentButton" data-toggle="modal" data-target="#modal-fund-transfer">
    Make Payment
</button> --}}
<button style="margin: 5px" type="button" class="btn btn-danger btn-sm float-right ajaxPayment" data-toggle="modal" data-target="#resellerClientPaymentModal">
    Make  Payment
</button>





<div class="modal fade" id="resellerClientPaymentModal">
    <div class="modal-dialog">
        <form id="paid_form" class="form" role="form" enctype="multipart/form-data" method="post"  action="{{ route('resellerClientPaymentProcess') }}">
            @method('post')
            @csrf
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="text-center">Payment</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="{{ $client->id }}">

                        <div class="row">

                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Discount(optional)</label>
                                    <input class="form-control" min="0" placeholder="Bonus(optional)"  " type="number" name="discount">
                                </div>
                            </div>


                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Payment Amount</label>
                                    <input id="in_amount" min="0" class="form-control" "
                                        type="number" name="amount" 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 buttonHide" type="submit" id="modalSave">Submit</button>
                </div>

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


