@extends('layouts.app') @section('title', 'Import Products - Quotation App') @section('styles') @endsection @section('content')
@if(session('success'))
{{ session('success') }}
@if(session('errors') && count(session('errors')) > 0)
⚠️ Warnings: @foreach(session('errors') as $error)
{{ $error }}
@endforeach
@endif
@endif @if(session('error'))
{{ session('error') }}
@endif

📥 Import Products from CSV

Bulk import product masters and variants from a CSV file. This is the fastest way to add multiple products at once.

@csrf

Step 1: Select CSV File

📄
Click to select or drag CSV file here
Max file size: 5MB
@if($errors && is_object($errors) && method_exists($errors, 'has') && $errors->has('csv_file'))
{{ $errors->first('csv_file') }}
@endif

Step 2: CSV Format Guide

Your CSV file must have these columns in the first row (header):

Column Name Required Description Example
product_name Yes Main product name (category) Hydraulic Shearing Machine
product_model Yes Product model/variant code HM-2500, HM-3000
spec_name No Specification name Max Cutting Length
spec_value No Specification value 2500
spec_unit No Unit of measurement mm, Ton, SPM
price No Product price 150000
standard_accessories No Accessories separated by semicolon Pump;Control Panel;Cylinder
optional_accessories No Optional accessories separated by semicolon Digital Display;Remote Control
note No Product notes/description Heavy duty industrial machine

📌 Important Notes:

  • Accessories format: Use semicolon (;) to separate multiple items: Pump;Control Panel;Cylinder
  • Duplicate handling: If product_name already exists, it will be updated with new accessories/notes
  • Price format: Use numbers only (no currency symbols): 150000
  • Comma in values: If your data contains commas, wrap the value in quotes: "Item 1, Item 2"
📥 Download Sample Template Cancel
@endsection