@extends('admin.layouts.app') @section('title', 'Categories Management') @section('content')
Organize your products with hierarchical categories
Total Categories
{{ $categories->count() }}
Root Categories
{{ $categories->where('parent_id', null)->count() }}
Subcategories
{{ $categories->where('parent_id', '!=', null)->count() }}
Active Categories
{{ $categories->where('is_active', true)->count() }}
| Category | Level | Parent | Products | Status | Actions |
|---|---|---|---|---|---|
|
@if($category->image)
{{ substr($category->name, 0, 2) }}
@endif
{{ $category->name }}
{{ Str::limit($category->description, 60) }}
|
Level {{ $category->level }} | {{ $category->parent ? $category->parent->name : 'Root Category' }} | {{ $category->products_count ?? 0 }} products | ||