{{-- ── Info note ── --}}
ℹ This is a current-state snapshot, not a growing audit log. Each SKU × location has exactly one row, updated in place on every sync — the table stays fixed at roughly {{ number_format($this->statusCounts['sku_count']) }} SKUs × locations regardless of how many syncs run.
{{-- ── Status summary chips ── --}}
{{ number_format($this->statusCounts['sku_count']) }}
Total SKUs
{{ number_format($this->statusCounts['synced']) }}
Synced entries
{{ number_format($this->statusCounts['pending']) }}
Pending entries
@if ($this->statusCounts['error'] > 0)
{{ number_format($this->statusCounts['error']) }}
Errors
@endif
{{-- ── Toolbar ── --}}
{{-- ── Table ── --}}
@if (empty($this->pagedRows))
@if ($skuSearch !== '' || $statusFilter !== 'all') No entries match your filter. @else No sync data yet — run a bulk sync to populate this log. @endif
@else @foreach ($this->pagedRows as $row) @endforeach
SKU @if ($sortField === 'sku') {{ $sortDir === 'asc' ? '↑' : '↓' }} @endif Product @if ($sortField === 'product_name') {{ $sortDir === 'asc' ? '↑' : '↓' }} @endif Location Status @if ($sortField === 'sync_status') {{ $sortDir === 'asc' ? '↑' : '↓' }} @endif Price pushed @if ($sortField === 'shopify_price') {{ $sortDir === 'asc' ? '↑' : '↓' }} @endif Qty pushed @if ($sortField === 'shopify_qty') {{ $sortDir === 'asc' ? '↑' : '↓' }} @endif Last Synced @if ($sortField === 'last_synced_at') {{ $sortDir === 'asc' ? '↑' : '↓' }} @endif
{{ $row['sku'] ?? '—' }} {{ $row['product_name'] ?? '—' }} {{ $row['shopify_location'] ?? '—' }} @if ($row['sync_status'] === 'synced') ✓ Synced @elseif ($row['sync_status'] === 'error') ✕ Error @else ○ Pending @endif @if ($row['sync_status'] === 'error' && $row['sync_message'])
{{ $row['sync_message'] }}
@endif
@if ($row['shopify_price'] !== null) £{{ $row['shopify_price'] }} @else — @endif @if ($row['shopify_qty'] !== null) {{ $row['shopify_qty'] }} @else — @endif @if ($row['last_synced_rel']) {{ $row['last_synced_rel'] }} @else Never @endif
@endif
{{-- ── Pagination ── --}} @if ($this->totalFiltered > $perPage)
Page {{ $page }} of {{ $this->totalPages }}  ·  {{ number_format($this->totalFiltered) }} rows
@else
{{ number_format($this->totalFiltered) }} rows
@endif