@extends('layouts.app') @section('title', __('Import Products')) @section('content')

{{ __('Import products from CSV / Excel') }}

{{ __('Upload a file with a header row. Recognized columns: name, generic_name, category, barcode, sku, unit, purchase_price, selling_price, vat_rate, min_stock, reorder_quantity, requires_prescription, description, batch_number, expiration_date, quantity') }}

@if (session('import_errors'))
@foreach (session('import_errors') as $error)

{{ $error }}

@endforeach
@endif @if (session('import_categories'))

{{ __('Categories created automatically') }}

@foreach (session('import_categories') as $category)

{{ $category }}

@endforeach
@endif
@csrf
{{ __('Cancel') }}

{{ __('Sample CSV header') }}

name,generic_name,category,barcode,purchase_price,selling_price,vat_rate,min_stock,quantity,expiration_date

{{ __('The category column accepts a category name (recommended) or a category id.') }}

{{ __('French headers are accepted (Nom du produit, Catégorie, Prix de vente, Code-barres, Quantité…), as well as a semicolon or tab separator and a UTF-8 BOM.') }}

@endsection