@extends('layouts.admin') @section('title', 'Import Inventory') @section('content')

Import Inventory

Upload CSV or XLSX (maximum 5,000 rows / 8 MB). Every row is validated before any inventory is changed. XLSX imports accept literal values from the first worksheet only; formulas and external links are rejected. PDF invoices are extracted into an editable preview and require an explicit confirmation before import.

@csrf @error('file')

{{ $message }}

@enderror

Columns

store_id,name,sku,barcode,brand,category,subcategory,description,quantity,reserved_qty,min_quantity,unit_cost,sell_price,compare_at_price,service_id,supplier_id,device_type_id,is_active,variant_color,variant_quality,variant_sku,variant_price,variant_quantity,variant_is_active

Required: store_id and name. Blank numeric stock/price fields use zero (minimum stock uses 5). A row with any variant column creates or updates that inventory variant; missing variant price, quantity, or active status inherit from its inventory item. Repeat the same store and SKU with identical item values to import multiple distinct variants. PDF extraction requires a configured OpenAI provider and only imports invoice items with explicit quantity and price after review.

@endsection