@foreach ($items as $key => $row)
@php
$id = 'menu-id-' . strtolower(Str::slug(str_replace('\\', ' ', $model::class))) . '-' . $row->id;
@endphp
-
@if ($row->children)
{!! Menu::generateSelect([
'model' => $model,
'items' => $row->children,
'class' => 'list-unstyled',
]) !!}
@endif
@endforeach