@extends('statamic::layout') @section('title', 'Done < Data Import') @php($status = !is_null(cache("{$uuid}-total")) && cache("{$uuid}-total") === cache("{$uuid}-processed") ? 'done' : 'ongoing') @section('content')
{{ csrf_field() }}

Import {{ $status }}

Import {{ $status }}

@if (is_null(cache("{$uuid}-total")))

Your import is being processed...

@else

From {{ cache("{$uuid}-total") }} uploaded rows of data {{ cache("{$uuid}-processed") }} rows have been imported.

@endif @if ($status === 'ongoing') @endif
@if (count(cache("{$uuid}-errors") ?? []))

Errors

@foreach (cache("{$uuid}-errors") as $index => $error) @endforeach
Message Data
{{ $error }} {{ implode (", ", cache("{$uuid}-failed")[$index]) }}
@endif
@endsection