@props([ 'attributes' => collect(), // Default empty collection 'selected' => [], ]) @if($attributes->isNotEmpty()) @foreach($attributes as $attribute)
{{ $attribute->name }} (Select at least 2)
@foreach($attribute->options as $option)
id, $selected[$attribute->id] ?? []) ? 'checked' : '' }}>
@endforeach
@endforeach @endif