@php $tz = config('app.display_timezone'); $statusColors = ['draft' => 'slate', 'processing' => 'sky', 'completed' => 'emerald', 'failed' => 'rose', 'undone' => 'amber']; $metrics = [ ['label' => __('Created'), 'value' => $batch->created_count, 'icon' => 'plus', 'accent' => '#10b981', 'sub' => __('New prospects')], ['label' => __('Linked'), 'value' => $batch->linked_count, 'icon' => 'link', 'accent' => '#0ea5e9', 'sub' => __('Existing records')], ['label' => __('Updated'), 'value' => $batch->updated_count, 'icon' => 'pencil', 'accent' => '#6366f1', 'sub' => __('Blanks filled in')], ['label' => __('Skipped'), 'value' => $batch->skipped_count, 'icon' => 'arrow-right', 'accent' => '#64748b', 'sub' => __('Chosen, or already listed')], ['label' => __('Failed'), 'value' => $batch->failed_count, 'icon' => 'exclamation-triangle', 'accent' => '#e11d48', 'sub' => __('Download to fix')], ]; @endphp
{{ __('Keep this page open. If it closes, opening it again carries on where it stopped.') }}
@endif{{ $m['label'] }}
{{ number_format($m['value']) }}
{{ $m['sub'] }}{{ __('This import has been undone.') }}
@elseif ($batch->status !== 'completed'){{ __('An import can be undone once it has finished.') }}
@elseif ($undoBlocker){{ $undoBlocker }}
@else{{ __('Until :date, and while nothing from it has been worked, this import can be taken back out: the organisations and contacts it created are removed and the blanks it filled in are emptied again.', ['date' => $batch->undo_expires_at?->timezone($tz)->format('j M Y')]) }}
@if ($canUndo) @endif @endif