@php
$state = $getState();
$state = is_array($state) ? $state : [];
$summary = is_string($state['summary'] ?? null) ? $state['summary'] : null;
$highlights = is_array($state['highlights'] ?? null) ? $state['highlights'] : [];
$items = is_array($state['items'] ?? null) ? $state['items'] : [];
@endphp
@if ($summary)
{{ $summary }}
@endif
@if ($highlights !== [])
@foreach ($highlights as $highlight)
@php
$label = is_string($highlight['label'] ?? null) ? $highlight['label'] : null;
$value = is_string($highlight['value'] ?? null) ? $highlight['value'] : null;
@endphp
@continue($label === null || $value === null)
- {{ $label }}
- {{ $value }}
@endforeach
@endif
@if ($items !== [])
Recent items
@foreach ($items as $item)
@continue(! is_string($item) || trim($item) === '')
- {{ $item }}
@endforeach
@endif