<div class="modal fade bs-modal-lg" id="add_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">Add Commission</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_agent_commission')}}" method="post" id="form-add-commission">
                @csrf
                <br>
                <div class="row col-sm-12">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-md-5 required control-label">Agent Name</label>
                            <div class="col-md-7">
                                <input type="hidden" name="agent_id" id="agency_id">
                                <input type="text" class="form-control readonly" id="agency_name" required readonly>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-md-5 required control-label">Date </label>
                            <div class="col-md-7">
                                <input type="date" name="date" class="form-control" value="{{date('Y-m-d')}}" id="date">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-sm-12">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-md-5 required control-label">Commission </label>
                            <div class="col-md-7">
                                <input type="hidden" name="sale_id" id="commission_sale_id">
                                <input type="text" name="commission" class="form-control readonly" required value="" id="commission_amount" readonly>
                                <input type="hidden" name="commissions" class="form-control readonly" required value="" id="commission_amounts">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-md-5 required control-label">User </label>
                            <div class="col-md-7">
                                <input type="text" name="user_name" class="form-control" value="{{Auth::user()->user_firstname}} {{Auth::user()->user_lastname}}" id="user_name" readonly>
                                <input type="hidden" name="user_id" class="form-control" value="{{Auth::user()->id}} " id="user_id">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-sm-12">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-md-5 required control-label">Close Sale</label>
                            <div class="col-md-7">
                                <input type="hidden" name="agency_id_close_sale" id="close_sale_id">
                                <input type="text" class="form-control readonly" id="close_sale_name" required readonly>
                            </div>
                        </div>
                        {{--<div class="form-group">--}}
                            {{--<label class="col-md-5 control-label">Close Deal</label>--}}
                            {{--<div class="col-md-7">--}}
                                {{--{!! Form::select('agency_id_close_sale', $agency, null, ['class' => 'form-control select2','id'=>'agency_id_close_sale']) !!}--}}
                            {{--</div>--}}
                        {{--</div>--}}
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-md-5 control-label">Commission</label>
                            <div class="col-md-7">
                                <input type="text" name="commission_close_sale" class="form-control commission_close_sale number-only readonly" id="close_sale" value="" >
                                <input type="hidden" name="close_sale_condi" class="form-control" id="close_sale_condi" value="" >
                                <input type="hidden" name="close_sale_commis" class="form-control" id="close_sale_commis" value="" >
                                <input type="hidden" name="company_amount" class="form-control" id="company_amount" value="" >
                                <input type="hidden" name="company_condi" class="form-control" id="company_condi" value="" >
                                <input type="hidden" name="company_commis" class="form-control" id="company_commis" value="" >
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-sm-12">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-md-5 required control-label">Agent Type </label>
                            <div class="col-md-7">
                                <input type="text" name="agent_type" class="form-control" id="agent_type" value="" readonly>
                                <input type="hidden" name="agency_type_condition" class="form-control" id="agency_type_condition" value="" >
                                <input type="hidden" name="agency_type_percentage" class="form-control" id="agency_type_percentage" value="" >
                                <input type="hidden" name="agency_type_id" class="form-control" id="agency_type_id" value="" >
                                {{--<select name="agent_type" id="agent_type" class="select2 form-control" required>--}}
                                    {{--<option value=""> Please Select </option>--}}
                                    {{--<option value="1">Level Group</option>--}}
                                    {{--<option value="2">Level Network</option>--}}
                                {{--</select>--}}
                            </div>
                        </div>
                    </div>
                    {{--<div class="col-sm-6">--}}
                        {{--<div class="form-group" id="condition_com_option">--}}
                            {{--<label class="col-md-5 control-label">Condition Withdraw</label>--}}
                            {{--<div class="col-md-7">--}}
                                {{--{!! Form::select('agency_condition', $condition, null, ['class' => 'form-control select2','id'=>'agency_id_close_sale']) !!}--}}
                                {{--<input type="hidden" name="agent_condition" class="form-control agent_condition" >--}}
                            {{--</div>--}}
                        {{--</div>--}}
                    {{--</div>--}}
                </div>
                {{--<div class="row col-sm-12">--}}
                    {{--<div class="col-sm-6">--}}
                        {{--<div class="form-group" id="condition_option">--}}
                            {{--<label class="col-md-5 control-label">Commission Condition</label>--}}
                            {{--<div class="col-md-7">--}}
                                {{--{!! Form::select('agency_commission', $commission, null, ['class' => 'form-control select2 conditions','id'=>'agency_id_close_sale']) !!}--}}
                            {{--</div>--}}
                        {{--</div>--}}
                    {{--</div>--}}
                    {{--<div class="col-sm-6">--}}
                        {{--<div class="form-group" id="commission_option">--}}

                        {{--</div>--}}
                    {{--</div>--}}
                {{--</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-deposite" id="btn-submit">Add Commission</button>
                </div>
            </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
{{--<script type="text/javascript">--}}
    {{--$(document).ready(function() {--}}
        {{--$("#condition_com_option").hide();--}}
        {{--$("#condition_option").hide();--}}
    {{--});--}}
{{--</script>--}}