@extends('user::layouts.backend-master') @section('breadcrumb_title', 'View Product Category') @section('content')
| 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) }} |
| 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),
])
|
| 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),
])
|