@extends('layouts.app') @section('title', 'Create Category - Admin') @push('styles') @endpush @section('content')
@include('admin.partials.admin-shell-left', ['backUrl' => route('admin.categories.index'), 'backLabel' => 'All Categories'])
@include('admin.partials.admin-shell-back-mobile', ['backUrl' => route('admin.categories.index'), 'backLabel' => 'All Categories'])

Create Category

Add a main category or sub-category with live search and camera upload.

All Categories
@include('admin.categories.partials.form', [ 'preselectedParent' => $preselectedParent ?? null, 'parentCategory' => $parentCategory ?? null, ])
Quick Tips
  • Use Main for top menu groups.
  • Use Sub and live search to pick a parent.
  • Square images (~400×400) look best on mobile.
  • On phone, tap Camera to capture directly.
Popular Categories
@php $popular = \App\Models\Category::forEcommerce()->withCount('products')->orderByDesc('products_count')->take(5)->get(); @endphp @forelse($popular as $pop) {{ $pop->name }} {{ $pop->products_count }} @empty
No categories yet
@endforelse
@include('admin.partials.recent-activity-sidebar')
@endsection @push('scripts') @endpush