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

{{ $taxonomy->name }}

Edit Back to Taxonomies

Taxonomy Details

@if ($taxonomy->getFirstMediaUrl('featured')) @endif
Type {{ ucfirst($taxonomy->taxonomy_type) }}
Slug {{ $taxonomy->slug }}
Language {{ $taxonomy->language->name ?? 'Unknown' }}
Parent @if ($taxonomy->parent) {{ $taxonomy->parent->name }} @else None (Top Level) @endif
Color @if ($taxonomy->color) {{ $taxonomy->color }} @else Not set @endif
Icon @if ($taxonomy->getFirstMediaUrl('icon')) Icon @elseif($taxonomy->icon) {{ $taxonomy->icon }} @else Not set @endif
Sort Order {{ $taxonomy->sort_order }}
Created {{ $taxonomy->created_at->format('M d, Y H:i') }}
Featured Image {{ $taxonomy->name }}
Description {!! $taxonomy->description ?? 'No description provided' !!}

Associated Content ({{ $taxonomy->contents->count() }})

{{ $taxonomy->contents->where('status', 'published')->count() }} Published

@if ($taxonomy->contents->count() > 0)
@foreach ($taxonomy->contents->take(10) as $content) @endforeach
Title Type Status Actions
{{ $content->title }} {{ ucfirst($content->content_type) }} {{ ucfirst($content->status) }}
@include('backend::components.edit-button', [ 'route' => route('admin.content.edit', $content->id) ]) @include('backend::components.show-button', [ 'route' => route('admin.content.show', $content->id) ])
@if ($taxonomy->contents->count() > 10) @endif @else

No content is associated with this taxonomy yet.

@endif

Child Taxonomies

@if ($taxonomy->children->count() > 0) @else

This taxonomy has no children.

@endif
@if ($taxonomy->meta_data && count($taxonomy->meta_data) > 0)

Meta Data

@foreach ($taxonomy->meta_data as $key => $value) @endforeach
{{ $key }} @if (is_array($value) || is_object($value))
{{ json_encode($value, JSON_PRETTY_PRINT) }}
@else {{ $value }} @endif
@endif @endsection @push('styles') @endpush