@php $diff = $getState() ?? []; $summary = $diff['summary'] ?? []; $added = is_array($diff['added'] ?? null) ? $diff['added'] : []; $removed = is_array($diff['removed'] ?? null) ? $diff['removed'] : []; $changed = is_array($diff['changed'] ?? null) ? $diff['changed'] : []; $renderRow = static function (array $row): array { return [ 'include_exclude' => (string) ($row['include_exclude'] ?? 'include'), 'target_label' => (string) ($row['target_label'] ?? 'Unknown target'), 'filter_type' => (string) ($row['filter_type'] ?? 'none'), 'filter_id' => $row['filter_id'] ?? null, 'intent' => $row['intent'] ?? null, 'mode' => $row['mode'] ?? null, ]; }; @endphp