@props(['url' => null, 'step' => null, 'label' => 'Back']) @php $finalUrl = !empty($url) ? $url : url()->previous(); @endphp @if(isset($step) && $step > 1) merge(['class' => 'btn btn-outline-secondary text-nowrap']) }} wire:click="prevStep" wire:loading.attr="disabled"> {{ $label }} Loading... @else merge(['class' => 'btn btn-outline-secondary text-nowrap']) }}> {{ $label }} @endif