{{-- Guide browser for Auto create (same flow as Manual: category → collection → products) --}} @php $categoryOptions = $categoryOptions ?? []; $oldGuideId = old('guide_product_id'); $oldGuideTitle = old('guide_product_title'); $hasOldGuide = filled($oldGuideId); $oldFlags = old('guide_copy', []); $flagOn = static function (string $key) use ($oldFlags): bool { if (! is_array($oldFlags) || $oldFlags === []) { return true; } return ! empty($oldFlags[$key]); }; @endphp
1 · Category
@foreach($categoryOptions as $catId => $catLabel) @endforeach
2 · Collection
3 · Products Pick a category and/or collection. Collection wins when both are set.