@isset($product)
@if ($product)
{{-- {{dd($categoryProduct)}} --}}
@foreach ($categoryProduct as $categoryItem)
{{ $categoryItem->name }} ({{ $categoryItem->count_product }})
{{-- @if()
@else --}}
@include('frontend.components.category-product',[
'data'=>$categoryItem->setAppends(['count_product'])->childs()->orderby('order')->orderByDesc('created_at')->get(),
'type'=>"category_products",
// $modelCategory=new \App\Models\CategoryProduct(),
'categoryActive'=>$categoryProductActive,
])
{{-- @endif --}}
@endforeach
@endif
@endisset
@isset($post)
@if ($post)
@foreach ($categoryPost as $categoryItem)
{{ $categoryItem->name }}
@include('frontend.components.category',[
'data'=>$categoryItem->childs()->orderby('order')->orderByDesc('created_at')->get(),
'type'=>"category_posts",
$modelCategory=new \App\Models\CategoryPost(),
])
@endforeach
@endif
@endisset
@isset($fill)
@if ($fill)
Lọc sản phẩm
{{-- @isset($sidebar['supplier'])
Thương hiệu
@foreach ( $sidebar['supplier'] as $supplierItem)
-
@endforeach
@endisset --}}
@isset($sidebar['attribute'])
@foreach ( $sidebar['attribute'] as $attributeItem)
{{ $attributeItem->name }}
@endforeach
@endisset
{{--
Bản mệnh phù hợp
--}}
@endif
@endisset
{{-- @if (isset($sidebar['product'])&&$sidebar['product'])
Sản phẩm được quan tâm
@foreach ($sidebar['product'] as $item)
-
@if ($item->price_after_sale)
{{ number_format($item->price_after_sale) }} đ
@else
Liên hệ
@endif
@endforeach
@endif
@if (isset($sidebar['uudiem'])&&$sidebar['uudiem'])
@foreach ($sidebar['uudiem']->childs()->orderby('order')->get() as $item)
-
{{ $item->name }}
{{ $item->value }}
@endforeach
@endif
@if (isset($sidebar['banner'])&&$sidebar['banner'])
@endif --}}