@php // State is provided by the ViewEntry (computed checklist sections). $sections = $getState() ?? []; @endphp
@foreach($sections as $section) @php $done = collect($section['items'])->where('status','done')->count(); $total = count($section['items']); @endphp
{{ $section['title'] }}
{{ $done }} / {{ $total }}
@foreach($section['items'] as $it) @php $icon = $it['status'] === 'done' ? '✓' : ($it['status'] === 'pending' ? '○' : '–'); $iconColor = $it['status'] === 'done' ? 'text-green-600 dark:text-green-400' : 'text-gray-400'; $kindClass = $it['kind'] === 'auto' ? 'bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300' : 'bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300'; @endphp
{{ $icon }} {{ $it['label'] }} {{ $it['kind'] }} {{ $it['detail'] }}
@endforeach
@endforeach