<div class="modal fade bs-modal-lg" id="share-commission" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-dm modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h3 class="modal-title">Share Commssion</h3>
            </div>
            <div id="_div_paymentPopup" style="display:none;" class="alert alert-block alert-danger fade in">
                <h4 class="alert-heading">Warning!</h4>
                <p id="_msg_paymentPopup"></p>
            </div>

            <div style="display:none;" class="alert-message alert-success" role="alert" id="done">
                <h4 class="alert-heading">Successfully!</h4>
                <hr>
                <p class="mb-0">Data has been saved successfully!</p>
            </div>
            <br />
            <form class="form-horizontal" role="form" action="{{route('add-shared-commission.store')}}" method="post" id="form-share-commission" autocomplete="off">
                @csrf
                @method('POST')
                <br>
                <div class="row col-sm-12">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-md-3 required control-label">Agency</label>
                            <div class="col-md-9">
                            {!! Form::select('agency_id[]', $agency, null, ['class' => 'form-control select2','id'=>'p_province','required']) !!}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5">
                        <div class="form-group">
                            <label class="col-md-3 required control-label">Commission </label>
                            <div class="col-md-9">
                                <input type="text" name="commission_shared[]" class="form-control commission_shared" value="" required>
                                <input type="hidden" name="commission" id="commission">
                                <input type="hidden" name="commission_id" id="commission_id">
                                <input type="hidden" name="agent_type" id="agent_type">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-1">
                        <div class="form-group">
                            <button type="button" class="button_info btn-circle btn_add_share"><i class="fa fa-plus-circle"></i></button>
                        </div>
                    </div>
                </div>
                <div class="dynamic-div">
                    
                </div>
                <div class="row col-sm-12">

                </div>
                <div class="row"></div>
                <div class="modal-footer">
                    <button type="button" class="button_danger" data-dismiss="modal">Close</button>
                    <button type="submit" class="button_success btn-save-share" id="btn-submit">Add Commission</button>
                </div>
            </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>