@extends('admin.layouts.app')
@section('title', 'Import Products')
@section('content')
@if(session('import_result'))
@php $res = session('import_result'); @endphp
@if(!empty($res['errors']))
@foreach($res['errors'] as $err)
{{ $err }}
@endforeach
@endif
@endif
| Column | Required |
@foreach([
['name', 'Yes', 'Product name'],
['sku', 'No', 'Unique SKU — duplicates update existing'],
['brand', 'No', 'Brand name (auto-created if new)'],
['category', 'No', 'Category name (auto-created if new)'],
['grade', 'Yes', 'A, B, or C'],
['price', 'Yes', 'Selling price in ₹ (e.g. 14999)'],
['mrp', 'No', 'Original MRP in ₹'],
['stock_status', 'No', 'in_stock / low_stock / out_of_stock'],
['stock_qty', 'No', 'Integer quantity'],
['warranty_months', 'No', 'Integer months (default 6)'],
['short_description', 'No', 'Max 500 chars'],
['quick_specs', 'No', 'Pipe-separated: i5 8th Gen|8GB|256GB'],
['is_active', 'No', '1 = active, 0 = draft'],
['is_featured', 'No', '1 = featured'],
['image_url', 'No', 'Public image URL (auto-downloaded)'],
['meta_title', 'No', 'SEO title'],
['meta_description', 'No', 'SEO description'],
] as [$col, $req, $desc])
| {{ $col }} |
{{ $req }}
{{ $desc }}
|
@endforeach
@endsection