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

{{ $productTag->name }}

Edit Back to Tags
Tag Details
Name {{ $productTag->name }}
Slug {{ $productTag->slug }}
Description {{ $productTag->description ?: 'No description' }}
Language {{ $productTag->language->name ?? 'Unknown' }}
Color @if ($productTag->color) {{ $productTag->color }} @else No color @endif
Sort Order {{ $productTag->sort_order }}
Created At {{ $productTag->created_at->format('Y-m-d H:i:s') }}
Updated At {{ $productTag->updated_at->format('Y-m-d H:i:s') }}
@if ($productTag->contents->count() > 0)
Products with this Tag
@foreach ($productTag->contents as $product) @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 @endforeach
Title Status Actions
{{ $product->title }} {{ 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
@endsection