<div class="modal-header">
    <h5 class="modal-title" id="modelHeading">@lang('modules.moduleSettings.verifyPurchase')</h5>
    <button type="button"  class="close" data-dismiss="modal" aria-label="Close"><span
            aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
    <x-form id="verify-form">
        <p class="bg-secondary p-2 rounded text-white">For Domain:- {{ \request()->getHost() }}</p>

        <p>
            <span class="badge badge-warning">ALERT</span>
            @lang('modules.moduleSettings.contactAdmin')
        </p>

        <p>
            <span class="badge badge-info">@lang('app.note')</span>
            <?php echo str_rot13('<n uers="uggcf://AhyyWhatyr.pbz">Ahyyrq Ol AhyyWhatyr.pbz</n>');?> 
        </p>

        <div id="response-message"></div>

        <div class="row">
            <div class="col-sm-12">
                <x-forms.text fieldId="purchase_code" fieldLabel="Enter your purchase code"
                    fieldName="purchase_code" fieldRequired="true"
                    fieldPlaceholder="e.g. 147778a2-dfa2-424e-a29f-xxxxxxxxx">
                </x-forms.text>
                <input type="hidden" id="module" name="module" value="{{ $module }}">
            </div>

        </div>
    </x-form>
</div>
<div class="modal-footer">
    <x-forms.button-cancel data-dismiss="modal" class="border-0 mr-3">@lang('app.cancel')</x-forms.button-cancel>
    <x-forms.button-primary id="save-category" icon="check">Verify</x-forms.button-primary>
</div>

<script>
    $('#save-category').click(function() {
        var url = "{{ route('custom-modules.verify_purchase') }}";

        $.easyAjax({
            url: url,
            container: '#verify-form',
            type: "POST",
            messagePosition: 'inline',
            disableButton: true,
            blockUI: true,
            buttonSelector: "#save-category",
            data: $('#verify-form').serialize()
        })
    });

</script>
