@if(session('success'))
✅
{{ session('success') }}
@endif
@if(session('error'))
⚠️
{{ session('error') }}
@endif
← Back to Customers
Import Customers
Upload XLSX, XLS, or CSV. Existing customers are updated by customer code or matching phone.
🔎 Matching Rules
- Customer code
- Normalized phone number
- Exact shop name for the same salesman
Draft orders with matching customer details are linked automatically.
@if(session('import_summary'))
@php
$summary = session('import_summary');
@endphp
Import Result
Rows
{{ $summary['total_rows'] }}
Created
{{ $summary['created'] }}
Updated
{{ $summary['updated'] }}
Skipped
{{ $summary['skipped'] }}
Orders Linked
{{ $summary['linked_orders'] }}
@if(!empty($summary['errors']))
| Row |
Error |
@foreach($summary['errors'] as $error)
| {{ $error['row'] }} |
{{ $error['message'] }} |
@endforeach
@endif
@endif
@endsection