Open huiyang opened 1 year ago
enable the nested usage, eg:
@foreach($itemGroups as $items) @foreach($items as $itemData) {{ $group($item($itemData)) }} @endforeach @endforeach
@component('component', ['itemGroups' => $itemGroups]) @scopedslot('group', ($slot)) <div class="card card-body"> {{ $slot }} </div> @endscopedslot @scopedslot('item', ($item)) Item: {{ $item->id }} @endscopedslot @endcomponent
enable the nested usage, eg: