<?php $__env->startSection('title', 'Configurações'); ?>
<?php $__env->startSection('page-title', 'Configurações da plataforma'); ?>
<?php $__env->startSection('content'); ?>
    <form method="POST" action="<?php echo e(route('super-admin.settings.update')); ?>" class="max-w-xl space-y-4 rounded-xl border bg-white p-6 shadow-sm">
        <?php echo csrf_field(); ?>
        <label class="flex items-center gap-2 text-sm"><input type="checkbox" name="maintenance_mode" value="1" <?php if($maintenance): echo 'checked'; endif; ?>> Modo manutenção (login tenant)</label>
        <div>
            <label class="text-sm font-medium">IP allowlist (um por linha; vazio = liberado)</label>
            <textarea name="ip_allowlist" rows="4" class="mt-1 w-full rounded border px-3 py-2 text-sm font-mono"><?php echo e($ipAllowlist); ?></textarea>
        </div>
        <fieldset class="space-y-2 text-sm">
            <legend class="font-medium">Feature flags</legend>
            <?php $__currentLoopData = ['ai_auto_reply_default' => 'Atendimento automático padrão', 'new_signups' => 'Novos cadastros', 'public_registration' => 'Registro público']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <label class="flex items-center gap-2"><input type="checkbox" name="flag_<?php echo e($key); ?>" value="1" <?php if($featureFlags[$key] ?? true): echo 'checked'; endif; ?>> <?php echo e($label); ?></label>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </fieldset>
        <button class="rounded-lg bg-emerald-600 px-4 py-2 text-sm font-semibold text-white">Salvar</button>
    </form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.superadmin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/backend/resources/views/super-admin/settings/index.blade.php ENDPATH**/ ?>