@lang('admin::app.settings.data-transfer.imports.import.title') {{-- The stepper is built from the import itself rather than a fixed list, because a delete run has no images to fetch and an importer carrying no image references skips that phase as well. --}} @php $isDelete = $import->action === 'delete'; $prefix = 'admin::app.settings.data-transfer.imports.import.'; $importSteps = [trans($prefix.'step-validate')]; $stepMap = [ 'pending' => 0, 'validating' => 0, 'validated' => 1, ]; if ( ! $isDelete && $hasImagePhase ) { $importSteps[] = trans($prefix.'step-download'); $stepMap['downloading'] = count($importSteps) - 1; } $importSteps[] = trans($prefix.($isDelete ? 'step-delete' : 'step-create')); $stepMap['processing'] = count($importSteps) - 1; if ($hasLinkPhase) { $importSteps[] = trans($prefix.'step-link'); } $stepMap['linking'] = count($importSteps) - 1; if ($hasIndexPhase) { $importSteps[] = trans($prefix.'step-index'); } $stepMap['indexing'] = count($importSteps) - 1; $stepMap['completed'] = count($importSteps); @endphp @pushOnce('scripts') @endPushOnce