@php $state = $getState(); $state = is_array($state) ? $state : []; $connectionState = is_string($state['state'] ?? null) ? (string) $state['state'] : 'needs_action'; $ctaUrl = is_string($state['cta_url'] ?? null) ? (string) $state['cta_url'] : '#'; $displayName = is_string($state['display_name'] ?? null) ? (string) $state['display_name'] : null; $provider = is_string($state['provider'] ?? null) ? (string) $state['provider'] : null; $status = is_string($state['status'] ?? null) ? (string) $state['status'] : null; $healthStatus = is_string($state['health_status'] ?? null) ? (string) $state['health_status'] : null; $lastCheck = is_string($state['last_health_check_at'] ?? null) ? (string) $state['last_health_check_at'] : null; $lastErrorReason = is_string($state['last_error_reason_code'] ?? null) ? (string) $state['last_error_reason_code'] : null; $isMissing = $connectionState === 'needs_action'; @endphp
Provider connection
@if ($isMissing)
Needs action: no default Microsoft provider connection is configured.
@else
{{ $displayName ?? 'Unnamed connection' }}
@endif
Open Provider Connections
@unless ($isMissing)
Provider
{{ $provider ?? 'n/a' }}
Status
{{ $status ?? 'n/a' }}
Health
{{ $healthStatus ?? 'n/a' }}
Last check
{{ $lastCheck ?? 'n/a' }}
@if ($lastErrorReason)
Last error reason: {{ $lastErrorReason }}
@endif @endunless