@php $context = is_array($this->run->context ?? null) ? $this->run->context : []; $targetScope = $context['target_scope'] ?? []; $targetScope = is_array($targetScope) ? $targetScope : []; $failures = is_array($this->run->failure_summary ?? null) ? $this->run->failure_summary : []; @endphp
Run ID: {{ (int) $this->run->getKey() }}
Workspace: {{ (string) ($this->run->workspace?->name ?? '—') }}
Operation: {{ (string) $this->run->type }}
Initiator: {{ (string) $this->run->initiator_name }}
Status: {{ (string) $this->run->status }}
Outcome: {{ (string) $this->run->outcome }}
Started: {{ $this->run->started_at?->format('Y-m-d H:i') ?? '—' }}
Completed: {{ $this->run->completed_at?->format('Y-m-d H:i') ?? '—' }}
@php $entraTenantId = $targetScope['entra_tenant_id'] ?? null; $entraTenantName = $targetScope['entra_tenant_name'] ?? null; $entraTenantId = is_string($entraTenantId) && $entraTenantId !== '' ? $entraTenantId : null; $entraTenantName = is_string($entraTenantName) && $entraTenantName !== '' ? $entraTenantName : null; @endphp @if ($entraTenantId === null && $entraTenantName === null)
No target scope details were recorded for this run.
@else
@if ($entraTenantName !== null)
Entra tenant: {{ $entraTenantName }}
@endif @if ($entraTenantId !== null)
Entra tenant ID: {{ $entraTenantId }}
@endif
@endif
@if ((string) $this->run->status !== 'completed')
Report unavailable while the run is in progress. Use “Refresh” to re-check stored status.
@elseif ((string) $this->run->outcome === 'succeeded')
No failures were reported.
@elseif ($failures === [])
Report unavailable. The run completed, but no failure details were recorded.
@else
Findings
    @foreach ($failures as $failure) @php $reasonCode = is_array($failure) ? ($failure['reason_code'] ?? null) : null; $message = is_array($failure) ? ($failure['message'] ?? null) : null; $reasonCode = is_string($reasonCode) && $reasonCode !== '' ? $reasonCode : null; $message = is_string($message) && $message !== '' ? $message : null; @endphp @if ($reasonCode !== null || $message !== null)
  • @if ($reasonCode !== null)
    {{ $reasonCode }}
    @endif @if ($message !== null)
    {{ $message }}
    @endif
  • @endif @endforeach
@endif