@forelse($categories as $category)
@switch(strtolower($category->name)) @case('cctv cameras') @case('cctv') @break @case('access control') @break @case('smart locks') @case('locks') @break @case('electric fencing') @case('fencing') @break @case('barrier gates') @case('barriers') @break @case('networking') @case('network') @break @default @endswitch

{{ $category->name }}

{{ $category->products_count }} Products
@if($category->description)

{{ Str::limit($category->description, 100) }}

@endif @if($category->children && $category->children->count() > 0)
@foreach($category->children->take(4) as $child) {{ $child->name }} @endforeach @if($category->children->count() > 4) +{{ $category->children->count() - 4 }} more @endif
@endif View Products
@empty

No Categories Yet

Categories will appear here once they are added.

@endforelse