# Task 03: Category Tree

## Goal
Recursive category system with admin CRUD and public API.

## Files
- `app/Services/Ecommerce/CategoryService.php`
- `app/Http/Controllers/Admin/Ecommerce/CategoryController.php`
- `app/Http/Controllers/Api/CategoryController.php`
- `app/Http/Requests/Ecommerce/StoreCategoryRequest.php`
- `app/Http/Resources/Ecommerce/CategoryResource.php`
- `resources/views/dashbord/admin/ecommerce/categories/`

## Steps
1. `CategoryService`: `getTree()`, `getFlat()`, `store()`, `update()`, `delete()`
2. `delete()` → reject if has products or children
3. Admin + API controllers + views
4. Register routes
