@php $vendorLabel = $candidate->vendor === 'cj' ? 'CJ Dropshipping' : 'Printful'; $vendorColor = $candidate->vendor === 'cj' ? '#1E40AF' : '#6D28D9'; $variants = $candidate->raw_payload['variants'] ?? []; $images = collect($variants)->pluck('image')->filter()->unique()->values(); if ($candidate->preview_image_url) { $images = collect([$candidate->preview_image_url])->merge($images)->unique()->values(); } $suggestedPrice = round($candidate->base_cost * 2.5, 2); $skuBase = 'SHB-'.strtoupper(\Illuminate\Support\Str::slug(\Illuminate\Support\Str::limit($candidate->title, 12, ''), '-')); @endphp
Customize & List Product
@if ($errors->any())
@endif
Imported from {{ $vendorLabel }} — Vendor Product #{{ $candidate->vendor_external_id }}. Vendor-provided fields (cost, weight, base images) are read-only; customize the fields below for your shop listing.
@csrf
Shop Listing Details
{{ old('description', $suggestedDescription) }}
@php $selectedCategoryId = old('category_id', $suggestedCategoryId); @endphp
{{ $vendorLabel }} — Product #{{ $candidate->vendor_external_id }}
Pricing
${{ number_format($candidate->base_cost, 2) }}
Pulled from {{ $vendorLabel }} — updates automatically.
Variants & SKU Mapping

Variants below were imported from the vendor. Pick only the ones you want to sell, edit their details, and optionally replace each variant's image.

@forelse ($variants as $i => $variant) @empty @endforelse
ListImageVariantColorSizeVendor SKUInternal SKUWeight (lb)Stock
{{ $variant['option_label'] }} {{ $variant['vendor_sku'] }} @if (array_key_exists('in_stock', $variant)) @if ($variant['in_stock']) {{ ! empty($variant['stock_qty']) ? number_format($variant['stock_qty']) : 'In Stock' }} @else Out of Stock @endif @else — @endif
No variants were imported for this product.
Product Images

Select vendor images and/or upload your own. Up to 5 images total.

@forelse ($images as $image)
@empty
No vendor images available.
@endforelse
JPG/PNG/WEBP, 5MB max per image.
Product Video (optional)
MP4 only, 20MB max.
Publish
You can edit every field again after publishing.