<?php
    $stepsList = [
        'welcome'     => ['route' => 'install.welcome',     'label' => '1. Welcome'],
        'environment' => ['route' => 'install.environment',  'label' => '2. Environment'],
        'purchase'    => ['route' => 'install.purchase',     'label' => '3. Verify Purchase'],
        'database'    => ['route' => 'install.database',    'label' => '4. Database'],
        'complete'    => ['route' => null,                  'label' => '5. Complete'],
    ];
    $stepKeys = array_keys($stepsList);
    $currentIndex = array_search($step ?? '', $stepKeys);
    if ($currentIndex === false) {
        $currentIndex = -1;
    }
?>
<?php $__currentLoopData = $stepsList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stepKey => $stepConfig): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php
        $index = array_search($stepKey, $stepKeys);
        $isCompleted = $index < $currentIndex;
        $isActive = $index === $currentIndex;
        $isUpcoming = $index > $currentIndex;
    ?>
    <?php if($isCompleted && $stepConfig['route']): ?>
        <a href="<?php echo e(route($stepConfig['route'])); ?>" class="text-center px-3 py-1 rounded-full bg-emerald-100 text-emerald-700 text-xs font-medium hover:bg-emerald-200"><?php echo e($stepConfig['label']); ?></a>
    <?php elseif($isCompleted && !$stepConfig['route']): ?>
        <span class="text-center px-3 py-1 rounded-full bg-emerald-100 text-emerald-700 text-xs font-medium"><?php echo e($stepConfig['label']); ?></span>
    <?php elseif($isActive): ?>
        <span class="text-center px-3 py-1 rounded-full bg-indigo-600 text-white text-xs font-medium"><?php echo e($stepConfig['label']); ?></span>
    <?php else: ?>
        <span class="text-center px-3 py-1 rounded-full bg-slate-200 text-slate-500 text-xs"><?php echo e($stepConfig['label']); ?></span>
    <?php endif; ?>
    <?php if(!$loop->last): ?>
        <span class="w-6 h-0.5 bg-slate-300"></span>
    <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /home/uzbeacom/pos.uzbea.com/off_pos/resources/views/install/partials/steps.blade.php ENDPATH**/ ?>