@extends('layouts.app') @section('content') {{-- Page Header --}} {{-- Main Card --}}
{{-- Left: Thumbnail --}}
{{ __('Category Image') }}
@if ($category->thumbnail && $category->thumbnail->src) {{ $category->name }} @else
{{ __('No image uploaded') }}
@endif
{{-- Right: Details --}}
{{-- Category Name --}}
{{ __('Category Name') }}

{{ $category->name }}

{{-- Parent Category --}}
{{ __('Parent Category') }}

{{ $category->parent_id ? $category->parent->name : 'No Parent' }}

{{-- Sub Categories --}}
{{ __('Sub Categories') }} @if ($category->child->count())
@foreach ($category->child as $sub)
@if ($sub->thumbnail && $sub->thumbnail->src) {{ $sub->name }} @else
@endif {{ $sub->name }}
{{ __('View') }}
@endforeach
@else

{{ __('No sub categories available.') }}

@endif
@endsection