@php // Componente reutilizável de histórico de auditoria por aba de configuração (V2). // Uso: // @include('v2-supportconfigs::cms.userConfigs.components.config-history', [ // 'tabLabel' => 'Temas e Cores', // 'monitoredKeys' => ['theme_primary_color', ...] // ]) // // NOTA: Zero dependência V1 — usa PortalConfigsService → activity_log. /** @var \V2\Modules\Support\SupportConfigs\Services\PortalConfigsService $portalConfigsService */ $portalConfigsService = app(\V2\Modules\Support\SupportConfigs\Services\PortalConfigsService::class); $auditHistory = $portalConfigsService->getHistory($monitoredKeys, 10); @endphp @include('v2-service-activitylogger::cms.timeline', [ 'history' => $auditHistory, 'title' => 'Histórico de Alterações — ' . $tabLabel ])