@extends('layouts.app') @section('title', $category->name . ' - Category') @push('styles') @endpush @push('scripts') @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'])
@include('partials.category-thumb', ['category' => $category, 'size' => 64, 'class' => 'border-color:rgba(255,255,255,.3)'])

{{ $category->name }}

/{{ $category->slug }} @if(!empty($breadcrumbs)) · {{ collect($breadcrumbs)->pluck('name')->implode(' › ') }} @elseif($category->parent) · Sub of {{ $category->parent->name }} @else · Main Category @endif

{{ $category->products_count }} Products
{{ $category->children_count }} Sub Categories
{{ $category->product_types_count ?? 0 }} Product Types
{{ $category->levelLabel() }} Level {{ $category->level }}
{{ $category->status ? 'Active' : 'Hidden' }} Status
{{ $category->is_featured ? 'Yes' : 'No' }} Featured
@if($category->description)
Description

{{ $category->description }}

@endif
Sub Categories
Add
@forelse($category->children as $child)
@include('partials.category-thumb', ['category' => $child, 'size' => 48])
{{ $child->name }}
{{ $child->products_count }} products · {{ $child->status ? 'Active' : 'Hidden' }}
@csrf @method('DELETE')
@empty
No sub-categories yet.
@endforelse
Product Types
{{ $category->product_types_count ?? $category->productTypes->count() }}

Shampoo is a category · Anti Hair Fall Shampoo is a product type · Dove 340ml is the actual product.

@csrf
@forelse($category->productTypes as $type)
{{ $type->display_order }}
{{ $type->name }} /{{ $type->slug }}
{{ $type->status ? 'Active' : 'Off' }}
@csrf @method('DELETE')
@empty
No product types yet. Add one above — e.g. for Shampoo: Anti Hair Fall, Herbal, Keratin.
@endforelse
Category Info
ID #{{ $category->id }}
Created {{ $category->created_at->format('M d, Y') }}
Updated {{ $category->updated_at->diffForHumans() }}
@if($category->parent) @endif
Delete

Remove this category only if it has no products or sub-categories.

@csrf @method('DELETE')
@include('admin.partials.recent-activity-sidebar')
@endsection