{{-- ── Controls bar ──────────────────────────────────────────────── --}}
Company:
@php $syncing = $this->isSyncing(); @endphp {{ $syncing ? 'Syncing…' : ($this->variantCount() > 0 ? 'Re-sync Shopify' : 'Sync Shopify Variants') }} Starting… @if($this->variantCount() > 0) Auto Map by SKU Mapping… @endif
{{-- ── Sync status banner ─────────────────────────────────────────── --}} @php $syncing = $this->isSyncing(); $lastSynced = $this->lastSyncedAt(); $variantCount = $this->variantCount(); @endphp @if($syncing)
Syncing Shopify variants in the background. This may take a minute for large stores. This page will update automatically when complete.
@elseif($variantCount === 0)
No Shopify variants synced yet. Click Sync Shopify Variants to fetch all variants from your store.
@elseif($lastSynced)
Last synced {{ $lastSynced }} · {{ $variantCount }} variants in database
@endif {{-- ── Split pane ────────────────────────────────────────────────── --}} @php $shopifyData = $this->filteredShopifyVariants; $shopifyVariants = $shopifyData['items']; $shopifyTotal = $shopifyData['total']; $shopifyPages = $shopifyData['pages']; $shopifyPage = $shopifyData['page']; $cydekickData = $this->cydekickProducts; $cydekickProducts = $cydekickData['items']; $cydekickTotal = $cydekickData['total']; $cydekickPages = $cydekickData['pages']; $cydekickPage = $cydekickData['page']; $linkedCount = $this->linkedCount; @endphp
{{-- LEFT — Shopify ------------------------------------------------ --}}
Shopify Variants
{{ $record->shop_domain }}
Only variants with a SKU set in Shopify are synced
{{ $variantCount }} total
@if($variantCount > 0)
@endif @if($variantCount === 0)

No variants synced yet

Sync listings from {{ $record->shop_domain }}

Sync Shopify Variants Starting…
@else
@forelse($shopifyVariants as $variant) @php $sel = $selectedShopifySku === $variant['sku']; @endphp @empty @endforelse
SKU Product Title Status
{{ $variant['sku'] }} {{ $variant['product_title'] }} @if($variant['variant_title']) · {{ $variant['variant_title'] }} @endif @if($sel) Selected → @elseif($variant['is_mapped']) ✓ Linked @else Unlinked @endif
No variants match your search.
@if($shopifyPages > 1)
Page {{ $shopifyPage }} of {{ $shopifyPages }}  ·  {{ $shopifyTotal }} variants
@endif @endif
{{-- RIGHT — Cydekick ---------------------------------------------- --}}
Cydekick Products
@if($selectedShopifySku)
Linking {{ $selectedShopifySku }} — click a product below
@else
Select a Shopify variant on the left to link it
@endif
Only products with a SKU set in Cydekick are shown
{{ $cydekickTotal }} products
Loading products…
@forelse($cydekickProducts as $product) @php $linkable = $selectedShopifySku && ! $product['mapping_id']; @endphp @empty @endforelse
SKU Product Name Shopify SKU
{{ $product['sku'] ?: '—' }} {{ $product['name'] }} @if($product['mapping_id'])
{{ $product['shopify_sku'] }}
@elseif($selectedShopifySku) ← Click to link @else — @endif
No products found.
@if($cydekickPages > 1)
Page {{ $cydekickPage }} of {{ $cydekickPages }}  ·  {{ $cydekickTotal }} products
@endif
{{-- ── Footer stats ──────────────────────────────────────────────── --}}