<div class="col-xxl-4 col-xl-6 col-lg-6 col-md-12">
    <div class="payment-box">
        <div class="payment-icon">
            <img src="{{ static_asset('images/payment-icon/aamarpay_logo.png') }}" alt="AmarPay">
            <span class="title">{{ __('amar_pay') }}</span>
        </div>

        <div class="payment-settings">
            <div class="payment-settings-btn">
                <a href="javascript:void(0)" class="btn btn-md sg-btn-outline-primary" data-bs-toggle="modal" data-bs-target="#amarpay">
                    <i class="las la-cog"></i> <span>{{ __('setting') }}</span>
                </a>
            </div>

            <div class="setting-check">
                <input type="checkbox" id="is_amarpay_activated" value="setting-status-change/is_amarpay_activated"
                       class="status-change" {{ setting('is_amarpay_activated') ? 'checked' : '' }}>
                <label for="is_amarpay_activated"></label>
            </div>
        </div>

    </div>
</div>
<!-- End Payment box -->

<div class="modal fade" id="amarpay" tabindex="-1" aria-labelledby="paymentMethodLabel" aria-hidden="false">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <h6 class="sub-title">{{ __('amar_pay') }} {{ __('configuration') }}</h6>
            <button type="button" class="btn-close modal-close" data-bs-dismiss="modal" aria-label="Close"></button>

            <form action="{{ route('payment.gateway') }}" method="post" class="form">@csrf
                <div class="row gx-20">
                    <input type="hidden" name="is_modal" class="is_modal" value="0">
                    <input type="hidden" name="payment_method" value="amar_pay">

                    <div class="col-12">
                        <div class="mb-4">
                            <label for="amarpay_store_id" class="form-label">{{ __('store_id') }}</label>
                            <input type="text" class="form-control rounded-2" name="amarpay_store_id" id="amarpay_store_id"
                                   placeholder="{{ __('enter_store_id') }}" value="{{ stringMasking(old('amarpay_store_id', setting('amarpay_store_id')),'*',3,-3) }}">
                            <div class="nk-block-des text-danger">
                                <p class="amarpay_store_id_error error"></p>
                            </div>
                        </div>
                    </div>

                    <div class="col-12">
                        <div class="mb-4">
                            <label for="amarpay_signature_key" class="form-label">{{ __('signature_key') }}</label>
                            <input type="text" class="form-control rounded-2" name="amarpay_signature_key" id="amarpay_signature_key"
                                   placeholder="{{ __('enter_signature_key') }}" value="{{ stringMasking(old('amarpay_signature_key', setting('amarpay_signature_key')),'*',3,-3) }}">
                            <div class="nk-block-des text-danger">
                                <p class="amarpay_signature_key_error error"></p>
                            </div>
                        </div>
                    </div>

                    <div class="col-12">
                        <div class="mb-4">
                            <label for="amarpay_mode" class="form-label">{{ __('mode') }}</label>
                            <select name="amarpay_mode" id="amarpay_mode" class="form-control rounded-2">
                                <option value="sandbox" {{ setting('amarpay_mode') === 'sandbox' ? 'selected' : '' }}>{{ __('sandbox') }}</option>
                                <option value="live" {{ setting('amarpay_mode') === 'live' ? 'selected' : '' }}>{{ __('live') }}</option>
                            </select>
                            <div class="nk-block-des text-danger">
                                <p class="amarpay_mode_error error"></p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="d-flex justify-content-end align-items-center mt-30">
                    <button type="submit" class="btn sg-btn-primary">{{ __('save') }}</button>
                    @include('layouts.loading_button',['class' => 'btn sg-btn-primary'])
                </div>
            </form>
        </div>
    </div>
</div>