@extends('layouts.app') @section('title', $title) @section('content') Browse {{ $title }} Explore our wide range of product categories and find exactly what you're looking for. @if($categories->count() > 0) @foreach($categories as $category) {{-- Parent Category Header --}} @if($category->icon) {{ $category->icon }} @else {{ substr($category->name, 0, 1) }} @endif {{ $category->name }} @if($category->description) {{ $category->description }} @endif {{ $category->products_count }} {{ Str::plural('product', $category->products_count) }} {{-- Subcategories --}} @if($category->children->count() > 0) @foreach($category->children as $child) {{ $child->name }} ({{ $child->products_count }}) @endforeach @endif @endforeach @else No Categories Available Categories will appear here once added by the admin. @endif @endsection
Explore our wide range of product categories and find exactly what you're looking for.
{{ $category->description }}
Categories will appear here once added by the admin.