@extends('layouts.app') @section('title', 'Manage Categories - Admin') @push('styles') @endpush @section('content') @php $isTreeView = request('view') === 'tree'; $queryParams = request()->except('page'); @endphp
Beauty store hierarchy · Categories stop at Shampoo/Cream level · Products use Product Types
| Category | Level | Types | Status | Actions | |
|---|---|---|---|---|---|
|
@include('partials.category-thumb', ['category' => $cat, 'class' => 'me-3', 'size' => 48])
{{ $cat->name }}
/{{ $cat->slug }}
@if($cat->parent){{ $cat->parent->name }}@endif
|
{{ $cat->levelLabel() }} | {{ $cat->product_types_count }} | @if($cat->status) Active @else Hidden @endif |
Main → Category → Sub → Product Type → Product → Variant
Example: Hair Care → Shampoo → Anti Hair Fall → Dove 340ml
GET /api/categories/tree
GET /api/categories/featured
GET /api/categories/{id}/breadcrumbs