@if ($setupGuide) @php $completedCount = collect($setupGuide['steps'])->where('complete', true)->count(); $totalCount = count($setupGuide['steps']); $progressPercent = $totalCount > 0 ? (int) round($completedCount / $totalCount * 100) : 0; @endphp