@extends('admin.layouts.app') @section('title', 'View Category') @section('content')

{{ $category->name }}

Basic Information

Name
{{ $category->name }}
Slug
{{ $category->slug }}
Level
Level {{ $category->level }}
Parent Category
{{ $category->parent ? $category->parent->name : 'Root Category' }}
Status
{{ $category->is_active ? 'Active' : 'Inactive' }}
Created At
{{ $category->created_at->format('M d, Y H:i') }}
@if($category->description)

Description

{{ $category->description }}

@endif @if($category->children->count() > 0)

Subcategories

@foreach($category->children as $child)

{{ $child->name }}

{{ $child->description ? Str::limit($child->description, 50) : 'No description' }}

{{ $child->is_active ? 'Active' : 'Inactive' }}
@endforeach
@endif
@if($category->image)

Category Image

{{ $category->name }}
@endif

Statistics

Subcategories: {{ $category->children->count() }}
Products: {{ $category->products->count() }}
Last Updated: {{ $category->updated_at->format('M d, Y') }}

Actions

Edit Category
@csrf @method('DELETE')
@endsection