{{-- "Limit this offer to" — the plans an offer may be used on. Nothing ticked means every plan, which is how every offer behaved when there was only one. That default matters: an offer saved with nothing selected must keep working everywhere rather than working nowhere. Checkboxes rather than a multi-select, because a multi-select gives no hint that more than one can be chosen and quietly loses the others when someone clicks a second. $prefix unique id prefix, so Add and Edit can both exist on the page $plans the plans on sale $selected ids already chosen; empty when adding --}} @php $selected = collect($selected ?? [])->map(fn ($id) => (int) $id)->all(); @endphp
@forelse($plans as $plan) @empty No plans on sale. @endforelse

Nothing ticked means every plan.