@props(['steps', 'active' => 1, 'completed' => 0, 'icons' => []])
class('grid gap-2 sm:grid-flow-col sm:auto-cols-fr') }} aria-label="Etapas del proceso">@foreach($steps as $step)
@php
$done = $loop->iteration <= (int) $completed;
$current = $loop->iteration === (int) $active;
@endphp
- $current || $done, 'border-slate-200 text-slate-500 dark:border-slate-700 dark:text-slate-400' => !$current && !$done]) @if($current) aria-current="step" @endif>{{ $step }}{{ $done ? 'Completado' : ($current ? 'Etapa actual' : 'Pendiente') }}
@endforeach