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

{{ $category->name }}

Category Information

Name (Khmer)
{{ $category->name_km ?? 'N/A' }}
Code
{{ $category->code }}
@if($category->parent)
Parent Category
{{ $category->parent->name }}
@endif
Subcategories
{{ $category->subcategories->count() }}
Products
{{ $category->products->count() }}

Description

{{ $category->description ?? 'No description' }}

Description (Khmer)

{{ $category->description_km ?? 'No description' }}

@if($category->isMainCategory() && $category->subcategories->count() > 0)

Subcategories

@foreach($category->subcategories as $subcategory)
{{ $subcategory->name }}

{{ $subcategory->code }}

View
@endforeach
@endif
@endsection