Working in background
{{ $bgNowLabel ?: 'Processing…' }}
{{ $bgMsg !== '' ? $bgMsg : 'You can keep editing — jobs for this import run one at a time.' }}
Job order
@if($bgQueueCount > 0)
{{ $bgQueueCount }} waiting
@else
Running
@endif
@if($bgBusy)
-
Now
{{ $bgNowLabel ?: 'Working…' }}
@endif
@foreach(array_slice($bgQueueRaw, 0, 8) as $i => $qItem)
@php
$qKind = is_array($qItem) ? (string) ($qItem['kind'] ?? '') : '';
$qLabel = match ($qKind) {
'copy' => 'Writing listing copy',
'enhance' => 'Enhancing photos',
'video_enhance' => 'Enhancing video (Omni)',
'lifestyle' => 'Generating lifestyle',
'prepare' => 'Preparing media',
'shopify_create' => 'Creating Shopify draft',
'shopify_update' => 'Updating Shopify',
'shopify_pending' => 'Syncing pending to Shopify',
default => 'Queued job',
};
@endphp
-
{{ $i + 1 }}
{{ $qLabel }}
@endforeach