@if (count($categories = $helper->getProductCategories(['parent_id' => 0, '@sorttyoe' => $data->sorttype, '@linit' => $data->category_number])))

{{$data->title}}

@foreach ($categories as $category)
{{$category->name}}

{{$category->name}}

    @if (count($children = $helper->getProductCategories(['parent_id' => $category->id, '@sorttyoe' => $data->child_sorttype, '@linit' => $data->child_number??4]))) @foreach ($children as $child)
  • {{$child->name}}
  • @endforeach @endif
  • Xem thêm
@endforeach
@endif