@if($category->parent_id == 0) @else @if($category->childs->count() >0) @else
{{-- @isset($sidebar['supplier'])
Thương hiệu
@endisset --}} @php $categoryPModel=new App\Models\CategoryProduct(); $listCategoryProduct=$categoryPModel->where('parent_id',$category->parent_id)->orderby('order')->latest()->get(); // dd($listCategoryProduct); // dd($category) @endphp
{{--
--}} {{--
--}} @isset($sidebar['attribute']) @foreach ( $sidebar['attribute'] as $attributeItem)
@endforeach @endisset {{--
--}}
@endif @endif