<div class="p-4 bg-white rounded shadow">
    <h2 class="text-lg font-semibold mb-4">🛡️ Module Visibility Control</h2>
    @foreach($modules as $module)
        <div class="flex justify-between items-center py-2 border-b">
            <span class="capitalize">{{ $module->module_name }} Option</span>
            <button
                wire:click="toggleVisibility({{ $module->id }})"
                class="px-3 py-1 rounded text-white
                    {{ $module->is_visible ? 'bg-green-600' : 'bg-red-600' }}">
                {{ $module->is_visible ? 'Visible' : 'Hidden' }}
            </button>
        </div>
    @endforeach
</div>
