

<?php $__env->startSection('setting-content'); ?>
<form class="col-12 col-md-9 d-flex flex-column" action="<?php echo e(route('admin.setting.update-nodejs')); ?>" method="post">
    <?php echo csrf_field(); ?>
    <div class="card-body">
        <h2><?php echo e(__(key: 'Signaling')); ?></h2>
        <small class="text-muted">
            <?php echo e(__('Please restart the signaling server after making any changes to this section.')); ?>

        </small>

        <div class="row mb-3 mt-3">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('SSL Key Path')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('Path to your SSL key')); ?>"></i>
                    </label>
                    <input type="text" name="KEY_PATH" class="form-control <?php $__errorArgs = ['KEY_PATH'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                        maxlength="100" value="<?php echo e(old('KEY_PATH') ?? getSetting('KEY_PATH')); ?>"
                        placeholder="<?php echo e(__('Key Path')); ?>">
                    <?php $__errorArgs = ['KEY_PATH'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="invalid-feedback">
                        <?php echo e($message); ?>

                    </div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('SSL Certificate Path')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('Path to your SSL certificate')); ?>"></i>
                    </label>
                    <input type="text" name="CERT_PATH" class="form-control <?php $__errorArgs = ['CERT_PATH'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                        value="<?php echo e(old('CERT_PATH') ?? getSetting('CERT_PATH')); ?>" maxlength="100"
                        placeholder="<?php echo e(__('SSL Certificate Path')); ?>">
                    <?php $__errorArgs = ['CERT_PATH'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="invalid-feedback">
                        <?php echo e($message); ?>

                    </div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('IP Address')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('Server IP address')); ?>"></i>
                    </label>
                    <input type="text" name="IP" class="form-control <?php $__errorArgs = ['IP'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                        maxlength="15" value="<?php echo e(old('IP') ?? getSetting('IP')); ?>"
                        placeholder="<?php echo e(__('IP Address')); ?>">
                    <?php $__errorArgs = ['IP'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="invalid-feedback">
                        <?php echo e($message); ?>

                    </div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('Announced IP Address')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('Useful when running application behind NAT with private IP')); ?>"></i>
                    </label>
                    <input type="text" name="ANNOUNCED_IP"
                        class="form-control <?php $__errorArgs = ['ANNOUNCED_IP'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" maxlength="15"
                        value="<?php echo e(old('ANNOUNCED_IP') ?? getSetting('ANNOUNCED_IP')); ?>"
                        placeholder="<?php echo e(__('Announced IP Address')); ?>">
                    <?php $__errorArgs = ['ANNOUNCED_IP'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="invalid-feedback">
                        <?php echo e($message); ?>

                    </div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>
        </div>

        <div class="row mb-3">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('Port')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('Port to run NodeJS on')); ?>"></i>
                    </label>
                    <input type="number" min="10" max="9999" name="PORT" maxlength="4"
                        class="form-control <?php $__errorArgs = ['PORT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                        value="<?php echo e(old('PORT') ?? getSetting('PORT')); ?>" placeholder="<?php echo e(__('Port')); ?>">
                    <?php $__errorArgs = ['PORT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="invalid-feedback">
                        <?php echo e($message); ?>

                    </div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('RTC MIN PORT')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('Minimun RTC port')); ?>"></i>
                    </label>
                    <input type="text" name="RTC_MIN_PORT" maxlength="500"
                        class="form-control <?php $__errorArgs = ['RTC_MIN_PORT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                        value="<?php echo e(old('RTC_MIN_PORT') ?? getSetting('RTC_MIN_PORT')); ?>"
                        placeholder="<?php echo e(__('RTC MIN PORT')); ?>">
                    <?php $__errorArgs = ['RTC_MIN_PORT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="invalid-feedback">
                        <?php echo e($message); ?>

                    </div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>
        </div>


        <div class="row mb-3">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('RTC MAX PORT')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('Maximum RTC port')); ?>"></i>
                    </label>
                    <input type="text" name="RTC_MAX_PORT" maxlength="500"
                        class="form-control <?php $__errorArgs = ['RTC_MAX_PORT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                        value="<?php echo e(old('RTC_MAX_PORT') ?? getSetting('RTC_MAX_PORT')); ?>"
                        placeholder="<?php echo e(__('RTC MAX PORT')); ?>">
                    <?php $__errorArgs = ['RTC_MAX_PORT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="invalid-feedback">
                        <?php echo e($message); ?>

                    </div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>
        </div>

        <hr>

        <div class="row mb-3">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('AI Chatbot')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('Choose the AI chatbot that best suits your needs.')); ?>"></i>
                    </label>
                    <select name="AI_CHATBOT" class="form-select" placeholder="<?php echo e(__('Select Option')); ?>">
                        <option value="" selected><?php echo e(__('Select Option')); ?></option>
                        <?php $__currentLoopData = config('ai-chatbots'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chatbot): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($chatbot); ?>" <?php if(getSetting('AI_CHATBOT')==$chatbot): echo 'selected'; endif; ?>>
                            <?php echo e(__($chatbot)); ?>

                        </option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                    <?php $__errorArgs = ['AI_CHATBOT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="invalid-feedback">
                        <?php echo e($message); ?>

                    </div>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="form-label"><?php echo e(__('AI Chatbot API Key')); ?>

                        <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                            title="<?php echo e(__('You can find the steps to generate an API key in the documentation.')); ?>"></i>
                    </label>
                    <div class="input-group input-group-flat">
                        <input type="password" name="AI_CHATBOT_API_KEY" maxlength="200"
                            class="form-control <?php $__errorArgs = ['AI_CHATBOT_API_KEY'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                            value="<?php echo e(isDemoMode() ? __('This field is hidden in the demo mode') : old('AI_CHATBOT_API_KEY') ?? getSetting('AI_CHATBOT_API_KEY')); ?>"
                            placeholder="<?php echo e(__('AI Chatbot API Key')); ?>">
                        <?php $__errorArgs = ['AI_CHATBOT_API_KEY'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="invalid-feedback">
                            <?php echo e($message); ?>

                        </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                        <span class="input-group-text">
                            <a class="link-secondary jm-toggle-password" data-bs-toggle="tooltip">
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                    fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
                                    <path
                                        d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z" />
                                    <path
                                        d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0" />
                                </svg>
                            </a>
                        </span>
                    </div>
                </div>

            </div>
            <div class="row mb-3">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="form-label"><?php echo e(__('AI Chatbot Model')); ?>

                            <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                                title="<?php echo e(__('Refer to the documentation to select the model that best suits your needs.')); ?>"></i>
                        </label>
                        <input type="text" name="AI_CHATBOT_MODEL" maxlength="100"
                            class="form-control <?php $__errorArgs = ['AI_CHATBOT_MODEL'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                            value="<?php echo e(old('AI_CHATBOT_MODEL') ?? getSetting('AI_CHATBOT_MODEL')); ?>"
                            placeholder="<?php echo e(__('AI Chatbot Model')); ?>">
                        <?php $__errorArgs = ['AI_CHATBOT_MODEL'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="invalid-feedback">
                            <?php echo e($message); ?>

                        </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="form-label"><?php echo e(__('AI Chatbot Seconds')); ?>

                            <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                                title="<?php echo e(__('The number of seconds a user must wait before sending another message.')); ?>"></i>
                        </label>
                        <input type="number" name="AI_CHATBOT_SECONDS" maxlength="3"
                            class="form-control <?php $__errorArgs = ['AI_CHATBOT_SECONDS'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                            value="<?php echo e(old('AI_CHATBOT_SECONDS') ?? getSetting('AI_CHATBOT_SECONDS')); ?>"
                            placeholder="<?php echo e(__('AI Chatbot Seconds')); ?>">
                        <?php $__errorArgs = ['AI_CHATBOT_SECONDS'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="invalid-feedback">
                            <?php echo e($message); ?>

                        </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>
            </div>
            <div class="row mb-3">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="form-label"><?php echo e(__('AI Chatbot Message Limit')); ?>

                            <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                                title="<?php echo e(__('The maximum number of messages a user can send during a meeting.')); ?>"></i>
                        </label>
                        <input type="number" name="AI_CHATBOT_MESSAGE_LIMIT" maxlength="3"
                            class="form-control <?php $__errorArgs = ['AI_CHATBOT_MESSAGE_LIMIT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                            value="<?php echo e(old('AI_CHATBOT_MESSAGE_LIMIT') ?? getSetting('AI_CHATBOT_MESSAGE_LIMIT')); ?>"
                            placeholder="<?php echo e(__('AI Chatbot Message Limit')); ?>">
                        <?php $__errorArgs = ['AI_CHATBOT_MESSAGE_LIMIT'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="invalid-feedback">
                            <?php echo e($message); ?>

                        </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="form-label"><?php echo e(__('AI Chatbot Maximum Conversation Length')); ?>

                            <i class="bi bi-info-circle-fill" data-bs-toggle="tooltip" data-bs-placement="right"
                                title="<?php echo e(__('The maximum number of recent messages sent to AI Chatbot')); ?>"></i>
                        </label>
                        <input type="number" name="AI_CHATBOT_MAX_CONVERSATION_LENGTH" maxlength="3"
                            class="form-control <?php $__errorArgs = ['AI_CHATBOT_MAX_CONVERSATION_LENGTH'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                            value="<?php echo e(old('AI_CHATBOT_MAX_CONVERSATION_LENGTH') ?? getSetting('AI_CHATBOT_MAX_CONVERSATION_LENGTH')); ?>"
                            placeholder="<?php echo e(__('AI Chatbot Maximum Conversation Length')); ?>">
                        <?php $__errorArgs = ['AI_CHATBOT_MAX_CONVERSATION_LENGTH'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <div class="invalid-feedback">
                            <?php echo e($message); ?>

                        </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="card-footer bg-transparent">
            <div class="btn-list justify-content-end">
                <button type="submit" name="submit" class="btn btn-primary mt-3"><?php echo e(__('Save')); ?></button>
            </div>
        </div>
</form>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.setting.index', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\s.mutolib\Downloads\jupitermeet_pro\resources\views/admin/setting/nodejs.blade.php ENDPATH**/ ?>