@if ($devices->isEmpty())
{{ __('Connect a device first') }}

{{ __('You need a connected WhatsApp device to send catalog messages. Pair one at') }} /devices.

@else
{{-- ═══ Step 1: Recipients (multi-source like /wa-campaigns/create) ═══ --}}
01 {{ __('Recipients') }} 0
{{-- Mode picker --}}
{{-- Pane: groups --}}
@if ($groups->isEmpty())
No contact groups yet. Create one from the {{ __('Contacts') }} page first.
@else
@foreach ($groups as $g) @php $memberCount = $groupCounts[$g->id] ?? 0; @endphp @endforeach
@endif
{{-- Pane: contacts --}} {{-- Pane: manual --}}
{{-- ═══ Step 2: Format ═══ --}}
02 {{ __('Format & sender') }}
@if ($shops->isNotEmpty()) @endif
{{-- ═══ Step 3: Products (shop-scoped, compact cards) ═══ --}}
03 {{ __('Products') }} (0 selected)
Showing products from {{ $shops->firstWhere('id', $selectedShopId)?->shop_name ?: '—' }}. Change the From shop picker above to see another shop's catalog.
@if ($productsByCategory->isEmpty())
No active products in this shop. {{ __('Add one →') }}
@else @include('user.catalog._product-grid', [ 'productsByCategory' => $productsByCategory, ]) @endif
{{-- ═══ Step 4: Message + send ═══ --}}
04 {{ __('Message & send') }}
{{ __('View recent sends →') }}
{{-- ═══ Side rail ═══ --}}
@endif