@extends('admin.layouts.app') @section('title', 'Categories') @section('content')

All Categories

Add Category
@forelse($categories as $category) @foreach($category->children as $child) @endforeach @empty @endforelse
Category Subcategories Products Status Actions
@if($category->image) {{ $category->name }} @else
@endif
{{ $category->name }} @if($category->description)
{{ Str::limit($category->description, 50) }}
@endif
{{ $category->children_count }} {{ $category->products_count }} @if($category->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
@if($child->image) {{ $child->name }} @endif {{ $child->name }}
- {{ $child->products_count ?? 0 }} @if($child->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
No categories found. Add your first category
@endsection