@extends('layouts.app') @section('style') @endsection @section('content')

{{ $category->name }}

ID: {{ $category->id }} | Created: {{ $category->created_at->format('M d, Y') }} | Updated: {{ $category->updated_at->format('M d, Y') }}

{{ $category->is_active ? 'Active' : 'Inactive' }} @if($category->parent) Child Category @else Main Category @endif
Basic Information
Category Name: {{ $category->name }}
Parent Category: @if($category->parent) {{ $category->parent->name }} @else None (Main Category) @endif
Sort Order: {{ $category->sort_order }} Lower = First
Color:
{{ $category->color ?? '#667eea' }}
Status: @if($category->is_active) Active @else Inactive @endif
Slug: {{ $category->slug ?? 'Not set' }}
@if($category->description)
Description

{{ $category->description }}

@endif
@if($category->children->count() > 0)
Child Categories ({{ $category->children->count() }})
@foreach($category->children as $child)
{{ $child->name }}

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

{{ $child->is_active ? 'Active' : 'Inactive' }}
Order: {{ $child->sort_order }} | Created: {{ $child->created_at->format('M d, Y') }}
@endforeach
@endif
Category Image
@if($category->image) {{ $category->name }} @else

No Image

@endif
Statistics

{{ $category->children->count() }}

Child Categories

{{ $category->is_active ? 'Yes' : 'No' }}

Active Status

{{ $category->sort_order }}

Sort Order

{{ $category->created_at->format('M Y') }}

Created
@endsection @section('script') @endsection