@extends('layouts.dashboard') @section('title', 'Import customers — confirm') @section('content')

Confirm import

← Start over

Rows in file

{{ $report['total'] }}

Will be created

{{ $report['toCreate'] }}

Duplicates (by email)

{{ count($report['duplicates']) }}

Failed rows

{{ count($report['errors']) }}

@if (count($report['duplicates']))

Duplicates — already a customer, will be updated not duplicated

@foreach ($report['duplicates'] as $dup) @endforeach
RowEmail
{{ $dup['row'] }}{{ $dup['email'] }}
@endif @if (count($report['errors']))

Rows that will not be imported

@foreach ($report['errors'] as $error) @endforeach
RowReason
{{ $error['row'] }}{{ $error['reason'] }}
@endif @if ($report['toCreate'] > 0 || count($report['duplicates']) > 0)
@csrf
@else

Nothing to import — fix the file and start over.

@endif @endsection