{{ session('status') }}
@endif
@if ($errors->any())
@foreach ($errors->all() as $e)
@endif
@if ($connectedDevices->isEmpty() && !$hasWaba)
{{-- No way to send WhatsApp yet — block the wizard regardless of mode. --}}
{{ $e }}
@endforeach
{{ __('Step 1 of 3') }}
{{ __('Connect WhatsApp first') }}
{{ __('Your store needs a connected WhatsApp number to send order confirmations and let customers chat. Head to') }} /devices to pair one — it takes 30 seconds.
Go to devices{{ $shops->count() }} {{ \Illuminate\Support\Str::plural('shop', $shops->count()) }} in {{ $workspace?->name }}
{{ __('Each shop has its own public URL, theme, and sending device. Add as many as you need — different brands, languages, or regions.') }}
@foreach ($shops as $shop)
@php
$device = $shop->device_id ? \App\Models\Device::find($shop->device_id) : null;
$devicePhone = $device
? trim(($device->country_code ?? '') . ' ' . ($device->phone_number ?? ''))
: null;
@endphp
@else
{{-- ============================================ --}}
{{-- ===== MODE: ADD / EDIT — wizard form ======== --}}
{{-- ============================================ --}}
@if ($mode === 'add' && $shops->isNotEmpty())
@endif
{{-- Progress strip --}}
{{-- Header strip in the shop's brand colour --}}
@endforeach
{{-- Add-shop tile (always last, dashed) --}}
@if ($shop->enabled)
Live
@else
Disabled
@endif
{{ $shop->theme_key }} {{ __('theme') }}
{{ $shop->shop_name ?: 'Untitled shop' }}
{{ $shop->public_url }}
{{ __('Sending from') }}
{{ $devicePhone ?: 'No device' }}
{{ __('Domain') }}
@if ($shop->custom_domain)
{{ $shop->custom_domain }} @if ($shop->custom_domain_verified)
✓
@else
· pending
@endif
@else
Built-in URL
@endif
{{ __('Add another shop') }}
{{ __('Run a separate storefront with its own URL, theme, and WhatsApp number.') }}
- 1 · Shop details →
- 2 · Public URL →
- 3 · Sending device
{{ __('This shop is live') }}
{{ $storefront->shop_name ?: 'Your shop' }} →
{{ __('Add products, pick a theme, view orders, and share your link.') }}