<?php if(!env('DEMO_MODE')): ?>
    <button data-bs-target="#license_modal" data-bs-toggle="modal" class="primary-btn small fix-gr-bg ml-2 mt-2">
        Revoke License
    </button>

    <div class="modal fade admin-query" id="license_modal" data-bs-backdrop="statik">
        <div class="modal-dialog modal-dialog-centered">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title">Revoke License</h4>
                    <button type="button" class="close" data-bs-dismiss="modal">
                        <i class="ti-close"></i>
                    </button>
                </div>

                <div class="modal-body">
                    <div class="container-fluid">
                        <form method="post" action="<?php echo e(route('service.revoke')); ?>" accept-charset="UTF-8"
                              class="form-horizontal" onsubmit="myFunction()">
                            <?php echo csrf_field(); ?>

                            <div class="row">
                                <div class="col-lg-12 text-center text-danger font-weight-bold text-wrap" id="message-body">
                                    If you revoke your license, your database will be removed, Please take a backup of
                                    your
                                    data before revoking the application license.
                                </div>

                                <div class="col-lg-12 text-center">
                                    <div class="mt-40 d-flex justify-content-between">
                                        <button type="button" class="primary-btn tr-bg" data-bs-dismiss="modal">Cancel
                                        </button>
                                        <button class="primary-btn fix-gr-bg" type="submit">Revoke License</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>

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

    <script>
        function myFunction() {
            document.getElementById('message-body').innerHTML = 'Please wait. We are revoking your license. After revoke we will redirect you to installation page. Do not refresh this page or close the browser';
        }

    </script>

<?php else: ?>
    <button class="primary-btn small fix-gr-bg ml-2">
        Revoke License
    </button>
<?php endif; ?>
<?php /**PATH /home/minialms/app.minialms.com/resources/views/vendors/service/license/revoke.blade.php ENDPATH**/ ?>