Skip to content

Commit

Permalink
Checkout progressbar steps correct fallback (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored Sep 3, 2024
1 parent bd86864 commit 0578b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/checkout/partials/progressbar.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<nav class="grid grid-cols-12 my-5">
@foreach (array_slice((config('rapidez.frontend.checkout_steps.'.config('rapidez.store_code')) ?? config('rapidez.checkout_steps.default')), 0, -1) as $stepTitle)
@foreach (array_slice((config('rapidez.frontend.checkout_steps.'.config('rapidez.store_code')) ?: config('rapidez.frontend.checkout_steps.default')), 0, -1) as $stepTitle)
<button class="col-span-3 relative focus:outline-none" :disabled="checkout.step < {{ $loop->index }}" :class="checkout.step < {{ $loop->index }} ? 'cursor-default' : ''" v-on:click="if (checkout.step >= {{ $loop->index }}) goToStep({{ $loop->index }})">
@if (!$loop->last)
<div :class="checkout.step > {{ $loop->index }} ? 'bg-neutral' : 'bg-inactive'" class="absolute flex w-full h-0.5 top-5 left-1/2"></div>
Expand Down

0 comments on commit 0578b82

Please sign in to comment.