@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
@foreach ($highlights as $highlight)
@continue(! is_string($highlight) || trim($highlight) === '')
- {{ $highlight }}
@endforeach
@endif
@if ($nextActions !== [])
Next actions
@foreach ($nextActions as $action)
@continue(! is_string($action) || trim($action) === '')
- {{ $action }}
@endforeach
@endif
Publication readiness
@if ($publishBlockers === [])
This review is ready for publication and executive-pack export.
@else
@foreach ($publishBlockers as $blocker)
@continue(! is_string($blocker) || trim($blocker) === '')
- {{ $blocker }}
@endforeach
@endif