@extends('user::layouts.backend-master') @section('breadcrumb_title', 'View Product Category') @section('content')

Category

Edit Back to Categories
Category Details
Name {{ $productCategory->name }}
Slug {{ $productCategory->slug }}
Description {{ $productCategory->description ?: 'No description' }}
Parent Category @if ($productCategory->parent) {{ $productCategory->parent->name }} @else None (Top Level) @endif
Language {{ $productCategory->language->name ?? 'Unknown' }}
Sort Order {{ $productCategory->sort_order }}
Created At {{ customDateTimeFormate($productCategory->created_at) }}
Updated At {{ customDateTimeFormate($productCategory->updated_at) }}
@if ($productCategory->children->count() > 0)
Child Categories
@foreach ($productCategory->children as $child) @endforeach
Name Products Actions
{{ $child->name }} {{ $child->contents->count() }}
@include('backend::components.show-button', [ 'route' => route('admin.product-categories.show', $child->id), ]) @include('backend::components.edit-button', [ 'route' => route('admin.product-categories.edit', $child->id), ])
@endif @if ($productCategory->contents->count() > 0)
Products in this Category
@foreach ($productCategory->contents as $product) @endforeach
Title Status Actions
{{ $product->title }} @php $statusClass = match ($product->status) { 'published' => 'bg-green-100 text-green-800', 'draft' => 'bg-gray-100 text-gray-800', 'scheduled' => 'bg-blue-100 text-blue-800', 'archived' => 'bg-yellow-100 text-yellow-800', 'trash' => 'bg-red-100 text-red-800', default => 'bg-gray-100 text-gray-800', }; @endphp {{ ucfirst($product->status) }}
@include('backend::components.show-button', [ 'route' => route('admin.product.show', $product->id), ]) @include('backend::components.edit-button', [ 'route' => route('admin.product.edit', $product->id), ])
@endif
@if ($productCategory->getFirstMediaUrl('featured'))
Featured Image
{{ $productCategory->name }}
@endif @if ($productCategory->getFirstMediaUrl('icon'))
Icon
{{ $productCategory->name }} icon
@endif
@endsection