@extends('admin.layouts.app') @section('content')
@include('admin.message')
@if($sections->isNotEmpty()) @if($pageType == 'error') @else @endif @endif @forelse($groupedSettings as $sectionName => $settings)
{{ ucfirst($sectionName) }} Editar Sección
@foreach($settings as $setting) @endforeach
Etiqueta Valor Actual Tipo IA Estado Acciones
{{ $setting->label }}
{{ $setting->key }} @if($setting->help_text)
{{ $setting->help_text }} @endif
@php $currentValue = $setting->use_ai_value && $setting->ai_value ? $setting->ai_value : $setting->value; @endphp @if($setting->field_type == 'boolean') {{ $currentValue == 'true' ? 'Activo' : 'Inactivo' }} @elseif($setting->field_type == 'image') @if($currentValue) @else Sin imagen @endif @elseif($setting->field_type == 'json') {{ Str::limit($currentValue, 50) }} @else {{ Str::limit($currentValue, 60) }} @endif {{ $setting->field_type }} @if($setting->ai_value) @if($setting->use_ai_value) Usando IA @else IA disponible @endif @if($setting->ai_generated_at)
{{ $setting->ai_generated_at->diffForHumans() }} @endif @else @endif
{{ $setting->is_active ? 'Activo' : 'Inactivo' }}
@empty
No hay configuraciones para esta página. Crear una nueva
@endforelse @if($groupedSettings->isNotEmpty())
@if(aiIntegrationEnabled()) @endif
@endif
@endsection @section('customJs') @endsection