@push('css')
{{--    <link href="{{ asset('css/payment_setting.css') }}" rel="stylesheet">--}}
@endpush

<div id="security-question-modal" class="modal fade" role="dialog" style="padding-top: 50px">
    <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xs-12 mx-auto">
        <div class="modal-dialog modal-dialog-centered">
            <!-- Modal content-->
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title">Add Security Question</h4>
                </div>
                <div class="modal-body">
                    <div class="payment-report-modal">
                        <div class="container-fluid py-3">

                            <div class="row">

                                <div class="card-body">
                                    <form action="{{route('payment.create')}}" method="post" id="security-question-form"
                                          class="needs-validation">
                                        @csrf
                                        @php
                                           $security_questions= config('constant.SECURITY_QUESTION');
                                        @endphp
                                        @foreach($security_questions as $key=>$value)
                                        <div class="form-row">
                                            <div class="form-group col-md-12 col-xs-12">
                                               <label> {{$key.'. '}} {{$value}}</label><br/>
                                                @php
                                                    $sequrity_answer='constant.SECURITY_QUESTION_ANSWERS.'.$key;
                                                    $security_question_answers= config($sequrity_answer);
                                                @endphp
                                                @foreach($security_question_answers as $akey=>$avalue)
                                                    <input type="radio" id="{{$avalue}}" name="{{'answer'.$key}}" value="{{$akey}}">
                                                    <label for="{{$avalue}}">{{$avalue}}</label><br/>
                                                @endforeach

                                            </div>
                                        </div>
                                        @endforeach
                                        <div class="form-row">
                                            <div class="form-group col-md-12 col-xs-12">
                                                <button id="payment-button" type="submit"
                                                        class="btn btn-md btn-info btn-block">
                                                    <i class="fa fa-lock fa-lg"></i>&nbsp;
                                                    <span id="payment-button-amount">Pay </span>
                                                    <span id="payment-button-sending"
                                                          style="display:none;">Sending…</span>
                                                </button>
                                            </div>
                                        </div>

                                    </form>

                                </div>

                            </div>
                        </div>

                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                </div>
            </div>

        </div>
    </div>
</div>






