{{-- ─── Info Banner ─────────────────────────────────────────────────────── --}}

Set SA Local Stock to record what your SA warehouse physically holds for each product. This is what customers see as "SA Warehouse" on the product page. USA Warehouse and Manufacturer quantities are synced from Turn14 and are read-only. Currently {{ $this->overrideCount }} product(s) have SA local stock set.

{{-- ─── Toolbar ─────────────────────────────────────────────────────────── --}}
{{-- Search --}}
{{-- Brand filter --}}
{{-- In-stock filter --}} {{-- Export XLS --}} Export XLS Exporting… {{-- Save all --}} Save All Saving…
{{-- ─── Table ───────────────────────────────────────────────────────────── --}}
@forelse ($this->rows as $row) @php $stockId = $row->id_turn14_stock; $hasOverride = isset($this->saQty[$stockId]) && $this->saQty[$stockId] !== ''; $currentQty = $hasOverride ? (int) $this->saQty[$stockId] : null; // Compute USA total from warehouse_stock JSON (format: {"01": qty, "02": qty, ...}) $usaTotal = 0; if ($row->usa_warehouse_stock) { $warehouses = json_decode($row->usa_warehouse_stock, true); if (is_array($warehouses)) { foreach ($warehouses as $qty) { $usaTotal += (int) $qty; } } } @endphp {{-- Brand --}} {{-- Part Number --}} {{-- Product Name --}} {{-- SA Local Stock input --}} {{-- USA Qty (read-only) --}} {{-- Mfr Qty (read-only) --}} @empty @endforelse
Brand Part Number Product Name SA Local Stock USA Qty Mfr Qty
{{ $row->brand_name ?? '—' }} {{ $row->part_number }} {{ $row->product_name }} {{ $usaTotal > 0 ? $usaTotal : '—' }} {{ $row->mfr_qty > 0 ? (int) $row->mfr_qty : '—' }}
No Turn14 products match your filters.
{{-- Footer: row count + pagination --}}
{{ $this->rows->total() }} product(s) @if (trim($search) !== '') matching “{{ $search }}” @endif · {{ $this->overrideCount }} override(s) active
{{ $this->rows->links() }}
{{-- ─── Saving indicator ────────────────────────────────────────────────── --}}
Saving…