@extends('layouts.app') @section('title','Product Import Center') @section('content')
ERP / PRODUCTS

Product Import Center

Preview changes before saving. Matches existing products by SKU within your company.

← Product Master
@if(session('success'))
{{ session('success') }}
@endif @if(isset($errors) && $errors->any())
{{ $errors->first() }}
@endif

1. Upload file

CSV or XLSX, first worksheet. Required headers: SKU, Name. Optional: Barcode, Brand, Model, Color, Description, Price. Up to 1,999 products.

@csrf
@if(isset($preview)) @php $counts=array_count_values(array_column($preview,'status')); @endphp

2. Review before saving

{{ $counts['new']??0 }} new · {{ $counts['existing']??0 }} existing · {{ $counts['rejected']??0 }} rejected

@foreach($preview as $row)@endforeach
LineSKUNamePriceStatus
{{ $row['line'] }}{{ $row['data']['sku']??'' }}{{ $row['data']['name']??'' }}{{ $row['data']['price']??'—' }}{{ strtoupper($row['status']) }} {{ $row['error'] }}
@csrf
@endif @endsection