{{-- Result of one import (#2957 slice 4d, card #3018). Included by import/show only. Expects: $import (the grouped import), $data (its decoded json), $invalidCount. Same values as the old two tables: new, updated and skipped receivers, invalid rows, errors, the file, the list (receiverlist.edit, looked up within the company) and when it finished, plus the package limit notice linking to account.edit. --}} @php $skipped = (int) ($data['skipped_reciever_count'] ?? 0); // Older imports stored one message as a string instead of a list (#5205). $importErrors = $data['errors'] ?? []; $errorCount = is_array($importErrors) ? count($importErrors) : (filled($importErrors) ? 1 : 0); $listId = $data['receiver_list'] ?? null; $list = $listId ? Auth::user()->company->receiverLists()->where('id', $listId)->first() : null; $completed = $import->completedAt(); $filename = $data['filename'] ?? ''; @endphp @if ($import->package_limit_reached == 1) @php $mainImportData = json_decode($import->mainImport()->json, true); $need = $import->company->receivers()->countsTowardLimit()->count() + (int) ($mainImportData['created_reciever_count'] ?? 0); @endphp {{ __('import.show.packageLimitReached', ['limit' => formatNumber($import->company->package->max_receivers), 'need' => formatNumber($need)]) }} {{ __('global.upgradePackage') }} @endif

{{ __('import.show.resultTitle') }}

{{ __('import.show.file') }}
{{ $filename === 'TextAreaImport.csv' ? __('import.textImport') : $filename }}
{{ __('taggingImport.show.list') }}
@if ($list)@endif
{{ __('import.show.failed') }}
{{ formatNumber($errorCount) }}
{{ __('import.show.stop_time') }}
{{ $completed ? \App\Support\DisplayDate::timestamp($completed) : '-' }}