<?php $__env->startSection('setting_content'); ?>
    <form method="POST" action="<?php echo e(route('admin.setting.ai.config.update')); ?>" class="profile-settings style-lg">
        <?php echo csrf_field(); ?>
        <div class="row c-gx-4 gy-4">
            <div class="col-xl-4 col-sm-6">
                <div class="form-group">
                    <label class="required form--label style-two"><?php echo app('translator')->get('Select Default Engine'); ?></label>
                    <select class="select2 form-control" name="default_engine" data-minimum-results-for-search="-1" required>
                        <option value=""><?php echo app('translator')->get('Select one model'); ?></option>
                        <option value="<?php echo e(\App\Constants\Status::GEMINI_MODEL); ?>" <?php if(gs('default_engine') == \App\Constants\Status::GEMINI_MODEL): echo 'selected'; endif; ?>>
                            <?php echo app('translator')->get('Gemini Model'); ?>
                        </option>
                        <option value="<?php echo e(\App\Constants\Status::OPENAI_MODEL); ?>" <?php if(gs('default_engine') == \App\Constants\Status::OPENAI_MODEL): echo 'selected'; endif; ?>>
                            <?php echo app('translator')->get('OpenAI Model'); ?>
                        </option>
                    </select>
                </div>
            </div>

            <div class="col-xl-4 col-sm-6">
                <div class="form-group">
                    <div class="d-flex justify-content-between align-items-center flex-wrap gap-3">
                        <label class="form--label style-two"><?php echo app('translator')->get('Gemini API Key'); ?>
                            <i class="las la-info-circle"
                                title="<?php echo app('translator')->get('API key used to connect with the engine provider.'); ?>"></i>
                        </label>
                        <a href="https://ai.google.dev/gemini-api/docs/text-generation" target="_blank"><?php echo app('translator')->get('Get API Key'); ?></a>
                    </div>
                    <input class="form-control" type="text" name="gemini_api_key" value="<?php echo e(gs('gemini_api_key')); ?>">
                </div>
            </div>

            <div class="col-xl-4 col-sm-6">
                <div class="form-group">
                    <div class="d-flex justify-content-between align-items-center flex-wrap gap-3">
                        <label class="form--label style-two"><?php echo app('translator')->get('OpenAI API Key'); ?>
                            <i class="las la-info-circle"
                                title="<?php echo app('translator')->get('API key used to connect with the engine provider.'); ?>"></i>
                        </label>
                        <a href="https://platform.openai.com/settings/organization/api-keys" target="_blank"><?php echo app('translator')->get('Get API Key'); ?></a>
                    </div>
                    <input class="form-control" type="text" name="openai_api_key" value="<?php echo e(gs('openai_api_key')); ?>">
                </div>
            </div>

            <div class="col-xl-4 col-sm-6">
                <div class="form-group">
                    <label class="form--label style-two"><?php echo app('translator')->get('OpenAI Model'); ?></label>
                    <select class="select2 form-control" name="openai_api_model" data-minimum-results-for-search="-1">
                        <option value=""><?php echo app('translator')->get('Select one model'); ?></option>
                        <option value="gpt-3.5-turbo" <?php if(gs('openai_api_model') == 'gpt-3.5-turbo'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-3.5 Turbo'); ?></option>
                        <option value="gpt-3.5-turbo-0125" <?php if(gs('openai_api_model') == 'gpt-3.5-turbo-0125'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-3.5 Turbo (0125)'); ?></option>
                        <option value="gpt-3.5-turbo-1106" <?php if(gs('openai_api_model') == 'gpt-3.5-turbo-1106'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-3.5 Turbo (1106)'); ?></option>
                        <option value="gpt-3.5-turbo-16k" <?php if(gs('openai_api_model') == 'gpt-3.5-turbo-16k'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-3.5 Turbo 16K'); ?></option>
                        <option value="gpt-3.5-turbo-instruct" <?php if(gs('openai_api_model') == 'gpt-3.5-turbo-instruct'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-3.5 Turbo Instruct'); ?></option>
                        <option value="gpt-3.5-turbo-instruct-0914" <?php if(gs('openai_api_model') == 'gpt-3.5-turbo-instruct-0914'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-3.5 Turbo Instruct (0914)'); ?></option>
                        <option value="gpt-4.1" <?php if(gs('openai_api_model') == 'gpt-4.1'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4.1'); ?></option>
                        <option value="gpt-4.1-2025-04-14" <?php if(gs('openai_api_model') == 'gpt-4.1-2025-04-14'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4.1 (2025-04-14)'); ?></option>
                        <option value="gpt-4.1-mini" <?php if(gs('openai_api_model') == 'gpt-4.1-mini'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4.1 Mini'); ?></option>
                        <option value="gpt-4.1-mini-2025-04-14" <?php if(gs('openai_api_model') == 'gpt-4.1-mini-2025-04-14'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4.1 Mini (2025-04-14)'); ?></option>
                        <option value="gpt-4.1-nano" <?php if(gs('openai_api_model') == 'gpt-4.1-nano'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4.1 Nano'); ?></option>
                        <option value="gpt-4.1-nano-2025-04-14" <?php if(gs('openai_api_model') == 'gpt-4.1-nano-2025-04-14'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4.1 Nano (2025-04-14)'); ?></option>
                        <option value="gpt-4o" <?php if(gs('openai_api_model') == 'gpt-4o'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4o'); ?></option>
                        <option value="gpt-4o-2024-05-13" <?php if(gs('openai_api_model') == 'gpt-4o-2024-05-13'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4o (2024-05-13)'); ?></option>
                        <option value="gpt-4o-2024-08-06" <?php if(gs('openai_api_model') == 'gpt-4o-2024-08-06'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4o (2024-08-06)'); ?></option>
                        <option value="gpt-4o-2024-11-20" <?php if(gs('openai_api_model') == 'gpt-4o-2024-11-20'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4o (2024-11-20)'); ?></option>
                        <option value="gpt-4o-mini" <?php if(gs('openai_api_model') == 'gpt-4o-mini'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4o Mini'); ?></option>
                        <option value="gpt-4o-mini-2024-07-18" <?php if(gs('openai_api_model') == 'gpt-4o-mini-2024-07-18'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-4o Mini (2024-07-18)'); ?></option>
                        <option value="o4-mini" <?php if(gs('openai_api_model') == 'o4-mini'): echo 'selected'; endif; ?>><?php echo app('translator')->get('O4 Mini'); ?></option>
                        <option value="o4-mini-2025-04-16" <?php if(gs('openai_api_model') == 'o4-mini-2025-04-16'): echo 'selected'; endif; ?>><?php echo app('translator')->get('O4 Mini (2025-04-16)'); ?></option>
                        <option value="gpt-5" <?php if(gs('openai_api_model') == 'gpt-5'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-5'); ?></option>
                        <option value="gpt-5-mini" <?php if(gs('openai_api_model') == 'gpt-5-mini'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-5 Mini'); ?></option>
                        <option value="gpt-5-nano" <?php if(gs('openai_api_model') == 'gpt-5-nano'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-5 Nano'); ?></option>
                        <option value="gpt-5-pro" <?php if(gs('openai_api_model') == 'gpt-5-pro'): echo 'selected'; endif; ?>><?php echo app('translator')->get('GPT-5 Pro'); ?></option>
                    </select>
                </div>
            </div>
        </div>

        <div class="profile-settings-submit">
            <button class="btn btn--base btn--md w-100"><?php echo app('translator')->get('Submit'); ?></button>
        </div>
    </form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.general.index', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\projects\custom_viserdesk\Files\core\resources\views/admin/general/ai_config.blade.php ENDPATH**/ ?>