@extends('front.layout') @section('title') {{__('Our products')}} @endsection @section('css') @endsection @section('content') {{__('What are you looking for?')}} @foreach($categories_show as $category) {{$category->name}} @foreach($category->subcategories as $subcategory) {{$subcategory->name}} @endforeach @endforeach {{-- @foreach($categories_show as $category) {{$category->name}} {{count($category->category_products)}} @endforeach --}} @endsection
{{count($category->category_products)}}