@php
$steps = [
1 => 'Basic Details',
2 => 'Property Details',
3 => 'Location Details',
4 => 'Photos & Videos',
];
$currentStep = request()->route()->getName();
preg_match('/step_(\d+)/', $currentStep, $matches);
$activeStep = isset($matches[1]) ? (int) $matches[1] : 1;
@endphp
@foreach ($steps as $step => $label)
{{ $step }}
{{ $label }}
@if ($step < count($steps))
@endif
@endforeach