@php $surface = is_array($surface ?? null) ? $surface : []; $coreState = is_string($surface['coreState'] ?? null) ? (string) $surface['coreState'] : 'unavailable'; $hostVariation = is_array($surface['hostVariation'] ?? null) ? $surface['hostVariation'] : []; $diagnostics = is_array($surface['diagnostics'] ?? null) ? $surface['diagnostics'] : []; $showDiagnosticsZone = (bool) ($diagnostics['hasTechnicalZone'] ?? true) && ! (bool) ($hostVariation['supportsTechnicalDetailsTrigger'] ?? false); $redactionNotes = is_array($redactionNotes ?? null) ? array_values(array_filter($redactionNotes, 'is_string')) : []; $canAcknowledge = (bool) ($canAcknowledge ?? false); $ackAction = $ackAction ?? null; $showAssist = (bool) ($showAssist ?? false); $assistActionName = is_string($assistActionName ?? null) && trim((string) $assistActionName) !== '' ? trim((string) $assistActionName) : 'wizardVerificationRequiredPermissionsAssist'; $linkBehavior = $linkBehavior ?? app(\App\Support\Verification\VerificationLinkBehavior::class); $emptyState = is_array($surface['emptyState'] ?? null) ? $surface['emptyState'] : null; @endphp