@extends('frontend.layouts.main') @section('title', $seo['title'] ?? '') @section('keywords', $seo['keywords'] ?? '') @section('description', $seo['description'] ?? '') @section('abstract', $seo['abstract'] ?? '') @section('image', asset($header['seo_home']->image_path)) @section('idMain', 'page-product') @section('css') @endsection @section('content') @include('frontend.components.breadcrumbs', ['caetgory' => $category, 'parents' => $category->parentsRecursiveLimit(3)]) @if ($category->children->isNotEmpty())
@foreach($category->children as $child)
{{ $child->name }}
{{ $child->name }}
@endforeach
@endif @if (!empty($bannerCategory)) {{-- Banner danh mục, nếu có thì hiện ra --}} @endif @if ($attributeTree->count() > 0)
@foreach ($attributeTree as $attribute) @if ($attribute['total_count'] > 0)
@endif @endforeach
@endif

{{ $category->name }} ({{ $products->total() }} sản phẩm)

Sắp xếp
@if (collect($attributeTree)->contains(fn ($item) => ($item['total_count'] ?? 0) > 0))
Bộ lọc
@endif
@if(isset($products) && $products->isNotEmpty())
@include('frontend.components.products.result-filter-product', ['products' => $products])
{{ $products->appends(request()->all())->links() }} @if ($products->hasMorePages()) @endif
@if (!empty($category->content)) {{-- Nội dung danh mục --}}

Bài viết đánh giá {{ $category->name }}

{!! $category->content !!}
@endif @else
Đang cập nhật dữ liệu!!
@endif
@foreach ($attributeTree as $attribute) @if ($attribute['total_count'] > 0)
{{ $attribute['name'] }}
@foreach ($attribute['children'] as $child) @endforeach
@endif @endforeach
@endsection @section('js') @endsection