@foreach ($models as $model) {{$cat = (int)cat_settings($model.'_cat_id')}} {{$category = \App\Models\Category::find((int)cat_settings($model.'_cat_id'))}} @foreach($category->children()->get() as $record) {!! html_entity_decode(cat_list($record, $menuItem->category_id)) !!} @endforeach @endforeach