{{-- Progress log: each update with its note and photos. Expects $updates (with user + photos). --}} @forelse ($updates as $u) @php [$label, $tone, $icon] = match ($u->type) { 'completed' => ['Completed', 'success', 'check-circle-fill'], 'reopened' => ['Reopened', 'warning', 'arrow-counterclockwise'], 'status' => ['Status', 'secondary', 'flag'], 'created' => ['Order created', 'secondary', 'plus-circle'], 'assigned' => ['Assigned', 'secondary', 'diagram-2'], default => ['Update', 'primary', 'arrow-up-circle'], }; @endphp