<!-- Page Heading -->
<section>
    <h1><?php echo __tr('Setup & Integrations'); ?></h1>
    <fieldset x-data="{panelOpened:false}" x-cloak>
        <legend @click="panelOpened = !panelOpened"><?php echo e(__tr('Campaign Execution Settings')); ?> <span class="text-danger my-2"><?php echo e(__tr('* required')); ?></span> <small class="text-muted"><?php echo e(__tr('Click to expand/collapse')); ?></small></legend>
        <form x-show="panelOpened" class="lw-ajax-form lw-form" method="post" action="<?= route('manage.configuration.write', ['pageType' => 'misc_settings']) ?>">
            <div>
                <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['dataFormGroupClass' => 'col-lg-4 col-sm-6 col-md-3','type' => 'number','min' => '0','label' => __tr('Number of Messages per lot for campaigns'),'name' => 'cron_process_messages_per_lot','value' => ''.e(getAppSettings('cron_process_messages_per_lot')).'','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['data-form-group-class' => 'col-lg-4 col-sm-6 col-md-3','type' => 'number','min' => '0','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Number of Messages per lot for campaigns')),'name' => 'cron_process_messages_per_lot','value' => ''.e(getAppSettings('cron_process_messages_per_lot')).'','required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
            <div class="col text-sm text-info">
                <?php echo e(__tr('Based on your server capacity you can set how many messages should be processed per lot which is every 5 Seconds for Cron job OR per job for Queue job or when CRON URL requests executes for the Campaign Messages.')); ?>

            </div>
            </div>
            <hr class="my-4">
            <div class="pl-3">
                <?php if (isset($component)) { $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.checkbox','data' => ['id' => 'lwRequeueHealthyErrorMsg','name' => 'enable_requeue_healthy_error_msg','dataSize' => 'small','offValue' => 0,'dataLwPlugin' => 'lwSwitchery','checked' => getAppSettings('enable_requeue_healthy_error_msg'),'label' => __tr('Enable Requeue Messages')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'lwRequeueHealthyErrorMsg','name' => 'enable_requeue_healthy_error_msg','data-size' => 'small','offValue' => 0,'data-lw-plugin' => 'lwSwitchery','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(getAppSettings('enable_requeue_healthy_error_msg')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Enable Requeue Messages'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $attributes = $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $component = $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
                <div class=" text-sm text-info">
                    <?php echo e(__tr('If enabled, the application will requeue and retry messages for few attempts that are failed due to WhatsApp API Healthy ecosystem.')); ?>

                </div>
            </div>
            <hr class="my-4">
            <fieldset class="col mt-4" x-cloak x-data="{enable_queue_jobs_for_campaigns:'<?php echo e(getAppSettings('enable_queue_jobs_for_campaigns') ? 1 : 0); ?>'}">
                
                <legend><?php echo e(__tr('Cron or Queue Job Setup')); ?> <span class="text-danger my-2"><?php echo e(__tr('* required for the campaigns to run as per schedule')); ?></span></legend>
                <div class="form-group">
                    <h3>
                        <input x-model="enable_queue_jobs_for_campaigns" type="radio" id="lwCronJobRadio" name="enable_queue_jobs_for_campaigns" value="0"> <label for="lwCronJobRadio"><?php echo e(__tr('Cron Job')); ?></label><br>
                        <input x-model="enable_queue_jobs_for_campaigns" type="radio" id="lwQueueJobRadio" name="enable_queue_jobs_for_campaigns" value="1"> <label for="lwQueueJobRadio"><?php echo e(__tr('Queue Job/Worker')); ?></label>
                    </h3>
                </div>
                <fieldset x-show="enable_queue_jobs_for_campaigns == 1" class="">
                    <?php if(swaksharyipadtalni()): ?>
                    <?php if(config('queue.default') == 'sync'): ?>
                    <div class="alert alert-warning">
                        <?php echo e(__tr('IMPORTANT: As the Queue Connection is set to sync, it will not work properly, Set it to different connection from .env file like database or you may using something else.')); ?>

                    </div>
                    <?php endif; ?>
                    <?php endif; ?>
                    <legend><?php echo e(__tr('Queue Job Setup Instructions')); ?></legend>
                   <div>
                    <?php echo e(__tr('You need to configure your queue driver as required in .env file. Database tables for the database driver already provided no need to migrate to create tables.')); ?> <a target="_blank" href="https://laravel.com/docs/12.x/queues"><?php echo e(__tr('Laravel Queues')); ?> <i class="fa fa-external-link-alt"></i></a>
                   </div>
                  <div>
                    <?php echo e(__tr('You need to run queue worker as suggested')); ?> <a target="_blank" href="https://laravel.com/docs/12.x/queues#running-the-queue-worker"><?php echo e(__tr('Running Queue Worker')); ?> <i class="fa fa-external-link-alt"></i></a>
                    <div class="alert alert-dark my-3 col-sm-12 col-md-6 col-lg-4">
                        php artisan queue:work
                    </div>
                    <?php if(getAppSettings('queue_setup_using_artisan_at')): ?>
                        <h3 class="text-success my-4">
                            <i class="fa fa-check"></i> <?php echo e(__tr('As \'artisan queue:work\' command executed, system assumes that queue worker setup is done.')); ?>

                        </h3>
                    <?php endif; ?>
                  </div>
                  <div class="">
                    <?php if(getAppSettings('queue_setup_done_at')): ?>
                    <h2 class="text-success my-4">
                        <i class="fa fa-check"></i> <?php echo e(__tr('You have confirmed that queue worker setup has been done at __doneAt__', [
                            '__doneAt__' => formatDateTime(getAppSettings('queue_setup_done_at'))
                        ])); ?>

                    </h2>
                    <a class="btn btn-danger btn-sm lw-btn-block-mobile lw-ajax-link-action" data-method="post" x-bind:data-post-data="toJsonString({'queue_setup_done_at':'','queue_setup_using_artisan_at':''})" href="<?= route('manage.configuration.write', ['pageType' => 'internals']) ?>"> <?= __tr('Queue Worker Setup: Mark as Not Done') ?></a>
                    <?php else: ?>
                    <a class="btn btn-primary btn-sm lw-btn-block-mobile lw-ajax-link-action" data-method="post" x-bind:data-post-data="toJsonString({'queue_setup_done_at':'<?php echo e(now()); ?>'})" href="<?= route('manage.configuration.write', ['pageType' => 'internals']) ?>"> <?= __tr('Queue Worker Setup: Mark as Done') ?></a>
                    <?php endif; ?>
                </div>
                </fieldset>
            
            <fieldset x-show="enable_queue_jobs_for_campaigns == 0" x-data="{panelOpened:false}" x-cloak>
                <legend @click="panelOpened = !panelOpened"><?php echo e(__tr('Cron Job Setup')); ?> <small class="text-muted"><?php echo e(__tr('Click to expand/collapse')); ?></small></legend>
                <div x-show="panelOpened">
                    <p><?php echo e(__tr('You need to setup cron as given below for every minute')); ?></p>
                    <div class="col-sm-12 col-md-10">
                        <fieldset>
                            <legend><?php echo e(__tr('Recommended')); ?></legend>
                            <?php if(defined('PHP_BINDIR') and PHP_BINDIR): ?>
                        <p><?php echo e(__tr('You need to add a single cron configuration entry to your server that runs the schedule:run command every minute.')); ?></p>
                        <div class="input-group">
                            <input type="text" class="form-control" readonly id="lwArtisanPHPBinaryOption" value="<?php echo e(isDemo() ? __tr('/path-to-the-php-binary') : PHP_BINDIR); ?>/php <?php echo e(isDemo() ? __tr('/path-to-your-project') : base_path()); ?>/artisan schedule:run >> /dev/null 2>&1">
                            <div class="input-group-append">
                                <button class="btn btn-outline-light" type="button" onclick="lwCopyToClipboard('lwArtisanPHPBinaryOption')">
                                    <?= __tr('Copy') ?>
                                </button>
                            </div>
                        </div>
                        <h3 class="my-4 w-100 text-center text-muted"><?php echo e(__tr('------- OR -------')); ?></h3>
                        <div class="text-orange my-2"><?php echo e(__tr('If special characters not accepting you can use this')); ?></div>
                        <div class="input-group">
                            <input type="text" class="form-control" readonly id="lwArtisanPHPBinaryOption2" value="<?php echo e(isDemo() ? __tr('/path-to-the-php-binary') : PHP_BINDIR); ?>/php <?php echo e(isDemo() ? __tr('/path-to-your-project') : base_path()); ?>/artisan schedule:run">
                            <div class="input-group-append">
                                <button class="btn btn-outline-light" type="button" onclick="lwCopyToClipboard('lwArtisanPHPBinaryOption2')">
                                    <?= __tr('Copy') ?>
                                </button>
                            </div>
                        </div>
                        <h3 class="my-4 w-100 text-center text-muted"><?php echo e(__tr('------- OR -------')); ?></h3>
                        <?php endif; ?>
                        <div class="input-group">
                            <input type="text" class="form-control" readonly id="lwArtisanOption" value="php <?php echo e(isDemo() ? __tr('/path-to-your-project') : base_path()); ?>/artisan schedule:run >> /dev/null 2>&1">
                            <div class="input-group-append">
                                <button class="btn btn-outline-light" type="button" onclick="lwCopyToClipboard('lwArtisanOption')">
                                    <?= __tr('Copy') ?>
                                </button>
                            </div>
                        </div>
                        <h3 class="my-4 w-100 text-center text-muted"><?php echo e(__tr('------- OR -------')); ?></h3>
                        <div class="text-orange my-2"><?php echo e(__tr('If special characters not accepting you can use this')); ?></div>
                        <div class="input-group">
                            <input type="text" class="form-control" readonly id="lwArtisanOption2" value="php <?php echo e(isDemo() ? __tr('/path-to-your-project') : base_path()); ?>/artisan schedule:run">
                            <div class="input-group-append">
                                <button class="btn btn-outline-light" type="button" onclick="lwCopyToClipboard('lwArtisanOption2')">
                                    <?= __tr('Copy') ?>
                                </button>
                            </div>
                        </div>
                        <?php if(getAppSettings('cron_setup_using_artisan_at')): ?>
                        <h3 class="text-success my-4">
                            <i class="fa fa-check"></i> <?php echo e(__tr('As \'artisan schedule:run\' command executed, system assumes that cron setup is done.')); ?>

                        </h3>
                        <?php else: ?>
                        <h3 class="text-orange my-4">
                            <?php echo e(__tr('System does not recognized that cron job has been setup using artisan schedule:run schedule command. This is just for information you can use other ways as stated on this page.')); ?>

                        </h3>
                        <?php endif; ?>
                        </fieldset>
                        <h3 class="my-4 w-100 text-center text-muted"><?php echo e(__tr('------- OR -------')); ?></h3>
                        <div class="input-group">
                            <input type="text" class="form-control" readonly id="lwWgetOption" value='wget -O - -q "<?php echo e(route('campaign.run_schedule.process')); ?>" --user-agent="cron" > /dev/null 2>&1'>
                            <div class="input-group-append">
                                <button class="btn btn-outline-light" type="button" onclick="lwCopyToClipboard('lwWgetOption')">
                                    <?= __tr('Copy') ?>
                                </button>
                            </div>
                        </div>
                        <h3 class="my-4 w-100 text-center text-muted"><?php echo e(__tr('------- OR -------')); ?></h3>
                        <p><?php echo e(__tr('Or you can find other ways on net to run cron job you need to access following url for the same.')); ?></p>
                        <div class="input-group">
                            <input type="text" class="form-control" readonly id="lwCommonUrlOption" value='<?php echo e(route('campaign.run_schedule.process')); ?>'>
                            <div class="input-group-append">
                                <button class="btn btn-outline-light" type="button" onclick="lwCopyToClipboard('lwCommonUrlOption')">
                                    <?= __tr('Copy') ?>
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="col-12">
                        <?php if(getAppSettings('cron_setup_done_at')): ?>
                        <h2 class="text-success my-4">
                            <i class="fa fa-check"></i> <?php echo e(__tr('You have confirmed that cron setup has been done at __doneAt__', [
                                '__doneAt__' => formatDateTime(getAppSettings('cron_setup_done_at'))
                            ])); ?>

                        </h2>
                          <a class="mt-4 btn btn-danger btn-sm lw-btn-block-mobile lw-ajax-link-action" data-method="post" x-bind:data-post-data="toJsonString({'cron_setup_done_at':'','cron_setup_using_artisan_at':''})" href="<?= route('manage.configuration.write', ['pageType' => 'internals']) ?>"> <?= __tr('Cron Setup: Mark as not Done') ?></a>
                    <?php else: ?>
                        <a class="mt-4 btn btn-primary btn-sm lw-btn-block-mobile lw-ajax-link-action" data-method="post" x-bind:data-post-data="toJsonString({'cron_setup_done_at':'<?php echo e(now()); ?>'})" href="<?= route('manage.configuration.write', ['pageType' => 'internals']) ?>"> <?= __tr('Cron Setup: Mark as Done') ?></a>
                        <?php endif; ?>
                    </div>
                </div>
            </fieldset>
            </fieldset>

            <div class="form-group col">
                <button type="submit" class="btn btn-primary btn-user lw-btn-block-mobile"><?php echo e(__tr('Save')); ?></button>
            </div>
        </form>
    </fieldset>
    <fieldset x-data="{panelOpened:false}" x-cloak>
        <legend @click="panelOpened = !panelOpened"><?php echo e(__tr('WhatsApp Webhook Calls Handling')); ?> <span class="text-danger my-2"><?php echo e(__tr('* required')); ?></span> <small class="text-muted"><?php echo e(__tr('Click to expand/collapse')); ?></small></legend>
        <form x-show="panelOpened" class="lw-ajax-form lw-form" method="post" action="<?= route('manage.configuration.write', ['pageType' => 'misc_settings']) ?>">
            <div class="form-group" x-data="{enable_wa_webhook_process_using_db:'<?php echo e(getAppSettings('enable_wa_webhook_process_using_db') ? 1 : 0); ?>'}">
                    <div class="ml-2">
                        <input x-model="enable_wa_webhook_process_using_db" type="radio" id="lwSyncProcessRadio" name="enable_wa_webhook_process_using_db" value="0"> <label for="lwSyncProcessRadio"><?php echo e(__tr('Sync - Direct process WhatsApp Webhook calls')); ?></label><br>
                        <small class="text-muted ml-2">
                            <?php echo e(__tr('Webhook calls will be processed as soon as they come.')); ?>

                        </small>
                        <hr>
                        <input x-model="enable_wa_webhook_process_using_db" type="radio" id="lwDbProcessRadio" name="enable_wa_webhook_process_using_db" value="1"> <label for="lwDbProcessRadio"><?php echo e(__tr('Database - Use Database to process WhatsApp Webhook calls')); ?> - <?php echo e(__tr('(Recommended)')); ?></label>
                        <br>
                        <small class="text-muted ml-2">
                            <?php echo e(__tr('Webhooks data will be stored and then will be processed by cron/queue worker')); ?>

                        </small>
                        <hr>
                    </div>
                </div>
                 <div class="form-group col">
                <button type="submit" class="btn btn-primary btn-user lw-btn-block-mobile"><?php echo e(__tr('Save')); ?></button>
            </div>
            </form>
    </fieldset>
    <fieldset x-data="{panelOpened:false,broadcastConnectionDriver:'<?php echo e(getAppSettings('broadcast_connection_driver')); ?>'}" x-cloak>
        <legend @click="panelOpened = !panelOpened"><?php echo e(__tr('Realtime Communication Provider')); ?> <span class="text-danger my-2"><?php echo e(__tr('* required for realtime updates')); ?></span> <small class="text-muted"><?php echo e(__tr('Click to expand/collapse')); ?></small></legend>
       <div x-show="panelOpened">
        <form class="lw-ajax-form lw-form" method="post" action="<?= route('manage.configuration.write', ['pageType' => 'pusher']) ?>" x-cloak x-data="{pusherSettingsExists: <?php echo e(getAppSettings('pusher_app_id') ? 1 : 0); ?>}">
            <div x-show="pusherSettingsExists"></div>
             <div class="form-group" x-cloak x-show="pusherSettingsExists">
               <div class="btn-group">
                   <button type="button" disabled="true" class="btn btn-success lw-btn">
                    <?php echo e(Str::title(getAppSettings('broadcast_connection_driver'))); ?> - <?php echo e(__tr('Broadcast Connection Driver Settings are exist')); ?>

                   </button>
                   <button type="button" @click="pusherSettingsExists = !pusherSettingsExists"
                       class="btn btn-light lw-btn"><?php echo e(__tr('Update')); ?></button>
               </div>
           </div>
           <div x-show="!pusherSettingsExists" class="col-sm-12 col-xl-8 col-lg-12">

            <div>
                <h3><?php echo e(__tr('Broadcast Driver')); ?></h3>
                <input type="radio" x-model="broadcastConnectionDriver" name="broadcast_connection_driver" value="pusher" id="pusherAsBroadcastDriver"> <label class="mr-2" for="pusherAsBroadcastDriver"><?php echo e(__tr('Pusher')); ?></label>
                <input type="radio" x-model="broadcastConnectionDriver" name="broadcast_connection_driver" value="soketi" id="soketiAsBroadcastDriver"> <label class="mr-2" for="soketiAsBroadcastDriver"><?php echo e(__tr('Soketi')); ?></label>
            </div>
            <div class="alert alert-secondary" x-show="broadcastConnectionDriver == 'pusher'">
                <?php echo e(__tr('You need to create Channel app at pusher.com just name the app and select cluster, once created just go to get app keys.')); ?> <a href="https://pusher.com" class="float-right text-white" target="_blank"><?php echo e(__tr('Got to pusher.com')); ?></a>
            </div>
            <div class="alert alert-dark" x-show="broadcastConnectionDriver == 'soketi'">
                <?php echo e(__tr('For more information visit:')); ?> <a href="https://docs.soketi.app" class="float-right" target="_blank"><?php echo e(__tr('More information about Soketi')); ?></a>
            </div>
               <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => 'lwPusherAppId','dataFormGroupClass' => '','label' => __tr('App ID'),'name' => 'pusher_app_id','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => 'lwPusherAppId','data-form-group-class' => '','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('App ID')),'name' => 'pusher_app_id','required' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
               <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => 'lwPusherKey','dataFormGroupClass' => '','label' => __tr('App Key'),'name' => 'pusher_app_key','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => 'lwPusherKey','data-form-group-class' => '','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('App Key')),'name' => 'pusher_app_key','required' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
               <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => 'lwPusherAppSecret','dataFormGroupClass' => '','label' => __tr('App Secret'),'name' => 'pusher_app_secret','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => 'lwPusherAppSecret','data-form-group-class' => '','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('App Secret')),'name' => 'pusher_app_secret','required' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
               <template x-if="broadcastConnectionDriver == 'pusher'">
                <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => 'lwPusherAppCluster','dataFormGroupClass' => '','label' => __tr('App Cluster'),'name' => 'pusher_app_cluster','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => 'lwPusherAppCluster','data-form-group-class' => '','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('App Cluster')),'name' => 'pusher_app_cluster','required' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
               </template>
               
               <template x-if="broadcastConnectionDriver == 'soketi'">
                <div>
                    <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => 'lwPusherAppHost','dataFormGroupClass' => '','value' => ''.e(getAppSettings('pusher_app_host')).'','label' => __tr('App Host'),'name' => 'pusher_app_host','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => 'lwPusherAppHost','data-form-group-class' => '','value' => ''.e(getAppSettings('pusher_app_host')).'','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('App Host')),'name' => 'pusher_app_host','required' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'number','min' => '0','id' => 'lwPusherAppPort','dataFormGroupClass' => '','value' => ''.e(getAppSettings('pusher_app_port')).'','label' => __tr('App Port'),'name' => 'pusher_app_port','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'number','min' => '0','id' => 'lwPusherAppPort','data-form-group-class' => '','value' => ''.e(getAppSettings('pusher_app_port')).'','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('App Port')),'name' => 'pusher_app_port','required' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => 'lwPusherAppScheme','dataFormGroupClass' => '','value' => ''.e(getAppSettings('pusher_app_scheme')).'','label' => __tr('App Scheme'),'name' => 'pusher_app_scheme','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => 'lwPusherAppScheme','data-form-group-class' => '','value' => ''.e(getAppSettings('pusher_app_scheme')).'','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('App Scheme')),'name' => 'pusher_app_scheme','required' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
                    <div class="form-group">
                        <?php if (isset($component)) { $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.checkbox','data' => ['id' => 'lwPusherAppUseTls','name' => 'pusher_app_use_tls','offValue' => 0,'checked' => getAppSettings('pusher_app_use_tls'),'label' => __tr('Use TLS')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'lwPusherAppUseTls','name' => 'pusher_app_use_tls','offValue' => 0,'checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(getAppSettings('pusher_app_use_tls')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Use TLS'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $attributes = $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $component = $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
                    </div>
                    <div class="form-group">
                        <?php if (isset($component)) { $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.checkbox','data' => ['id' => 'lwPusherAppEncrypted','name' => 'pusher_app_encrypted','offValue' => 0,'checked' => getAppSettings('pusher_app_encrypted'),'label' => __tr('Encrypted')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.checkbox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['id' => 'lwPusherAppEncrypted','name' => 'pusher_app_encrypted','offValue' => 0,'checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(getAppSettings('pusher_app_encrypted')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('Encrypted'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $attributes = $__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__attributesOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493)): ?>
<?php $component = $__componentOriginal85a79a3f590ffcc2d6473eb3120eb493; ?>
<?php unset($__componentOriginal85a79a3f590ffcc2d6473eb3120eb493); ?>
<?php endif; ?>
                    </div>
                </div>
               </template>
           <div class="form-group">
               
           <button type="submit" href class="btn btn-primary btn-user lw-btn-block-mobile">
               <?= __tr('Save') ?>
           </button>
           </div>
           </div>
        </form>
       </div>
    </fieldset>
        <fieldset x-data="{panelOpened:false}" x-cloak>
            <legend @click="panelOpened = !panelOpened"><?php echo e(__tr('Microsoft Translator API')); ?> <small class="text-muted"><?php echo e(__tr('Click to expand/collapse')); ?></small></legend>
            <form x-show="panelOpened" class="lw-ajax-form lw-form" method="post" action="<?= route('manage.configuration.write', ['pageType' => 'integrations']) ?>" x-data="{disableMicrosoftTranslatorKeyUpdate:'<?php echo e(getAppSettings("microsoft_translator_api_key")); ?>'}">
                <div class="alert alert-light ">
                  <a target="_blank" class="text-white"
                    href="https://azure.microsoft.com/en-us/pricing/details/cognitive-services/translator-text-api/">https://azure.microsoft.com/en-us/pricing/details/cognitive-services/translator-text-api/</a>
                 </div>
                <div class="form-group " >
                <div x-cloak x-show="!disableMicrosoftTranslatorKeyUpdate">
                       <!--microsift translator -->
                <label for="lwMicrosoftTranslatorAPIKey">
                    <?= __tr('Microsoft Translator API Key') ?>
                </label>
                <input type="text" class="form-control form-control-user" name="microsoft_translator_api_key"
                    id="lwMicrosoftTranslatorAPIKey">
                    <div class="form-group">
                        <!-- /microsift translator -->

                </div>
                  <!--microsift translator api Region -->
                <div x-cloak x-show="!disableMicrosoftTranslatorKeyUpdate">
                    <label for="lwMicrosoftTranslatorAPIRegionKey">
                        <?= __tr('Region') ?>
                    </label>
                    <input type="text" class="form-control form-control-user" name="microsoft_translator_api_region"
                        id="lwMicrosoftTranslatorAPIRegionKey">
                        <div class="form-group">
                </div>
                  <!--/microsift translator api Region -->
                    <button type="submit" class="btn btn-primary btn-user lw-btn-block-mobile"><?php echo e(__tr('Save')); ?></button>
                    </div>
                </div>
                <div class="form-group" x-cloak x-show="disableMicrosoftTranslatorKeyUpdate">
                <div class="btn-group" id="lwLiveStripeCheckoutExists">
                    <button type="button" disabled="true" class="btn btn-success lw-btn">
                        <?php echo e(__tr('Microsoft Translator API Key exist')); ?>

                    </button>
                    <button type="button"
                        @click="disableMicrosoftTranslatorKeyUpdate = !disableMicrosoftTranslatorKeyUpdate"
                        class="btn btn-light lw-btn"><?php echo e(__tr('Update Key')); ?></button>
                </div>
                </div>
            </form>
        </fieldset>
        <!-- Start recaptcha settings -->
        <fieldset x-data="{panelOpened:false}" x-cloak>
            <legend @click="panelOpened = !panelOpened"><?php echo e(__tr("Google Re-Captcha(V2)")); ?> <small class="text-muted"><?php echo e(__tr('Click to expand/collapse')); ?></small></legend>
            <form x-show="panelOpened" class="lw-ajax-form lw-form" method="post"
            action="<?= route('manage.configuration.write', ['pageType' => 'integrations']) ?>">
            <div class="form-group">
                <div class="alert alert-light ">
                    <a target="_blank" class="text-white"
                      href="https://www.google.com/recaptcha/admin/create">https://www.google.com/recaptcha</a>
                   </div>
                <!-- Recaptcha login settings -->
                <!-- Enable Recaptcha login hidden field -->
                <input type="hidden" name="enable_recaptcha" value="0" />
                <!-- /Enable Recaptcha login hidden field -->
                <div class="custom-control custom-checkbox">
                    <input type="checkbox" class="custom-control-input" onclick="allowFunction()" id="lwAllowRecaptcha"
                        name="enable_recaptcha" value="1" <?=getAppSettings('enable_recaptcha')==true ? 'checked' : ''
                        ?>>
                        <label class="custom-control-label" for="lwAllowRecaptcha">
                            <?php echo e(__tr('Enable ReCaptcha')); ?>

                         </label>
                </div>
                <!-- /allow Recaptcha login input radio field -->
                <div class="mt-3" id="inputFieldShow" style="display:none">
                    <!-- Show after Recaptcha login allow information -->

                    <div class="btn-group" id="lwIsReCaptchaKeysExist">
                        <button type="button" disabled="true" class="btn btn-success lw-btn lw-payment-mbl-view">
                            <?= __tr('ReCaptcha keys are installed.') ?>
                        </button>
                        <button type="button" class="btn btn-light lw-btn" id="lwAddReCaptchaKeys">
                            <?= __tr('Update') ?>
                        </button>
                    </div>
                    <!-- Show after Recaptcha login allow information -->

                    <!-- Recaptcha key exists hidden field -->
                    <input type="hidden" name="reacptcha_keys_exist" id="lwRecaptchaKeysExist" value="" />
                    <!-- Recaptcha key exists hidden field -->
                    <!-- Enable/Disable check box -->
                    <div id="lwReCaptchaLoginInputField" class="px-1">
                        <!-- /Recaptcha Client Secret -->
                        <!--Recaptcha Client Secret -->
                        <div class="">
                            <label for="lwReCaptchaClientSecret">
                                <?= __tr('Site Key') ?>
                            </label>
                            <input type="text" class="form-control form-control-user" name="recaptcha_site_key"
                                placeholder="<?= __tr('Recaptcha Site Key') ?>" id="lwReCaptchaClientSecret">
                        </div>
                        <div class="">
                            <label for="lwSecretKey">
                                <?= __tr('Secret Key') ?>
                            </label>
                            <input type="text" class="form-control form-control-user" name="recaptcha_secret_key"
                                id="lwSecretKey" placeholder="<?= __tr('Recaptcha Secret Key') ?>">
                        </div>
                    </div>
                </div>
                <!-- Enable/Disable check box -->
                <div class="form-group">
                    <!-- /recaptcha -->
                <button type="submit" class="btn btn-primary btn-user lw-btn-block-mobile"><?php echo e(__tr('Save')); ?></button>
                </div>
                <!-- / Recaptcha login settings -->
            </div>
        </form>
        </fieldset>
    <fieldset x-data="{panelOpened:false}" x-cloak>
        <legend @click="panelOpened = !panelOpened"><?php echo e(__tr('API Documentation URL for vendors')); ?> <small class="text-muted"><?php echo e(__tr('Click to expand/collapse')); ?></small></legend>
        <form x-show="panelOpened" class="lw-ajax-form lw-form" method="post" action="<?= route('manage.configuration.write', ['pageType' => 'integrations']) ?>">
            <div class="alert alert-light">
                <?php echo e(__tr('Default API Documentation URL')); ?>

                <div><a class="text-white" target="_blank" href="https://documenter.getpostman.com/view/17404097/2sA35D4hpx">https://documenter.getpostman.com/view/17404097/2sA35D4hpx</a></div>
            </div>
            <?php if (isset($component)) { $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.lw.input-field','data' => ['type' => 'text','id' => 'lwApiDocumentationUrl','dataFormGroupClass' => '','value' => ''.e(getAppSettings('api_documentation_url')).'','label' => __tr('API Documentation URL'),'name' => 'api_documentation_url','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('lw.input-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'text','id' => 'lwApiDocumentationUrl','data-form-group-class' => '','value' => ''.e(getAppSettings('api_documentation_url')).'','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__tr('API Documentation URL')),'name' => 'api_documentation_url','required' => 'true']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $attributes = $__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__attributesOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69)): ?>
<?php $component = $__componentOriginalc48421d24039f3f08f3bb9a3b9254b69; ?>
<?php unset($__componentOriginalc48421d24039f3f08f3bb9a3b9254b69); ?>
<?php endif; ?>
            <div class="form-group">
                <button type="submit" class="btn btn-primary btn-user lw-btn-block-mobile"><?php echo e(__tr('Save')); ?></button>
            </div>
        </form>
    </fieldset>
    <fieldset x-data="{panelOpened:false}" x-cloak>
        <legend @click="panelOpened = !panelOpened"><?php echo e(__tr('Footer Code (Google Analytics etc)')); ?> <small class="text-muted"><?php echo e(__tr('Click to expand/collapse')); ?></small></legend>
        <form  x-show="panelOpened" class="lw-ajax-form lw-form" method="post" action="<?= route('manage.configuration.write', ['pageType' => 'integrations']) ?>">
        <div class="alert alert-light">
            <?php echo e(__tr('Use script tag as required. You can use this place for various codes like Google Analytics etc')); ?>

        </div>
        <div class="mb-3 mb-sm-0">
            <label id="lwFooterCode"><?php echo e(__tr('For all the users')); ?> </label>
            <textarea rows="10" id="lwFooterCode" class="lw-form-field form-control" placeholder="<?php echo e(__tr('You can add your required js code etc here using script tags it will executed all the user pages')); ?>" name="page_footer_code_all"><?php echo getAppSettings('page_footer_code_all'); ?></textarea>
        </div>
        <div class="my-4 mb-sm-0">
            <label id="lwFooterCodeLoggedIn"><?php echo e(__tr('Restricted to logged in users')); ?> </label>
            <textarea rows="10" id="lwFooterCodeLoggedIn" class="lw-form-field form-control" placeholder="<?php echo e(__tr('You can add your required js code etc here using script tags it will only executed on logged in user pages')); ?>"  name="page_footer_code_logged_user_only"><?php echo getAppSettings('page_footer_code_logged_user_only'); ?></textarea>
        </div>
        <div class="form-group" name="footer_code">
            <button type="submit" class="btn btn-primary btn-user lw-btn-block-mobile"><?php echo e(__tr('Save')); ?></button>
        </div>
    </form>
    </fieldset>

</section>


<?php $__env->startPush('appScripts'); ?>
<script>
    "use strict";
        function allowFunction() {
        var checkBox = document.getElementById("lwAllowRecaptcha");
        var text = document.getElementById("inputFieldShow");
        if (checkBox.checked == true) {
            text.style.display = "block";
        } else {
            text.style.display = "none";
        }
    }


    //recaptcha login js block start
    $(document).ready(function() {
        var allowReCaptchaLogin = $("#lwAllowRecaptcha").is(':checked');
        if (allowReCaptchaLogin) {
            $("#inputFieldShow").show()
        }
        //is true then disable input field
        if (!allowReCaptchaLogin) {
            $("#lwReCaptchaLoginInputField").addClass('lw-disabled-block-content');
            $('#lwAddReCaptchaKeys').attr("disabled", true);
        }

        //allow Recaptcha switch on change event
        $("#lwAllowRecaptcha").on('change', function(e) {
            allowReCaptchaLogin = $(this).is(":checked");

            //if condition false then add class
            if (!allowReCaptchaLogin) {
                $("#lwReCaptchaLoginInputField").addClass('lw-disabled-block-content');
                $('#lwAddReCaptchaKeys').attr("disabled", true);
            } else {
                $("#lwReCaptchaLoginInputField").removeClass('lw-disabled-block-content');
                $('#lwAddReCaptchaKeys').attr("disabled", false);
            }
        });

        /*********** Recaptcha Keys setting start here ***********/
        var isReCaptchaKeysInstalled = "<?= getAppSettings('enable_recaptcha') ?>",
          lwReCaptchaLoginInputField = $('#lwReCaptchaLoginInputField'),
          lwIsReCaptchaKeysExist = $('#lwIsReCaptchaKeysExist');

        // Check if test Recaptcha login keys are installed
        if (isReCaptchaKeysInstalled) {
            lwReCaptchaLoginInputField.hide();
            lwIsReCaptchaKeysExist.show();
        } else {
            lwIsReCaptchaKeysExist.hide();
        }
        // Update Recaptcha login checkout testing keys
        $('#lwAddReCaptchaKeys').click(function() {
            $("#lwRecaptchaKeysExist").val(0);
            lwReCaptchaLoginInputField.show();
            lwIsReCaptchaKeysExist.hide();
        });
        /*********** Recaptcha Keys setting end here ***********/
    });
    //Recaptcha login js block end

    //on integration setting success callback function
    function onIntegrationSettingCallback(responseData) {
        //check reaction code is 1 then reload view
        if (responseData.reaction == 1) {
            showConfirmation("<?php echo e(__tr('Settings Updated Successfully')); ?>", function() {
                __Utils.viewReload();
            }, {
                confirmButtonText: "<?php echo e(__tr('Reload Page')); ?>",
                type: "success"
            });
        }
    };
</script>
<?php $__env->stopPush(); ?><?php /**PATH D:\waba9\resources\views/configuration/other.blade.php ENDPATH**/ ?>