@props(['current' => 1]) {{-- Where a customer is in buying hosting, shown at the top of every screen of it: choose a plan, say which domain it is for, review and order, pay. Four steps, the shape a hosting client area has made familiar, and no more of them than there are decisions to make. `current` is the step being done; a number past the last one means everything is done, which is how the invoice reads once it has been paid. Plain markup. Nothing here is a link: going back is what the pages' own links are for, and a step that can be clicked ahead of its turn is a step that can be skipped. --}} @php $steps = ['Choose plan', 'Domain', 'Review & order', 'Payment']; $shown = min(max((int) $current, 1), count($steps)); @endphp