{{-- Optional: guide taxonomy / tags / collections from an existing Shopify product --}} @php $hasSavedGuide = filled($guideProductId ?? null) || filled($guideProductTitle ?? null); $copyFlags = is_array($form['guide_copy_flags'] ?? null) ? $form['guide_copy_flags'] : []; $flagOn = static function (string $key) use ($copyFlags): bool { if (! array_key_exists($key, $copyFlags)) { return true; // default all on } return (bool) $copyFlags[$key]; }; @endphp
@if($hasSavedGuide) Guiding: {{ $guideProductTitle ?: $guideProductId }} @else @endif