<div class="modal" id="payable{{$invoice->id}}">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title">Payment Form : Total : {{ money($invoice->payable) }}</h4>
        </div>
        <div class="modal-body">
          <form id="payment{{$invoice->id}}" method="post">
            <div class="form-group" id="msgForm{{$invoice->id}}">
              <label for="payable">Payable</label>
              <input type="number" min="0" step="any" class="form-control" id="pay{{$invoice->id}}" name="payable">
            </div>
            <div class="form-group">
              <label for="referral_id">Referral ID</label>
              <input type="text" class="form-control" id="referral_id{{$invoice->id}}" name="referral_id">
            </div>
            <div class="form-group text-right">
              <button type="submit" class="btn btn-default" id="submit" onclick="payment({{$invoice->id}})">Submit</button>
            </div>
          </form>
        </div>
      </div>
      <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
