<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
            Admin Settings
        </h2>
     <?php $__env->endSlot(); ?>

    <div class="py-12">
        <div class="max-w-4xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
                <div class="p-6">
                    <form method="POST" action="<?php echo e(route('admin.settings.update')); ?>">
                        <?php echo csrf_field(); ?>

                        <div class="space-y-6">
                            <!-- Report Settings -->
                            <div>
                                <h3 class="text-lg font-medium text-gray-900 mb-4">Report Management</h3>
                                <div class="space-y-4">
                                    <div class="flex items-center">
                                        <input id="auto_disable_flagged" name="auto_disable_flagged" type="checkbox" value="1" <?php echo e($settings['auto_disable_flagged'] ? 'checked' : ''); ?> class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
                                        <label for="auto_disable_flagged" class="ml-2 block text-sm text-gray-900">
                                            Immediately disable flagged items
                                        </label>
                                    </div>
                                    <p class="text-sm text-gray-500 ml-6">
                                        When enabled, items that are reported will be immediately hidden from all listings until reviewed by an admin.
                                    </p>

                                    <div class="flex items-center">
                                        <input id="require_report_review" name="require_report_review" type="checkbox" value="1" <?php echo e($settings['require_report_review'] ? 'checked' : ''); ?> class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
                                        <label for="require_report_review" class="ml-2 block text-sm text-gray-900">
                                            Require admin review for all reports
                                        </label>
                                    </div>
                                    <p class="text-sm text-gray-500 ml-6">
                                        When enabled, all reports require manual admin review. When disabled, some actions may be automated based on other settings.
                                    </p>

                                    <div>
                                        <label for="max_reports_before_auto_ban" class="block text-sm font-medium text-gray-700">
                                            Maximum reports before auto-ban
                                        </label>
                                        <div class="mt-1">
                                            <input type="number" id="max_reports_before_auto_ban" name="max_reports_before_auto_ban" min="1" max="10" value="<?php echo e($settings['max_reports_before_auto_ban']); ?>" class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-20 sm:text-sm border-gray-300 rounded-md">
                                        </div>
                                        <p class="text-sm text-gray-500 mt-1">
                                            Number of reports a user can receive before being automatically banned (if auto-review is disabled).
                                        </p>
                                    </div>
                                </div>
                            </div>

                            <!-- Future Settings Sections -->
                            <div class="border-t border-gray-200 pt-6">
                                <h3 class="text-lg font-medium text-gray-900 mb-4">General Settings</h3>
                                <p class="text-sm text-gray-500">Additional settings will be added here in future updates.</p>
                            </div>
                        </div>

                        <div class="mt-8 pt-6 border-t border-gray-200">
                            <div class="flex justify-end">
                                <button type="submit" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                                    Save Settings
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?><?php /**PATH /var/www/html/resources/views/admin/settings/index.blade.php ENDPATH**/ ?>