@php
$typeConfig = [
'feature' => ['icon' => 'sparkles', 'color' => 'blue', 'label' => 'Features'],
'bugfix' => ['icon' => 'bug-ant', 'color' => 'yellow', 'label' => 'Bug Fixes'],
'security' => ['icon' => 'shield-check', 'color' => 'red', 'label' => 'Security'],
'ui' => ['icon' => 'paint-brush', 'color' => 'purple', 'label' => 'UI Changes'],
'api' => ['icon' => 'code-bracket', 'color' => 'cyan', 'label' => 'API Changes'],
'refactor' => ['icon' => 'arrow-path-rounded-square', 'color' => 'green', 'label' => 'Refactors'],
'dependency' => ['icon' => 'cube', 'color' => 'orange', 'label' => 'Dependencies'],
'block' => ['icon' => 'square-3-stack-3d', 'color' => 'pink', 'label' => 'Blocks'],
];
@endphp
@forelse ($this->todosByType as $type => $count)
@php $config = $typeConfig[$type] ?? ['icon' => 'document', 'color' => 'zinc', 'label' => ucfirst($type)]; @endphp
{{ $config['label'] }}
{{ $count }}
@empty
No pending todos
@endforelse