<?php $__env->startSection('title', 'AI Configuration'); ?>

<?php $__env->startSection('breadcrumb'); ?>
    <div class="section-header-breadcrumb">
        <div class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>">Dashboard</a></div>
        <div class="breadcrumb-item"><a href="<?php echo e(route('admin.settings.index')); ?>">Settings</a></div>
        <div class="breadcrumb-item active">AI Configuration</div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main-content'); ?>
    <div class="row">
        <div class="col-12 col-md-6 col-lg-6">
            <div class="card">
                <form action="<?php echo e(route('admin.settings.ai.update')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('PUT'); ?>

                    <div class="card-header">
                        <h4>AI Configuration</h4>
                    </div>

                    <div class="card-body">
                        <div class="form-group">
                            <label for="gemini_api_key">Gemini API Key</label>
                            <input type="password" name="gemini_api_key" id="gemini_api_key" class="form-control"
                                value="<?php echo e($settings['gemini_api_key'] ?? ''); ?>" placeholder="Enter your Gemini API key">
                            <small class="form-text text-muted">
                                Leave blank to keep the current key unchanged (if set).
                            </small>
                        </div>

                        <div class="form-group">
                            <label for="gemini_model">Gemini Model</label>
                            <select name="gemini_model" id="gemini_model" class="form-control select2">
                                <?php $__currentLoopData = $models; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($key); ?>"
                                        <?php echo e(($settings['gemini_model'] ?? $defaultModel) == $key ? 'selected' : ''); ?>>
                                        <?php echo e($label); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            <small class="form-text text-muted">
                                default: <?php echo e($defaultModel); ?>

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

                    <div class="card-footer text-right">
                        <button type="submit" class="btn btn-primary">Save Changes</button>
                    </div>
                </form>
            </div>
        </div>

        <div class="col-12 col-md-6 col-lg-6">
            <div class="card">
                <div class="card-header">
                    <h4>About Gemini AI</h4>
                </div>
                <div class="card-body">
                    <p>
                        Google Gemini is a powerful multimodal AI model capable of understanding and generating text, code,
                        and more.
                    </p>
                    <p>
                        To get your API key, visit the <a href="https://aistudio.google.com/" target="_blank">Google AI
                            Studio</a>.
                    </p>
                    <div class="alert alert-info">
                        <strong>Note:</strong> Ensure your billing is enabled for higher rate limits if you plan to use this
                        in production.
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mahmudul/Codecanyone/edu_ex_full/Eduex_laravel/resources/views/admin/settings/ai.blade.php ENDPATH**/ ?>