@php $state = $getState(); $state = is_array($state) ? $state : []; $metrics = is_array($state['metrics'] ?? null) ? $state['metrics'] : []; $highlights = is_array($state['highlights'] ?? null) ? $state['highlights'] : []; $nextActions = is_array($state['next_actions'] ?? null) ? $state['next_actions'] : []; $publishBlockers = is_array($state['publish_blockers'] ?? null) ? $state['publish_blockers'] : []; @endphp
@foreach ($metrics as $metric) @php $label = is_string($metric['label'] ?? null) ? $metric['label'] : null; $value = is_string($metric['value'] ?? null) ? $metric['value'] : null; @endphp @continue($label === null || $value === null)
{{ $label }}
{{ $value }}
@endforeach
@if ($highlights !== [])
Highlights
@endif @if ($nextActions !== [])
Next actions
@endif
Publication readiness
@if ($publishBlockers === [])
This review is ready for publication and executive-pack export.
@else @endif