{{-- Progress bar --}}
@php $effectiveStep = auth()->check() ? $step : 0; $progressPercent = $effectiveStep >= 3 ? 100 : ($effectiveStep / 3) * 100; @endphp
Step {{ min($effectiveStep + 1, 4) }} of 4
{{-- Step 0: Connect Google (guest) --}} @if($step === 0)

Connect with Google

We'll access your Google Business Profile to find your business. Takes about a minute.

@endif {{-- Step 1: Start setup (business selection) --}} @if($step === 1 && auth()->check())

Start setup

This takes about a minute.

@if($errorMessage)
{{ $errorMessage }}
@endif @if($isLoading)

Loading your businesses...

@else {{-- Business list (when we have businesses from Google) --}} @if(count($businesses) > 0)
@foreach($businesses as $b) @endforeach
@endif {{-- Search: prominent when no businesses (like top3search), or "Can't find?" when we have list --}} @if(count($businesses) === 0 || $showFindBusiness)

{{ count($businesses) === 0 ? 'Search your business' : 'Can\'t find your business?' }}

Search by business name and town (e.g. Smith Motors, London).

@if($showFindDropdown && strlen(trim($findBusinessSearch)) >= 2)
@if($isSearchingFindBusiness)
Searching...
@else @forelse($findBusinessResults as $r) @php $mainText = $r['structured_formatting']['main_text'] ?? $r['description'] ?? 'Unknown'; $sec = $r['structured_formatting']['secondary_text'] ?? ''; $desc = $mainText . ($sec ? ' - ' . $sec : ''); $placeId = $r['place_id'] ?? ''; @endphp @empty
No results found. Try a different name or town.
@endforelse @endif
@endif
@endif {{-- You selected: confirm or change (below search) --}} @if($pendingSearchPlaceId)

You selected

{{ $pendingSearchDescription }}

@endif @if(count($businesses) > 0 && !$showFindBusiness) @endif @endif @endif {{-- Step 2: Logo --}} @if($step === 2)

Logo

Happy with your logo?

@if(!empty($uploadedLogoUrl)) @elseif(!empty($business['logo_url'])) @else {{ $business['initials'] ?? 'BZ' }} @endif
{{ $business['name'] ?? 'Business' }} {{ $business['address'] ?? '' }}
@if($logo === 'upload')

JPG, PNG, GIF or WebP, max 2MB. Drag and drop or click.

@if($uploadedLogoUrl)
Uploaded logo
@else
Uploading…
Drop your logo here or click to browse
Preview

Chosen image.

Saving…

@endif @error('logoUpload')

{{ $message }}

@enderror @if($logoUploadError)

{{ $logoUploadError }}

@endif
@endif
@endif {{-- Step 3: Done --}} @if($step === 3)

Done

You're all set.

All set Logo saved. You can manage settings from your dashboard.
@endif
{{-- Nav: Back / Continue --}} @if($step > 0 && $step < 3)
@php $canProceed = match($step) { 1 => (bool) $selectedPlaceId, 2 => $logo === 'yes' || ($logo === 'upload' && !empty($uploadedLogoUrl)), default => true, }; @endphp
@endif
{{-- Confetti canvas (hidden, triggered by JS) --}}