@php /** * Where this import's images come from. Three mutually exclusive methods, * driven by one radio group so the chosen one is explicit on the record * rather than guessed from which field happens to be filled in. * * Each method keeps its own value in its own column, so reopening an import * shows the method it was saved with and the value that went with it — and * choosing a different method never overwrites the other's. */ $imageSource = old('image_source') ?? ($import->image_source ?? 'directory'); $archiveName = $import->images_archive_name ?? null; $archiveImages = $uploadedImagesCount ?? 0; /** * Only importers that carry images ship a sample archive, so the link is * dropped entirely when none of them define one. */ $hasSampleImagesZip = collect(config('importers'))->contains( fn ($importer) => ! empty($importer['sample_images_zip_path']) ); /** * Only some kinds of import have images at all — customers and tax rates have * none — and the type is chosen on this same form, so the panel is shown or * hidden against the field rather than against the import being edited. */ $imageTypes = collect(config('importers')) ->keys() ->filter(fn ($type) => \Webkul\DataTransfer\Helpers\Import::typeSupportsImages($type)) ->values(); @endphp
@lang('admin::app.settings.data-transfer.imports.images.title')
@lang('admin::app.settings.data-transfer.imports.images.info')